刚把我家的项目导入到我公司的电脑里面出现了:
Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Gradle version 2.2 is required. Current version is 2.10. If using the gradle wrapper, try editing the distributionUrl in E:\workspace\work\HappyWay\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip
知道是环境出现的问题,果断很暴力的处理了这个问题:
新建一个android studio项目。然后把刚刚新建的项目路径下的build.gradle和app/build.gradle文件内容
覆盖之前原项目的对应文件内容,之后再编辑,表示OK咯~
Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.android.application'] > Gradle version 2.2 is required. Current version is 2.10. If using the gradle wrapper, try editing the distributionUrl in E:\workspace\work\HappyWay\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip