Gurupreet / ComposeCookBook

A Collection on all Jetpack compose UI elements, Layouts, Widgets and Demo screens to see it's potential
MIT License
6.34k stars 810 forks source link

Project have build errors #81

Closed Gurupreet closed 3 years ago

Gurupreet commented 3 years ago

Describe the bug While updating to beta09 I noticed somehow project is not compiling giving multiple build errors on

Android Studio Bumblebee | 2021.1.1 Canary 2 Build #AI-211.6222.4.2111.7407564

To Reproduce Please check branch : https://github.com/Gurupreet/ComposeCookBook/tree/update/beta09

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2021-06-18 at 9 41 09 PM
Gurupreet commented 3 years ago

@GerardPaligot @hfrsoussama is there something missing on my side I am not able to compile latest main. Can you please try above branch if you still face the issue.

GerardPaligot commented 3 years ago

I'm checking tonight (europe timezone) and coming back here to let you know!

Gurupreet commented 3 years ago

No worries whenever you have time @GerardPaligot 👍🏽 Happy weekend 💯

GerardPaligot commented 3 years ago

I can confirm to you that the project compile on master branch but not on update/beta09 branch. pointerInteropFilter is now protected by @ExperimentalComposeUiApi annotation so the project didn't compile anymore. I pushed a commit on your branch. Everything is fine now. :)

https://github.com/Gurupreet/ComposeCookBook/tree/update/beta09

Gurupreet commented 3 years ago

It doesn't compile for me in master either showing above last five errors.
1:) failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction

2:) .KaptContext (in unnamed module @0x45224ac8) cannot access class com.sun.tools.javac.util.Context (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.util to unnamed module @0x45224ac8

I am not sure if it's related to android studio version or some caching I have cleared all cache. Let me check more.

OussamaHaff commented 3 years ago

Hello @Gurupreet,

I have just tried to compile master branch and all seams good

Test on current master master (Gradle 7.0)

Test on feat/update_gradle_wrapper_7_1 branch (Gradle 7.1)

Helpful verification to do

GerardPaligot commented 3 years ago

Same as @hfrsoussama, everything work for me from CLI or AS Canary 2 with my Macbook Pro or my Windows. Have you tested with only Gradle CLI? If it works, try to clean caches in your AS Canary 2 instance maybe?

Gurupreet commented 3 years ago

Thanks @GerardPaligot @hfrsoussama I think it's related to AS canary cache somehow. I will try cleaning it all up. Thanks for quick help 👍🏽 💯

OussamaHaff commented 3 years ago

You are welcome 👍