Thread
#compose
    s

    Sam

    1 year ago
    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:
    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

    1 year ago
    for any issue, try to find it in their issue tracker first.https://issuetracker.google.com/issues/174494528
    s

    Sam

    1 year ago
    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

    1 year ago
    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

    1 year ago
    wow i do not know how to browse this issue tracker..
    hard to tell what is relevant
    a

    allan.conda

    1 year ago
    yeah there’s guesswork, you have to find the key term lol
    s

    Sam

    1 year ago
    there are about 5 different reported issues of the same thing, horrible bug
    Colton Idle

    Colton Idle

    1 year ago
    I always thought I was terrible at searching... guess it's not just me.