android / android/car-samples

Execution failed for task '...compileDebugJavaWithJavac

Open
#25 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
464
Forks
191
PR merge metrics
No merged PRs in 30d

Description

I'm facing a build issue for every module:

```* What went wrong:
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.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported :helloworld:common:compileDebugJavaWithJavac failure and compare the configured JAVA_HOME, Android Studio JDK, and Java 8 settings. Trace the options.generatedSourceOutputDirectory error across the affected modules; done means the sample builds successfully for every module without this task error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.