Status Update
Comments
sp...@google.com <sp...@google.com>
je...@google.com <je...@google.com>
am...@google.com <am...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com> #2
Ah I think this is the transition from a gradle build without any android, which isn't a well tested case, to one with a new android project.
Does it work if you create the android project empty first, with android.useAndroidX=true, sync and then add the compose activity template?
cm...@google.com <cm...@google.com> #3
(Apologies for the delay in getting to this)
cm...@google.com <cm...@google.com> #4
This should be fixed in Android Studio Jellyfish Canary 12 once that is released, which now Studio assumes androidx is always enabled even before there are any android plugins used (I haven't reproduced your exact case, so please do comment if there's still something wrong with Jellyfish Canary 12)
an...@google.com <an...@google.com> #5
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Jellyfish | 2023.3.1 Canary 12
- Android Gradle Plugin 8.4.0-alpha12
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
Description
I can't create an android app module with an empty compose activity template in my KMP project, even after adding this line inside the
gradle.properties
file:android.useAndroidX=true
Few weeks back this was possible with a single line above mentioned, but now it won't work, and I cannot create a new android module in my project.. Any solutions?