Installation failed with message INSTALL_FAILED_TEST_ONLY

The original address: https://blog.csdn.net/u010127332/article/details/79797944

Downloaded a Ddmo from GitHub, the following error when compiling:
Error: This Gradle plugin The requires of Able A newer IDE to IDE Model Level 3. Request the For the this means Version 3.0+ Android Studio
    before have encountered such problems, I with Android Studio2.3.3, for project cooperation has been no upgrade Android Studio3.0. But recently I found a lot of the demo is 3.0. How to do?

Do not upgrade Android Studio ways to solve this problem:

   Add gradle.properties file

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

 Then I encountered a new problem, when commissioning and installation tips:

 Installation failed with message INSTALL_FAILED_TEST_ONLY.

 The solution: add another file in gradle.properties

   android.injected.testOnly=false

 Again compiled debugging installation OK.

 With the Message INSTALL_FAILED_TEST_ONLY failed The Installation.
 
 Android.injected.testOnly = false
 
--------------------- 
Author: Little T 
Source: CSDN 
Original: https: // blog. csdn.net/u010127332/article/details/79797944 
Disclaimer: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin blog.csdn.net/weixin_37758967/article/details/87277143