Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

android - transformClassesWithDesugar build error after updating to AS 3.0 Canary 6

I updated to Android Studio 3.0 Canary 6 and am now getting following error (had been on Canary 5). I've searched for people seeing similar issues but no luck so far. Anyone else seeing anything like this? (note fwiw that project includes some Kotlin code)

Exception in thread "main" java.lang.IllegalArgumentException
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108)
    at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:295)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:173)
    at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:75)
    at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
    at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:77)
    at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
    at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:137)
    at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
    at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:368)
    at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:297)
    at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:251)
    at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:543)


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithDesugarForCustomDebug'.
> 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 /Users/jooreill/.gradle/caches/transforms-1/files-1.1/play-services-auth-11.0.1.aar/91f94c8cb7e863a526130efb6853f44d/jars/classes.jar --output /Users/jooreill/devroot/github.com/augerlabs/android/app/build/intermediates/transforms/desugar/custom/debug/74.jar --input /Users/jooreill/devroot/github.com/augerlabs/android/app/build/tmp/kotlin-classes/customDebug --output /Users/jooreill/devroot/github.com/augerlabs/android/app/build/intermediates/transforms/desugar/custom/debug/104 --classpath_entry /Users/jooreill/devroot/github.com/augerlabs/android/app/libs/Vuforia.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/multidex-1.0.1.aar/68aa367bb1e87f4c04d0e8096afbe360/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/rxlifecycle-components-0.6.1.aar/b837126d50eda35a238e7bd86cc1c425/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/sectionedrecyclerviewadapter-1.0.4.aar/f4c62ec6b68561c4c8f2e0a5ec0d80d9/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/exomedia-3.1.1.aar/66adb78bc9c4c7786a58a994c00a5ef8/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/playlistcore-1.1.1.aar/49d1cb56d61981c150fcde68d63144bf/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/PanoramaImageView-1.0.aar/1c32f8cf1813084b859814da32240f8e/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/facebook-android-sdk-4.18.0.aar/92ff51227982206289a7eff19a88041a/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/sparkbutton-1.0.0.aar/5487c596f92c0fa9837a90297f6e3855/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/dexter-2.3.1.aar/a4ef168e02436f01282cf4d1d6b39115/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/algoliasearch-android-3.5.aar/198199df4a842a59c23abc3be195b0c3/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/firebase-ui-auth-2.0.1.aar/e649eadac02602bd44077d02205a69da/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/design-26.0.0-beta2.aar/443b130b797612ac88bab855035932ec/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/appcompat-v7-26.0.0-beta2.aar/85f6ae44a239c549b0042f86bb3779c9/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/recyclerview-v7-26.0.0-beta2.aar/db8b12f40c909a751a361300ace3e62c/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/cardview-v7-26.0.0-beta2.aar/18111878d92e05ebcf30f4ffebc5865a/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/palette-v7-26.0.0-beta2.aar/26eee6a40e9f2e65d1ebcd11de343be2/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/percent-26.0.0-beta2.aar/f3770d7d087221317999746fbad190c6/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/support-v13-26.0.0-beta2.aar/00f89973d57b4060ff2f1d93e208ccfe/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/rxlifecycle-0.6.1.aar/10994c956dc569d4685b2653d4d5fae3/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/adapter-rxjava/2.3.0/43e4ac24adc40a24c51b2d2a71a2483ef1b0ce9a/adapter-rxjava-2.3.0.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/rxbinding-0.4.0.aar/d267b21156fab2ff1e4b01d8be62cc26/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/rxandroid-1.1.0.aar/a051ff597c8879651794b4cdbc0288c4/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/io.reactivex/rxjava/1.3.0/af000bec2036a2a9d07197c4b03b8966bfc60b03/rxjava-1.3.0.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/keen-client-api-android-5.0.0.aar/3bce97b05132f7845a1ab1f10afcb558/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/io.keen/keen-client-java-core/5.0.0/59493e952e1a94a95edb10d0782073a808b11dda/keen-client-java-core-5.0.0.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/converter-gson/2.1.0/aa557d71ead91cbf26e0c316a0f593d168303309/converter-gson-2.1.0.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.stripe/stripe-java/3.5.0/1f94c8eb165e072da47469763ee74697a0acc45/stripe-java-3.5.0.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.7/751f548c85fa49f330cecbb1875893f971b33c4e/gson-2.7.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/firebase-core-11.0.2.aar/1456345113dac43ee724779c29328038/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/firebase-auth-11.0.2.aar/c70c35e8ea85ce516b6c3f75081beeae/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/firebase-database-11.0.2.aar/019fc1af21f35dbcae07f3c32e51da4d/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/firebase-ads-11.0.2.aar/4f4342cdae105a0dd435afb6fdded11e/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/firebase-storage-11.0.2.aar/0ce3385d91297486d9d18491fcd7bdfb/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/firebase-perf-11.0.2.aar/a1118b79fb1ab9d666cd22c04ef97fb4/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/play-services-nearby-11.0.2.aar/c1352daa47f550373137c81a4d012011/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/play-services-location-11.0.2.aar/19c93a0e7b4bf3b50cdfa7bd03425fb6/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/play-services-places-11.0.2.aar/97958df271160b9519d81b9e736ebffd/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/play-services-ads-11.0.2.aar/ec8c559dacb5e77a10ef26f8af9f775f/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/play-services-wallet-11.0.2.aar/2c9885a2c6f92a87da5726ef00d9b791/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/play-services-maps-11.0.2.aar/ffb05e8c61aae5a9890121a5260c3bd4/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/firebase-messaging-11.0.2.aar/4203fd3298aebb953e7bcbdf6de1a7f1/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/geofire-android-2.1.1.aar/0730cae841e0b48759c9e73bd61703dc/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.github.frankiesardo/auto-parcel/0.3.1/501393158454717fef27cba8d177f32a158b8955/auto-parcel-0.3.1.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/fab-1.6.4.aar/7212a5bdd8292a8b6c037de62901dad0/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/library-0.1.0.aar/3b8e7bd6f4901a48a4dd7524a77dd050/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/library-1.14.5.aar/bc42266211a8af8995b53d85405aa8d1/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.jakewharton.picasso/picasso2-okhttp3-downloader/1.1.0/f4f77eb62269c977c154765cd01587eda6488273/picasso2-okhttp3-downloader-1.1.0.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/picasso-2.6.0-SNAPSHOT.aar/cd8241d302a30d8e44f003957abe6fcd/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/logging-interceptor/3.8.1/feab46062803513d6a8307c74b0084265855de1a/logging-interceptor-3.8.1.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/converter-simplexml/2.1.0/a71c37fa341165df2c61ba93f549c4ceeb98d6c8/converter-simplexml-2.1.0.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/converter-scalars/2.2.0/6303d085f1da877f8cd49ae36ffc49db2ab59f4f/converter-scalars-2.2.0.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.3.0/bcacde6a8ccedcc56c127403d26b76072fe6214d/retrofit-2.3.0.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/3.8.1/4d060ca3190df0eda4dc13415532a12e15ca5f11/okhttp-3.8.1.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/stripe-android-2.0.2.aar/c5141a307a57062e90ac3143c6ab840e/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/CreditCardEntry-1.4.7.aar/6c1f2245cd13b6456abbe1db7523ae92/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/subsampling-scale-image-view-3.6.0.aar/f33292a13dc086e2c26ee39cf475d441/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/logger-1.15.aar/ba11ecde0536ba3c63baee07f741eeb2/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/transforms-1/files-1.1/butterknife-8.1.0.aar/14f95240c51be6ae0e4b30b441e1e072/jars/classes.jar --classpath_entry /Users/jooreill/.gradle/caches/modules-2/files-2.1/org.parceler/parceler-api/1.1.5/23114b381811fd7c8e7aeeef4b845453c4a16a1d/parceler-

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

1 Reply

0 votes
by (71.8m points)

I had that issue when moved to Android Studio 3.0

Ensure that you have same versions of firebase-core and play-services, e.g.:

 compile 'com.google.android.gms:play-services-ads:11.0.4'
 compile 'com.google.firebase:firebase-core:11.0.4'

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...