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

Kshitij Patil

12/21/2020, 1:20 PM
What's the minimum AS version required to use compose alpha09 ? I tried to use bleeding edge Arctic Fox Canary 3 but found it bugy, fails to show suggestions sometimes so planning to downgrade.
g

gildor

12/21/2020, 1:28 PM
There is no other version which supports Compose Only way is downgrade is use Android Studio 4.2-alpha (Betta doesn't include compose), but not sure that it works fine with alpha09
r

rsktash

12/21/2020, 1:39 PM
Use Arctic Foc Canary 2
👍 1
k

Kshitij Patil

12/21/2020, 1:41 PM
Okay
c

Colton Idle

12/21/2020, 3:02 PM
Canary 2 has a bug on api 30 devices where new installs won't actually install. Use c3
k

Kshitij Patil

12/21/2020, 3:04 PM
Okay, do you found any issues with c3 ?
r

rsktash

12/21/2020, 3:06 PM
I had an issue with kotlin multiplatform project on c3 Then I rolled back AS
k

Kshitij Patil

12/21/2020, 3:07 PM
@Colton Idle is there a problem with targeting API 30 or using a device with API 30?
c

Colton Idle

12/21/2020, 3:37 PM
I haven't had any issues. Just make sure to uninstall your app if you built it with c2.
k

Kshitij Patil

12/21/2020, 4:50 PM
Okay, I was not getting any suggestions and IDE become nomore than a text editor and I had to submit a fix immediately, you know I wrote a Fragment code without any suggestions, not even for imports 😳 hope this won't happen again.. giving c3 one more try
j

jim

12/21/2020, 5:08 PM
Please file a bug on AndroidStudio and link it here if you are running into an issue with C3.
👍 1
z

zoha131

12/22/2020, 1:10 AM
I am facing the same problem. 🤯
c

Colton Idle

12/22/2020, 3:13 AM
What problem @zoha131?
z

zoha131

12/22/2020, 3:14 AM
AS studio takes forever to analyze the code. And as a result I don’t get the auto completion.
👍 1
s

Saurabh Thorat

12/22/2020, 4:56 AM
@zoha131 That might be a plugin related issue: https://issuetracker.google.com/issues/174730186
👍 1
z

zoha131

12/22/2020, 5:21 AM
Thanks for link. i have removed save-arg plugin. and it fixes the issue.
k

Kshitij Patil

12/22/2020, 6:03 AM
What? You removed plugin and all its usages !?
z

zoha131

12/22/2020, 6:23 AM
@Kshitij Patil I was planning to use navigation-compose and was slowly moving away from fragment and toolkit navigation library. So it was not much for me. 😬
k

Kshitij Patil

12/22/2020, 6:26 AM
That sounds convincing reason to me if I have to remove navargs & Directions from my codebase.
@zoha131 how do you pass arguments without using safeargs? I'm trying to use deeplinks and
requireArguments()
but it doesn't seem to work. Is there any particular lifecycle state where I should initialize them?
z

zoha131

12/22/2020, 5:28 PM
I don't. I am using the navigation-compose library. I have removed all the fragment from my project
a

allan.conda

12/23/2020, 1:41 AM
thanks for the heads up… we’re using safeargs as well
k

Kshitij Patil

12/23/2020, 7:00 AM
@allan.conda So you're not using alpha09? Looks like I'm stuck unnecessarily, should I rollback to Compose alpha08? Are there any serious issues in alpha08?
a

allan.conda

12/23/2020, 7:01 AM
yeah, not yet
k

Kshitij Patil

12/23/2020, 7:04 AM
@allan.conda Which AGP & AS Version are you using? I'll be rolling back to that with alpha08
a

allan.conda

12/23/2020, 7:14 AM
4.2.0-alpha15
i’m stuck at Canary 8 as it’s the most stable
k

Kshitij Patil

12/23/2020, 7:21 AM
And alpha08? Looks like kotlin 1.4.21 makes you upgrade the AS & Plugin version
a

allan.conda

12/23/2020, 7:21 AM
yes, and 1.4.20
there are always issues, but that safeargs issue is too much of a blocker
k

Kshitij Patil

12/23/2020, 7:24 AM
Exactly.. I realised I should have taken this conversation to DM 😅
@allan.conda I just came to know that we don't need to upgrade AGP to use the alpha09. My current versions are as follows and everything seems to work fine including AS autocompletion and stuff. Gradle distribution: 6.7 AGP: 4.2.0-alpha15 Kotlin: 1.4.21 Compose: 1.0.0-alpha09 Android Studio: 4.2 Canary 8 Thanks for suggesting a stable Android Studio version