onyx-intl / OnyxAndroidDemo

158 stars 41 forks source link

Compilation errors #75

Closed SuperContraptionGuy closed 2 years ago

SuperContraptionGuy commented 2 years ago

I'm attempting to compile this project using Gradle 7.3.3, but it always fails with this error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Failed to calculate the value of task ':app:compileDebugJavaWithJavac' property 'options.generatedSourceOutputDirectory'.
   > Querying the mapped value of map(java.io.File property(org.gradle.api.file.Directory, property(org.gradle.api.file.Directory, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, /home/blackdoctor/Development/gentle-glow-onyx-boox/app/build/generated/ap_generated_sources/debug/out))) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@e2dea31) before task ':app:compileDebugJavaWithJavac' has completed is not supported

Does someone who has successfully built this project have any advice? I'd like to try tinkering with Onyx boox projects, but this compile error occurs with all of them. Surely it's my setup that's the issue, but I don't know how to fix it.

Edward259 commented 2 years ago

Plugin version need to match with Gradle version,You can try to reduce the Gradle version to 5.6.4. https://developer.android.google.cn/studio/releases/gradle-plugin.html#updating-plugin

SuperContraptionGuy commented 2 years ago

Great, thanks for the help. I was able to compile after downgrading gradle!