Error compiling project with kotlin:
Execution failed for task ‘:app:kaptDebugKotlin’.
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
java.lang.reflect.InvocationTargetException (no error message)
various kotlin annotation errors will be reported
The problem is that the version of kotlin plug-in is inconsistent with that in build
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Check the version of the org.jetbrains.kotlin:kotlin-gradle-plugin is consistent with the version of the kotlin that the module depends on or not.
Read More:
- [Solved] Android app development version update failed, Android – error: task execution failed ‘: app: com
- [Solved] Execution failed for task ‘:app:mergeDebugJavaResource‘.
- [Solved] Execution failed for task ‘:app:checkDebugAarMetadata‘
- [Solved] Android Error: Execution failed for task ‘:app:mergeReleaseNativeLibs‘.
- [Solved] Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com.and
- Android studio Error:Execution failed for task ‘: app:transformResourcesWithMergeJavaResForDebug ‘
- [Solved] Android Studio Compile Error: Execution failed for task ‘:APP_MIDI:lintVitalRelease‘.
- Execution failed for task ‘:app:processDebugMainManifest‘.> Manifest merger failed : Apps targeting
- app:kaptDebugKotlin no error message [How to Solve]
- [Solved] Android Studio Error: Error:Execution failed for task’:app:mergeDebugResources’
- [How to Solve] Task :app:compileDebugKotlin FAILED
- [Solved] Cordova Android Compile Error: Execution failed for task ‘:packageDebug‘
- [Solved] AndroidStudio package Invalid keystore format Error: Execution failed for task ‘:examplecases:packageRelease’…
- Springboot Compile Error: Execution failed for task ‘:buildSrc:checkFormatMain‘
- [Solved] AS Run main() Error: Could not create task ‘:app:CreateOperatorDemo.main()‘
- 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] Doris’s routineload task alarm consuming failed
- Hive Statement Error During Execution: Error while processing statement: FAILED: Execution Error, return code 2 from o
- ubuntu docker dm_task_run failed error [How to Solve]