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)
Similar Posts:
- Android Install APP Error: INSTALL_FAILED_TEST_ONLY
- Android ERROR: This version of Android Studio cannot open this project, please retry with Android Studio 3.6 or newer.
- Could not find com.android.tools.build:gradle:3.3.0.
- Plugin is too old, please update to a more recent
- Error:(1, 0) Plugin with id ‘android’ not found.
- Android studio import project, error e rror:Unsupported method : BaseConfig.getApplicationIdSuffix().
- Ionic build android, Error: spawn EACCES [How to Solve]
- Android Studio ERROR: SSL peer shut down incorrectly (Solved)
- [Solved] React Native Error: A problem occurred configuring project ‘:app’. and Execution failed for t…
- AS Import Project Error: Plugin with id ‘com.android.application’ not found.