Android开发经验谈Android开发Android开发

Error:This Gradle plugin require

2018-11-29  本文已影响5人  爱吃馒头的二饼

报错信息

Error:This Gradle plugin requires a newer IDE able to request IDE model level 3. For Android Studio this means version 3.0+

字面意思上看,这个Gradle需要使用在AndroidStudio 3.0以上的版本

解决方法就是升级AndroidStudio版本到3.0以上
如果不想升级也可以,就在gradle.properties中添加

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

然后你运行的时候可能会发现无法安装


无法安装

错误提示:

Installation failed with message INSTALL_FAILED_TEST_ONLY.
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
上一篇下一篇

猜你喜欢

热点阅读