Error:java.lang.ClassNotFoundException: Class org.openjdk.jdi.ReferenceType not found

前端 未结 1 1512
忘掉有多难
忘掉有多难 2021-01-25 09:27

Error:Execution failed for task \':app:transformClassesWithDesugarForDebug\'.

com.android.build.api.transform.TransformException: java.lang.RuntimeExcepti

相关标签:
1条回答
  • 2021-01-25 10:08

    it's not clear but as i see you are using so much libs so maybe you have to use MultiDex. Add multiDexEnabled true to your gradle file.

     defaultConfig {
            applicationId "com.company.application"
            minSdkVersion 19
            targetSdkVersion 25
            versionCode 1
            multiDexEnabled true // this line
    }
    

    and

    dependencies {
      compile 'com.android.support:multidex:1.0.1'
    }
    

    then go to your manifest.xml and add :

    <application
                android:name="android.support.multidex.MultiDexApplication" //this line >
    </application>
    

    full documentation

    0 讨论(0)
提交回复
热议问题