Foreword: the company uses version 3.0, and its computer is installed with version 2.2.2. The imported project gradle has reported an error, which has been encountered before. The reason for time has forgotten how to solve it, so Google has solved it, and hereby records it in a blog
Error:This Gradle Plugin requires studio 3.0 minimum
error: gradle plug-in requires 3.0 minimum
add this code android.injected.build.model.only.versioned=3
According to the above steps, the problem of gradle plug-in is solved, and an error is reported at runtime
Installation failed with message INSTALL_ FAILED_ TEST_ ONLY.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
No matter you click cancel or OK, the installation is not successful, as shown in the following figure
The solution: still in gradle.properties File addition android.injected.testOnly=false
Then the problem is solved, the project can run normally on the mobile phone, and can play happily
- [Solved] Android Studio Error: The binary version of its metadata is 1.5.1, expected version is 1.1.15.
- [Solved] Android Studio Compile Error: Could not determine java version from ‘11.0.8‘.
- Android studio New kotlin project Error: org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21-release-315
- Android Studio: Gradle project sync failed [How to Solve]
- [Solved] Android Studio Start Error: Missing essential plugin: org.jetbrains.android Please reinstall Android
- Flutter android studio runs gradle build error: Could not resolve all artifacts for configuration’:classpath’.
- [Solved] Failed to apply plugin appears when Android studio imports a project
- [Solved] Android Studio Compile error: Cannot use connection to Gradle distribution . as it has been stopped.
- Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment
- Runtime error prompt in Android Studio: arrayadapter requires the resource ID to be a textview problem
- [Solved] Unity Error: Visual Studio Editor Package version 2.0.11 is available……..
- Android Studio: How to Solve APK error in mobile phone installation
- [Solved] Android Studio 3.0 Error: Error: INSTALL_FAILED_TEST_ONLY
- [Solved] Android Studio 4.1 get manifestOutputDirectory error
- Android studio does not prompt error messages [How to Solve]
- Android Studio Error: String index out of range 0 [How to Solve]
- [Solved] Android Studio Compile Error: Invalid main APK outputs : EarlySyncBuildOutput
- Android studio Error:Execution failed for task ‘: app:transformResourcesWithMergeJavaResForDebug ‘
- [Solved] Android Studio Compile Error: Execution failed for task ‘:APP_MIDI:lintVitalRelease‘.