Didn't find class “androidx.core.app.CoreComponentFactory”

前端 未结 10 1275
一向
一向 2020-12-03 06:40

I don\'t know what to do about the following errors, I\'ve searched the web but not found anything:

java.lang.ClassNotFoundException: Didn\'t find class \"an         


        
10条回答
  •  萌比男神i
    2020-12-03 06:58

    Adding Java 1.8 compatibility to my build.gradle fixed this for me (non-release build with multidex enabled).

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = "1.8"
    }
    

    Unfortunately I'm not sure why :)

提交回复
热议问题