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

Charles Burton

12/10/2020, 7:50 PM
So, I’m new to Jetpack and I’m having what are admittedly some problems related to my newness. For reference I’m using the version shipped with the current canary build of Android Studio and I’m running Ubuntu 20.04.1 as my dev machine. The device I’m working with is a Pixel 4a 5G fully up to date. 1. I can’t seem to get reload to work. In the sample app created by default when I change the text “Android” to “World” no combination of rebuild and send preview to device seems to update the text. 2. Dark mode colors seem to not work, all I have is black text on a blacker background. I’ve tried adjusting the colors but the same problem as above seems to make reloading them not function.
a

Alejandro Rios

12/10/2020, 7:52 PM
1. looks like reload for preview is a little buggy on Artic Fox 2. Did you check the Jetpack Compose Theming codelab? https://developer.android.com/codelabs/jetpack-compose-theming#8
b

Bryan Herbst

12/10/2020, 7:53 PM
There are a handful of open issues for 2020.3 around not installing the latest version- there’s a potential workaround here: https://issuetracker.google.com/issues/174494528#comment2
c

Charles Burton

12/10/2020, 7:54 PM
Wow, you all are quick 🙂 I’ve definitely trid the theming codelab. That’s initially how I found out that I can’t get the colors to reload. @Bryan Herbst Thanks for that, I’ll defintely take a look this evening.
For the theming module I can’t seem to get it to respect theming in any form. I’ve even gone so far as to uninstall the app entirely from the device and on reinstall it still has the same default colors.
Is it possible to use Jetpack with stable Android Studio? It didn’t seem like that from the docs.
b

Bryan Herbst

12/10/2020, 8:10 PM
Nope, only canary unfortunately (which currently means 2020.3)