I have a problem with my project. When i want to run my project i got this error. I want to try this on Android 14 Beta.
A problem occurred configuring project ':app'.
Could not create task ':app:kaptMockDebugKotlin'. Cannot use @TaskAction annotation on method KaptWithoutKotlincTask.compile() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.
My Settings:
Android Gradle Pulgin Version: 8.0.2 Gradle Version: 8.1
tools_versions = [
kotlin : '1.9.0',
agp : '8.0.2',
minSdk : 21,
compileSdk : 34,
targetSdk : 34,
sonarScanner: "3.0",
ndk : "21.0.6113669"
]
I change the gradle update everthing but nothing works
In my case I had to update a library
classpath "com.diffplug.spotless:spotless-plugin-gradle:6.23.3"
I got more details about my error by running
./gradlew build --warning-mode all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With