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

Sam

12/04/2020, 8:39 AM
Not sure where to report this, but I’m having major problems deploying compose projects to a physical device over usb (Pixel 4a) using a new Apple Silicon Macbook Air. The phone seems to be keeping an old version, doesn’t matter if Run/Debug. Uninstalling the app is the only way for the deployment to correct launch the latest apk. This is on Android Studio Arctic Fox Canary 2 with Compose on latest alpha08. I’ve also tried with compose-samples (JetChat) and having the same problems. I have resorted to adding a dynamic buildCode to
build.gradle
which gets new deployments properly launched on the device:
Copy code
def buildCode = (int)(((new Date().getTime()/1000) - 1451606400) / 10)
android {
    compileSdkVersion 30
    buildToolsVersion "30.0.2"

    defaultConfig {
        ...
        versionName "0.1.${buildCode}"
        ...
    }
}
I am not sure if this has to do with apple silicon, arctic fox, or alpha08?
a

allan.conda

12/04/2020, 8:41 AM
for any issue, try to find it in their issue tracker first. https://issuetracker.google.com/issues/174494528
s

Sam

12/04/2020, 8:44 AM
yep that’s it, ok so i’m not going crazy! thx @allan.conda
i will add more details to that bug
a

allan.conda

12/04/2020, 8:45 AM
That site saves me a lot of time. my rule of thumb: If I don’t understand the issue, it’s probably a Google bug lol
s

Sam

12/04/2020, 8:53 AM
wow i do not know how to browse this issue tracker..
hard to tell what is relevant
a

allan.conda

12/04/2020, 8:58 AM
yeah there’s guesswork, you have to find the key term lol
s

Sam

12/04/2020, 8:59 AM
there are about 5 different reported issues of the same thing, horrible bug
c

Colton Idle

12/04/2020, 3:38 PM
I always thought I was terrible at searching... guess it's not just me.
4 Views