Android之运行app提示The application could not be installed: INSTALL_FAILED_TEST_ONLY

1, problem

Notebook newly installed Android studi (version 3.5.2) is running the most simple procedure, the following error message

The application could not be installed: INSTALL_FAILED_TEST_ONLY

 

 

 

2, analysis

High version of Android studio which follows the default file AndroidManifest.xml

android:testOnly="true"

 

 

 

 

3, the solution

I tried to install using the following command failed

adb install -t app-debug.apk

Then I try to add the following AndroidManifest.xml which also failed

android:testOnly="false"

Finally, I gradle.properties globally in the project configuration settings as follows, to run behind success.

android.injected.testOnly=false

 

Released 1046 original articles · won praise 631 · Views 2.87 million +

Guess you like

Origin blog.csdn.net/u011068702/article/details/104230376