Error:This Gradle plugin require

作者: 爱吃馒头的二饼 | 来源:发表于2018-11-29 12:47 被阅读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

相关文章

网友评论

    本文标题:Error:This Gradle plugin require

    本文链接:https://www.haomeiwen.com/subject/fwvxcqtx.html