Gurupreet / ComposeCookBook

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

Master doesn't seem compile with Arctic Fox RC 1 #106

Closed snijsure closed 3 years ago

snijsure commented 3 years ago

Describe the bug Master doesn't seem compile with Arctic Fox RC 1

To Reproduce Steps to reproduce the behavior:

I installed Arctic Fox RC 1 and attempted to compile master and I see the following error

..../ComposeCookBook/buildSrc/src/main/kotlin/common-compose-module-configs-script-plugin.gradle.kts: (8, 1): Expression 'android' cannot be invoked as a function. The function 'invoke()' is not found

FWIW I am using Android Studio default JDK, anybody else

Screen Shot 2021-07-24 at 6 25 50 AM
Gurupreet commented 3 years ago

@GerardPaligot @hfrsoussama any ideas on this JDK looks correct.

Gurupreet commented 3 years ago

@snijsure Anyways currently I am using latest bumblebee canary for latest development.

wiryadev commented 3 years ago

I tried it using RC01 with both JDK 11 and 13, compiled perfectly. Maybe try JDK 13? image

Gurupreet commented 3 years ago

Thanks @wiryadev :)

devluckman commented 3 years ago

I tried it using Android Studio Bumblebee 2021.1.1 Canary 7 and I got the same problem, I try to downgrade Gradle to version 7.0.0 and kotlin-gradle to version 1.5.10, finally this work for me

Screenshot_89

zqlq4ever commented 3 years ago

Describe the bug Master doesn't seem compile with Arctic Fox RC 1

To Reproduce Steps to reproduce the behavior:

I installed Arctic Fox RC 1 and attempted to compile master and I see the following error

..../ComposeCookBook/buildSrc/src/main/kotlin/common-compose-module-configs-script-plugin.gradle.kts: (8, 1): Expression 'android' cannot be invoked as a function. The function 'invoke()' is not found

FWIW I am using Android Studio default JDK, anybody else

Screen Shot 2021-07-24 at 6 25 50 AM

me too

Gurupreet commented 3 years ago

Hey @zqlq4ever I think I was using latest Bumblebee canary made me update to Gradle. I think as @devluckman suggested please change to "downgrade Gradle to version 7.0.0 and kotlin-gradle to version 1.5.10" should compile in Arctic fox."

Thanks for insights I guess in future I will try to keep it sync with Arctic fox version instead of latest canary 👍🏽

GerardPaligot commented 3 years ago

Yes, Arctic Fox need AGP version bigger or equals than 7.0 but lower than 7.1. And Bumblebee need to use AGP version bigger than 7.1-alpha (current version configured on the project).

@Gurupreet Maybe we need to specify in the README file if this project will be compatible with the Canary or Stable Android Studio version to avoid this kind of issue?

alifesoftware commented 3 years ago

@devluckman - Thanks for the solution.

Would be great if README could be updated with this information.

Gurupreet commented 3 years ago

Thanks @GerardPaligot let me update README file for this.

Gurupreet commented 3 years ago

Updated please use latest Bumblebee canary 👍🏽