Question:
After changing the app ID and the module name of the Android project, this problem occurred in the compilation.
Solution:
1. tried to unify kotlin version, Android Studio Tools -> Kotlin -> Configure Kotlin Plugin Updates
Check the current Kotlin version, and find kotlin-version in the project (different projects show different ways, usually in build.gradle), change the Kotlin version of the project to the version on Android Studio, and then recompile, it failed.
2. before reporting this error log, look up, you know the problem, is the program code has reported red place, just a matter of habit, each time the red part of the log down to see, resulting in a delay of a good while.
Read More:
- [Solved] Android app development version update failed, Android – error: task execution failed ‘: app: com
- Execution failed for task ‘:app:kaptDebugKotlin‘ [How to Solve]
- [Solved] Execution failed for task ‘:app:checkDebugAarMetadata‘
- [Solved] Execution failed for task ‘:app:mergeDebugJavaResource‘.
- Android studio Error:Execution failed for task ‘: app:transformResourcesWithMergeJavaResForDebug ‘
- [Solved] Android Error: Execution failed for task ‘:app:mergeReleaseNativeLibs‘.
- [Solved] Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com.and
- Execution failed for task ‘:app:processDebugMainManifest‘.> Manifest merger failed : Apps targeting
- [Solved] Android Studio Compile Error: Execution failed for task ‘:APP_MIDI:lintVitalRelease‘.
- [Solved] Android Studio Error: Error:Execution failed for task’:app:mergeDebugResources’
- [Solved] AS Run main() Error: Could not create task ‘:app:CreateOperatorDemo.main()‘
- [Solved] Flutter Error: fluwx:compileDebugKotlin
- Fuel9.0 deployment openstack error: Deployment has failed,All nodes are finishedFailed task:Task[netconfig/1]
- [Solved] UE4 Android Package Error: failed for task :permission_library:compileDebugJavaWithJavac
- [Solved] Cordova Android Compile Error: Execution failed for task ‘:packageDebug‘
- [Solved] AndroidStudio package Invalid keystore format Error: Execution failed for task ‘:examplecases:packageRelease’…
- [Solved] Doris’s routineload task alarm consuming failed
- Springboot Compile Error: Execution failed for task ‘:buildSrc:checkFormatMain‘
- ubuntu docker dm_task_run failed error [How to Solve]
- Android7.0+ Failed to Share Images: exposed beyond app through ClipData.Item.getUri()