https://kotlinlang.org logo
#compose
Title
# compose
s

Sam

03/10/2022, 1:26 AM
hi, just downloaded
Android Studio Dolphin Canary 5
and trying to use with
Compose 1.2.0-alpha05
, but receiving this ambiguous compile-time error:
c

Colton Idle

03/10/2022, 4:25 AM
Not sure of the error, but just chiming in that I'm using dolphin c5 and latest compose alpha and I'm not getting that error.
z

Zoltan Demant

03/10/2022, 4:51 AM
I saw the same error last night, on alpha04 of compose. Multiple cleans of the project and eventually the problem disappeared blob thinking upside down Edit: Jinxed it, the issue is back.
I dont know if this will work forever, but upgrading gradles distribution-url fixed it for me. Was previously on 7.4.
Copy code
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
Edit: It came back again..
s

Sam

03/10/2022, 6:04 AM
i just tried
gradle-7.4.1-bin.zip
and it unfortunately did not work
z

Zoltan Demant

03/10/2022, 6:09 AM
Seeing the same thing, after a while it starts working for me but I cant really tell why/how.
s

Sam

03/10/2022, 6:31 AM
i’ve isolated it to
id "com.google.gms.google-services"
in
build.gradle
, commenting out is a workaround
of course now trying to run the app fails with exception
Unable to resume activity: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process . Make sure to call FirebaseApp.initializeApp(Context) first
but at least we’re getting somewhere
using
classpath "com.google.gms:google-services:4.3.8"
in root
build.gradle
fixes the problem
z

Zoltan Demant

04/20/2022, 4:08 AM
Did you end up reporting it under the play-services repo as well?
14 Views