a

    alorma

    1 year ago
    Hi! I'm trying to get rid of
    appCompat
    and materialdependencies, usinig just a
    ComponentActivity
    from
    androidx.activity:Activity:1.3.0
    , but i receive a crash:
    Process: com.alorma.composedrawer, PID: 13088
        java.lang.AbstractMethodError: abstract method "void androidx.lifecycle.DefaultLifecycleObserver.onCreate(androidx.lifecycle.LifecycleOwner)
    my deps:
    dependencies {     implementation("androidx.activity:activity-compose:1.3.0")
    
        implementation("androidx.compose.foundation:foundation:1.0.0")
        implementation("androidx.compose.foundation:foundation-layout:1.0.0")
        implementation("androidx.compose.ui:ui:1.0.0")
        implementation("androidx.compose.material:material:1.0.0")
        implementation("androidx.compose.ui:ui-tooling:1.0.0")
    }
    Albert Chang

    Albert Chang

    1 year ago
    a

    alorma

    1 year ago
    so, only workaround is to use agp
    7.1.0-alpha06
    ?
    Albert Chang

    Albert Chang

    1 year ago
    You can either set minSdkVersion to 24+ (for debug builds) or use agp 7.0.0.
    a

    alorma

    1 year ago
    ooooh damn, i was not set the RC of AGP on the project
    thanks
    a

    Aidooyaw1992

    1 year ago
    has it worked so far?
    by the way are you using bumblebee or artic fox
    a

    alorma

    1 year ago
    it worked using AGP 7.0.0
    AC
    a

    Aidooyaw1992

    1 year ago
    ok