Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
663 views
in Technique[技术] by (71.8m points)

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

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

com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.errorpronejavac9-dev-r3297-1-shadedf6d4998965282068a3feecddc21578d23f17275javac-9-dev-r3297-1-shaded.jar --output C:UsersADMINAndroidStudioProjectsMyApplication6appuildintermediatesransformsdesugardebug47.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1extensions-1.0.0-alpha5.aar8f6fc0da20d38b403871ce8229e8ad50jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1 untime-1.0.0-alpha5.aar8a4489d5cc81ea23ea71206353fc7255jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.squareup.retrofit2converter-gson2.3.09e09011e9767bb76b5e27c9b8223476b93b14631converter-gson-2.3.0.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.code.gsongson2.8.12a8e0aa38a2e21cb39e2f5a7d6704cbdc941da0gson-2.8.1.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.squareup.retrofit2 etrofit2.3.0cacde6a8ccedcc56c127403d26b76072fe6214d etrofit-2.3.0.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.github.bumptech.glideglide3.8.09bada650e1afe9c6174ddc0d113c1fce4dc26fe0glide-3.8.0.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.squareup.picassopicasso2.5.27446d06ec8d4f7ffcc53f1da37c95f200dcb9387picasso-2.5.2.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.daggerdagger-compiler2.11756e69064a68fd9e25a9009604ca174ac71a3ceedagger-compiler-2.11.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.daggerdagger-android-processor2.1170dbaa743b0675501df4d5bdc821728b2e0d932ddagger-android-processor-2.11.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1dagger-android-support-2.11.aar201271be76c5243e0d3e6501edcf6f7bjarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1dagger-android-2.11.aar1ae8a189f0dfadac5ee62b59a460f9a8jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.daggerdagger-producers2.114331ce4fb6a91682127000f88a2e3b8bd441d3fcdagger-producers-2.11.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.daggerdagger2.1195037eaee68aa48021511972e9db9ba29916e1c9dagger-2.11.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1 ecyclerview-v7-26.0.0-beta2.aar1d04c75b156851decf6158ad0b6baa91jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1multidex-1.0.2.aar4bdf8713c02c7bcacf5d7bba40a573bcjarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1adapters-1.3.1.aar44a4f28def6895101fd1be302de59d20jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1library-1.3.1.aarfa67f4a3d3124466664bc95a81729d2fjarsclasses.jar --classpath_entry C:UsersADMINDesktopandroid-studiogradlem2repositorycomandroiddatabindingaseLibrary3.0.0-alpha7aseLibrary-3.0.0-alpha7.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1appcompat-v7-26.0.0-beta2.aar5924197e9a2457796f817777cdd08f93jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1constraint-layout-1.0.2.aar923a04de9cb535b3cd5e2695296076e5jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1cardview-v7-26.0.0-beta2.aarefd9af453b9d63f096b3a11dba984305jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1 untime-1.0.0-alpha5.aarfc41c83071692c34834010cf5e0868ffjarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1android.arch.lifecyclecommon1.0.0-alpha516bbceb3231045909d9b2d19758c57a30831ce9fcommon-1.0.0-alpha5.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1 untime-1.0.0-alpha5.aar76f20618807b2b83670913f0b7e407c2jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1android.arch.corecommon1.0.0-alpha5ef1ec521c95486fb256b3677a95c340ce9c49407common-1.0.0-alpha5.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-v4-26.0.0-beta2.aara662acc1e2403d4ba16c7f48349e7ea8jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-fragment-26.0.0-beta2.aarfce84c223ce35468788f40c4d65ed060jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1android.arch.persistence.roomcommon1.0.0-alpha5da7c4f373e9a9e114fc3a12edcbb7bd7f8822b4bcommon-1.0.0-alpha5.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-db-impl-1.0.0-alpha5.aarfc9a786657d6f6356de7bf7a5473044cjarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-db-1.0.0-alpha5.aar9617b55aab66c2ff9f18f3e56b3ef36jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-core-utils-26.0.0-beta2.aar56812f54b7431ba56ef67800d0d0dcc0jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.squareup.okhttp3okhttp3.8.05a11f020cce2d11eb71ba916700600e18c4547e7okhttp-3.8.0.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.code.findbugsjsr3053.0.1f7be08ec23c21485b9b5a1cf1654c2ec8c58168djsr305-3.0.1.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.googlejavaformatgoogle-java-format1.3949e85e75b3160ce1446aa99d806d5b509631b02google-java-format-1.3.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.guavaguava21.03a3d111be1be1b745edfa7d91678a12d7ed38709guava-21.0.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.squareupjavapoet1.7.04fdcf1fc27c1a8f55d1109df986c923152f07759javapoet-1.7.0.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1javax.injectjavax.inject16975da39a7040257bd51d21a231b76c915872d38javax.inject-1.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.daggerdagger-android-jarimpl2.11b43b5199a1065f0f0581ebce14b46b99b9c20f9dagger-android-jarimpl-2.11.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.daggerdagger-android-support-jarimpl2.11c9d0866780279a3ad22052ac35d18eeb0474a770dagger-android-support-jarimpl-2.11.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1animated-vector-drawable-26.0.0-beta2.aar6ecf752d5c8c50cdf570abed8ce97e71jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-vector-drawable-26.0.0-beta2.aare99fe293d30a27888a838a8d9c6fcd41jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-core-ui-26.0.0-beta2.aar4f371dc6bcab7abfb5585b47251d78e1jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-media-compat-26.0.0-beta2.aare505e4d67ce6ac61ea66a9c4a237cd9cjarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesransforms-1files-1.1support-compat-26.0.0-beta2.aar863369e5d0bfb1291c6f1c0a0bfafc1jarsclasses.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.android.supportsupport-annotations26.0.0-beta2e5ef6e4822404221c9b03dff0d31e4810ac3fb0dsupport-annotations-26.0.0-beta2.jar --classpath_entry E:sdkextrasm2repositorycomandroidsupportconstraintconstraint-layout-solver1.0.2constraint-layout-solver-1.0.2.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.squareup.okiookio1.13.0a9283170b7305c8d92d25aff02a6ab7e45d06cbeokio-1.13.0.jar --classpath_entry C:UsersADMIN.gradlecachesmodules-2files-2.1com.google.errorpronejavac9-dev-r3297-1-shadedf6d4998965282068a3feecddc21578d23f17275javac-9-dev-r3297-1-shaded.jar --classpath_entry C:UsersADMINAndroidStudioProjectsMyApplication6appuildintermediatesclassesdebug --bootclasspath_entry E:sdkplatformsandroid-26android.jar --bootclasspath_entry E:sdkplatformsandroid-26optionalorg.apache.http.legacy.jar --bootclasspath_entry C:UsersADMINDesktopandroid-studiojrejrelib esources.jar --bootclasspath_entry C:UsersADMINDesktopandroid-studiojrejrelib t.jar --bootclasspath_entry C:UsersADMINDesktopandroid-studiojrejrelibjsse.jar --bootclasspath_entry C:UsersADMINDesktopandroid-studiojrejrelibjce.jar --bootclasspath_entry C:UsersADMINDesktopandroid-studiojrejrelibcharsets.jar --min_sdk_version 15 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}

what was the error?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...