android / architecture-components-samples

Samples for Android Architecture Components.
https://d.android.com/arch
Apache License 2.0
23.47k stars 8.28k forks source link

Unable to build MADSkillsNavigation sample #1086

Open phazei opened 1 year ago

phazei commented 1 year ago

I'm using Android Studio Electric Eel. When I try to run the project I get 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, fixed(class org.gradle.api.internal.file.DefaultFilePropertyFactory$FixedDirectory, C:\Users\Homestar\AndroidStudioProjects\architecture-components-samples\MADSkillsNavigationSample\app\build\generated\ap_generated_sources\debug\out)) org.gradle.api.internal.file.DefaultFilePropertyFactory$ToFileTransformer@4639114f) before task ':app:compileDebugJavaWithJavac' has completed is not supported

I tried checking out older versions, but it doesn't seem to work. Really wanted to test it out.

Bugzer0 commented 1 year ago

Me too :(

ingenika commented 1 year ago

update classpath 'com.android.tools.build:gradle:7.0.0' in build.pradle(Projet) solve the problem.

But still some works needs to be done for app to work