Error:This Gradle plugin requires Studio 3.0 minimum以及Installation failed with message INSTALL_.....

 今天导入新的项目的时候出现Error:This Gradle plugin requires Studio 3.0 minimum,是说我的as里面gradle插件最少都需要我的as版本为3.0,我的as目前版本和协同开发人员一样2.2.2 所以为了保持项目在开发过程中不更新版本,解决如下:

在gradle.properties中加上

android.injected.build.model.only.versioned = 3 

可能这样就好了,但是我t特么同步一下又出现

Installation failed with message INSTALL_FAILED_TEST_ONLY: installPackageLI.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.


WARNING: Uninstalling will remove the application data!


Do you want to uninstall the existing application?



看了很多博客终于解决了

还是在gradle.properties中加上

android.injected.testOnly=false
ok这样就解决了

猜你喜欢

转载自blog.csdn.net/u013245224/article/details/79649274