Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task '...compileDebugJavaWithJavac #25

Open
jkwiecien opened this issue Jan 30, 2022 · 1 comment
Open

Execution failed for task '...compileDebugJavaWithJavac #25

jkwiecien opened this issue Jan 30, 2022 · 1 comment

Comments

@jkwiecien
Copy link

I'm facing a build issue for every module:

Execution failed for task ':helloworld:common:compileDebugJavaWithJavac'.
> Failed to calculate the value of task ':helloworld:common:compileDebugJavaWithJavac' property 'options.generatedSourceOutputDirectory'.
   > Querying the mapped value of map(java.io.File property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, /Users/jacekkwiecien/Projects/car-samples/car_app_library/helloworld/common/build/generated/ap_generated_sources/debug/out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@634f2d8c) before task ':helloworld:common:compileDebugJavaWithJavac' has completed is not supported

I have a JAVA_HOME env var set and pointing to the correct JAVA 8 jdk. Same is set in Android Studio SDK. ALso using jevn, all set to 1.8.

Been previously using JAVA 11, but changing all these didn't help.

@osipxd
Copy link

osipxd commented Mar 25, 2022

Try to update Android Gradle Plugin to 4.2.2 or higher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants