1. Questions
The newly installed Android studio (version 3.5.2) in the notebook runs the simplest program. The error prompt is as follows
The application could not be installed: INSTALL_FAILED_TEST_ONLY
2. Analysis
The Android manifest.xml file in advanced Android studio is as follows by default
android:testOnly="true"
3. Solutions
I tried to install with the following command and failed
adb install -t app-debug.apk
Then I tried to add the following to androidmanifest. XML, and it failed
android:testOnly="false"
Finally, I set the gradle. Properties global configuration in the project as follows, and then it runs successfully.
android.injected.testOnly=false
Another way is to build APK (s) directly in as
Build->Build Bundle(s)/Apk(s)-> Build Apk(s)