Installation failed with message INSTALL_FAILED_TEST_ONLY

原地址为: https://blog.csdn.net/u010127332/article/details/79797944

从GitHub上下载了个Ddmo,编译时出现以下错误提示:
Error:This Gradle plugin requires a newer IDE able to request IDE model level 3. For Android Studio this means version 3.0+
    之前也有遇到过此类问题,我用的Android Studio2.3.3,为了项目合作一直也没升级Android Studio3.0。但是最近发现好多demo都是3.0了。怎么办?

不升级Android Studio解决这个问题的办法:

   在gradle.properties文件中添加

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

 之后我遇到了新的问题,调试安装时提示:

 Installation failed with message INSTALL_FAILED_TEST_ONLY.

 解决办法:再在在gradle.properties文件中添加

   android.injected.testOnly=false

 再次编译调试安装OK了。

 Installation failed with message INSTALL_FAILED_TEST_ONLY.
 
 android.injected.testOnly=false
 
--------------------- 
作者:小小T 
来源:CSDN 
原文:https://blog.csdn.net/u010127332/article/details/79797944 
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/weixin_37758967/article/details/87277143