evant / gradle-retrolambda

A gradle plugin for getting java lambda support in java 6, 7 and android
Apache License 2.0
5.3k stars 449 forks source link

I got this error : [failed for task ':app:transformClassesWithRetrolambdaForRelease'] #259

Closed H-Zan closed 7 years ago

H-Zan commented 7 years ago
When I use Retrolambda in Activtity, I will get this error and cant release my project. 
When I use Retrolambda in normal Class, everything is fine.

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

Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

10:53:03.645 [INFO] [system.out] Retrolambda 2.5.1
10:53:03.769 [INFO] [system.out] 00:00  INFO: Bytecode version: 51 (Java 7)
10:53:03.770 [INFO] [system.out] 00:00  INFO: Default methods:  false
10:53:03.770 [INFO] [system.out] 00:00  INFO: Input directory:  /Users/macmi001/Desktop/BM/Main/Project/DaMai/app/build/intermediates/classes/release
10:53:03.770 [INFO] [system.out] 00:00  INFO: Output directory: /Users/macmi001/Desktop/BM/Main/Project/DaMai/app/build/intermediates/transforms/retrolambda/release/folders/1/1/retrolambda
10:53:03.771 [INFO] [system.out] 00:00  INFO: Classpath:        [/Users/macmi001/Desktop/BM/Main/Project/DaMai/loginlib/build/intermediates/bundles/default/classes.jar, /Users/macmi001/Desktop/BM/Main/Project/DaMai/baselib/build/intermediates/bundles/default/classes.jar, /Users/macmi001/.android/build-cache/a1b0efa3b5c061e998e67343feddba07a477a258/output/jars/classes.jar, /Users/macmi001/.android/build-cache/82b20e31baf745bc679d4ffefc30c3dcd3104da2/output/jars/classes.jar, /Users/macmi001/.android/build-cache/243510150f7c55da45f26baffc362b45a50afe50/output/jars/classes.jar, /Users/macmi001/.android/build-cache/8bb6d6ca7b0dabe74ca2dbdeb07e66773803a759/output/jars/classes.jar, /Users/macmi001/.android/build-cache/ccd163a1ae1560933b025fa3ef799bfc1171f29e/output/jars/classes.jar, /Users/macmi001/.android/build-cache/338b05fbf31cb92cbffe378f5fcbe1e22c6a4a51/output/jars/classes.jar, /Users/macmi001/.android/build-cache/7bd534fee5f366e5cd571fe0d89b06e475089b17/output/jars/classes.jar, /Users/macmi001/.android/build-cache/f8ba23a35baa52314c9bcbe0eedd8f1c23b8aa89/output/jars/classes.jar, /Users/macmi001/.android/build-cache/8054bf162e38d99a270648bbf196ebb67bc61b53/output/jars/classes.jar, /Users/macmi001/.android/build-cache/e42ab252db862e6b2eb5bdae5b18e236f60b4581/output/jars/classes.jar, /Users/macmi001/.android/build-cache/d1516e07347c48a97497fd279c203e4ed0835002/output/jars/classes.jar, /Users/macmi001/.android/build-cache/d1b376b02b90f9b64ebfa7b9a6897a3b8b042816/output/jars/classes.jar, /Users/macmi001/.android/build-cache/96aef19032043b32f2fcec94416a593935ab727f/output/jars/classes.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.j256.ormlite/ormlite-android/4.48/afa06f539a4026c10b247386312aa67404b80a16/ormlite-android-4.48.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.j256.ormlite/ormlite-core/4.48/e579bd2905d0399af5029aaaf9817d5fa0ca88a5/ormlite-core-4.48.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.annimon/stream/1.1.8/7a1fc450331f5e34beec4475561d52245c775b19/stream-1.1.8.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/converter-gson/2.3.0/9e09011e9767bb76b5e27c9b8223476b93b14631/converter-gson-2.3.0.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/adapter-rxjava2/2.3.0/f436637f9500ab5b8bc32afe556373180894b4a5/adapter-rxjava2-2.3.0.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.squareup.retrofit2/retrofit/2.3.0/bcacde6a8ccedcc56c127403d26b76072fe6214d/retrofit-2.3.0.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/io.reactivex.rxjava2/rxjava/2.1.1/99895d4dc6d79efbb74360f13c556d95533ad8f8/rxjava-2.1.1.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/org.reactivestreams/reactive-streams/1.0.0/14b8c877d98005ba3941c9257cfe09f6ed0e0d74/reactive-streams-1.0.0.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.google.code.gson/gson/2.7/751f548c85fa49f330cecbb1875893f971b33c4e/gson-2.7.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/logging-interceptor/3.8.1/feab46062803513d6a8307c74b0084265855de1a/logging-interceptor-3.8.1.jar, /Users/macmi001/.android/build-cache/a9fd996e083265e9a480d5c19cf5f871dc84bdff/output/jars/classes.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.jakewharton/butterknife-annotations/8.5.1/bb67dad90bab7cd77a8f7f1b8442b47e3a2326bc/butterknife-annotations-8.5.1.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glide/okhttp3-integration/4.0.0-RC1/5dd97df1fc577cf2939b6ba44b32e80400c8698/okhttp3-integration-4.0.0-RC1.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glide/glide/4.0.0-RC1/7baec7d5132e7343100a99630a56a6584a33addc/glide-4.0.0-RC1.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glide/gifdecoder/4.0.0-RC1/c425e31eda1069f978a0e823ad50e567ab422656/gifdecoder-4.0.0-RC1.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glide/disklrucache/4.0.0-RC1/1b4bba8f8d3df8db064c875c043c01e9ca3cdee9/disklrucache-4.0.0-RC1.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.github.bumptech.glide/annotations/4.0.0-RC1/84c524dcd1a3088edd5560a8ac176eae1317f770/annotations-4.0.0-RC1.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.squareup.okhttp3/okhttp/3.8.1/4d060ca3190df0eda4dc13415532a12e15ca5f11/okhttp-3.8.1.jar, /Users/macmi001/.gradle/caches/modules-2/files-2.1/com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar, /Users/macmi001/.android/build-cache/9c111c295d5cdfbfe78aef0535c355cd626838fb/output/jars/classes.jar, /Users/macmi001/.android/build-cache/862885a29836e99b8c579e4fe7b6849919d1f684/output/jars/classes.jar, /Users/macmi001/.android/build-cache/73e0777e681001c81666b7f6a8fa219482a80306/output/jars/classes.jar, /Users/macmi001/.android/build-cache/f46119a8f76989cd28b4c34e5aa657ef6de8e30c/output/jars/classes.jar, /Users/macmi001/.android/build-cache/42a8e0caf39478997c85e62c0810cc6d7e8aab20/output/jars/classes.jar, /Users/macmi001/.android/build-cache/23fc8c7259339c383c25c10bddaa336217c6eb20/output/jars/classes.jar, /Users/macmi001/.android/build-cache/711973d1a3b56b926013a1a77732c533cc2a65fe/output/jars/classes.jar, /Users/macmi001/.android/build-cache/ed4dceeb1d6792fb1bfba5da4b38c37b8c3f6016/output/jars/classes.jar, /Users/macmi001/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/26.0.0-alpha1/support-annotations-26.0.0-alpha1.jar, /Users/macmi001/.android/build-cache/1b0967bdd2da5c5f446faf1599336d99c0acc070/output/jars/classes.jar, /Users/macmi001/Library/Android/sdk/extras/m2repository/com/android/support/constraint/constraint-layout-solver/1.0.2/constraint-layout-solver-1.0.2.jar, /Users/macmi001/Library/Android/sdk/platforms/android-25/android.jar, /Users/macmi001/Desktop/BM/Main/Project/DaMai/app/build/intermediates/classes/release]
10:53:03.771 [INFO] [system.out] 00:00  INFO: Included files:   all
10:53:03.774 [INFO] [system.out] 00:00  INFO: Agent enabled:    false
10:53:04.959 [INFO] [system.out] 00:01  INFO: Saving lambda class: com/admai/damai/common/browser/presenter/BrowserPresenter$$Lambda$1
10:53:05.175 [INFO] [system.out] 00:01 ERROR: Failed to run Retrolambda
10:53:05.176 [INFO] [system.out] java.lang.RuntimeException: Failed to backport class: com/admai/damai/common/comment/CommentDetailsActivity
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:129)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:107)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.Transformers.backportClass(Transformers.java:47)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.Retrolambda.run(Retrolambda.java:83)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.Main.main(Main.java:28)
10:53:05.176 [INFO] [system.out] Caused by: java.lang.RuntimeException: Failed to backport lambda or method reference: com/admai/damai/common/comment/CommentDetailsActivity.lambda$initViews$0(Landroid/view/View;)V (6)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.lambdas.LambdaReifier.reifyLambdaClass(LambdaReifier.java:42)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations$InvokeDynamicInsnConverter.backportLambda(BackportLambdaInvocations.java:187)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.lambdas.BackportLambdaInvocations$InvokeDynamicInsnConverter.visitInvokeDynamicInsn(BackportLambdaInvocations.java:176)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.asm.ClassReader.readCode(ClassReader.java:1519)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.asm.ClassReader.readMethod(ClassReader.java:1032)
10:53:05.176 [INFO] [system.out]    at net.orfjackal.retrolambda.asm.ClassReader.accept(ClassReader.java:708)
10:53:05.177 [INFO] [system.out]    at net.orfjackal.retrolambda.asm.ClassReader.accept(ClassReader.java:521)
10:53:05.177 [INFO] [system.out]    at net.orfjackal.retrolambda.Transformers.lambda$transform$4(Transformers.java:107)
10:53:05.177 [INFO] [system.out]    at net.orfjackal.retrolambda.Transformers.transform(Transformers.java:125)
10:53:05.177 [INFO] [system.out]    ... 4 more
10:53:05.177 [INFO] [system.out] Caused by: java.lang.IllegalAccessException: no such method: com.admai.damai.common.comment.CommentDetailsActivity.lambda$initViews$0(View)void/invokeStatic
10:53:05.177 [INFO] [system.out]    at java.lang.invoke.MemberName.makeAccessException(MemberName.java:869)
10:53:05.177 [INFO] [system.out]    at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1005)
10:53:05.177 [INFO] [system.out]    at java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:1382)
10:53:05.177 [INFO] [system.out]    at java.lang.invoke.MethodHandles$Lookup.findStatic(MethodHandles.java:777)
10:53:05.177 [INFO] [system.out]    at net.orfjackal.retrolambda.lambdas.Types.toMethodHandle(Types.java:46)
10:53:05.177 [INFO] [system.out]    at net.orfjackal.retrolambda.lambdas.Types.asmToJdkType(Types.java:26)
10:53:05.177 [INFO] [system.out]    at net.orfjackal.retrolambda.lambdas.LambdaReifier.callBootstrapMethod(LambdaReifier.java:106)
10:53:05.177 [INFO] [system.out]    at net.orfjackal.retrolambda.lambdas.LambdaReifier.reifyLambdaClass(LambdaReifier.java:37)
10:53:05.177 [INFO] [system.out]    ... 12 more
10:53:05.177 [INFO] [system.out] Caused by: java.lang.VerifyError: Expecting a stackmap frame at branch target 25
10:53:05.177 [INFO] [system.out] Exception Details:
10:53:05.177 [INFO] [system.out]   Location:
10:53:05.177 [INFO] [system.out]     com/admai/baselib/view/BaseActivity.onCreate(Landroid/os/Bundle;)V @9: ifeq
10:53:05.177 [INFO] [system.out]   Reason:
10:53:05.178 [INFO] [system.out]     Expected stackmap frame at this location.
10:53:05.178 [INFO] [system.out]   Bytecode:
10:53:05.178 [INFO] [system.out]     0x0000000: 2a2b b700 162a b600 2399 0010 b200 1310
10:53:05.178 [INFO] [system.out]     0x0000010: 15a1 0008 2a04 b700 24b1               
10:53:05.178 [INFO] [system.out] 
10:53:05.178 [INFO] [system.out]    at java.lang.invoke.MethodHandleNatives.resolve(Native Method)
10:53:05.178 [INFO] [system.out]    at java.lang.invoke.MemberName$Factory.resolve(MemberName.java:977)
10:53:05.178 [INFO] [system.out]    at java.lang.invoke.MemberName$Factory.resolveOrFail(MemberName.java:1002)
10:53:05.178 [INFO] [system.out]    ... 18 more
Executing tasks: [:app:assembleRelease]

Configuration on demand is an incubating feature.
Jack is disabled, but one of the plugins you are using supports Java 8 language features.
Jack is disabled, but one of the plugins you are using supports Java 8 language features.
:app:preBuild UP-TO-DATE
:app:extractProguardFiles
:app:preReleaseBuild
:app:checkReleaseManifest
:app:preDebugBuild
:app:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:app:prepareComAndroidSupportAppcompatV72531Library
:app:prepareComAndroidSupportCardviewV72531Library
:app:prepareComAndroidSupportConstraintConstraintLayout102Library
:app:prepareComAndroidSupportDesign2531Library
:app:prepareComAndroidSupportRecyclerviewV72531Library
:app:prepareComAndroidSupportSupportCompat2531Library
:app:prepareComAndroidSupportSupportCoreUi2531Library
:app:prepareComAndroidSupportSupportCoreUtils2531Library
:app:prepareComAndroidSupportSupportFragment2531Library
:app:prepareComAndroidSupportSupportMediaCompat2531Library
:app:prepareComAndroidSupportSupportV42531Library
:app:prepareComAndroidSupportSupportVectorDrawable2531Library
:app:prepareComAndroidSupportTransition2531Library
:app:prepareComGithubCymChadBaseRecyclerViewAdapterHelper2922Library
:app:prepareComJakewhartonButterknife851Library
:app:prepareComJakewhartonRxbinding2Rxbinding200Library
:app:prepareComJakewhartonRxbinding2RxbindingAppcompatV7200Library
:app:prepareComJakewhartonRxbinding2RxbindingDesign200Library
:app:prepareComJakewhartonRxbinding2RxbindingRecyclerviewV7200Library
:app:prepareComJakewhartonRxbinding2RxbindingSupportV4200Library
:app:prepareComSquareupLeakcanaryLeakcanaryAndroidNoOp14Beta2Library
:app:prepareIoReactivexRxjava2Rxandroid201Library
:baselib:preBuild UP-TO-DATE
:baselib:extractProguardFiles
:baselib:preReleaseBuild
:baselib:checkReleaseManifest
:baselib:preDebugAndroidTestBuild UP-TO-DATE
:baselib:preDebugBuild
:baselib:preDebugUnitTestBuild UP-TO-DATE
:baselib:preReleaseUnitTestBuild UP-TO-DATE
:baselib:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:baselib:prepareComAndroidSupportAppcompatV72531Library
:baselib:prepareComAndroidSupportCardviewV72531Library
:baselib:prepareComAndroidSupportConstraintConstraintLayout102Library
:baselib:prepareComAndroidSupportDesign2531Library
:baselib:prepareComAndroidSupportRecyclerviewV72531Library
:baselib:prepareComAndroidSupportSupportCompat2531Library
:baselib:prepareComAndroidSupportSupportCoreUi2531Library
:baselib:prepareComAndroidSupportSupportCoreUtils2531Library
:baselib:prepareComAndroidSupportSupportFragment2531Library
:baselib:prepareComAndroidSupportSupportMediaCompat2531Library
:baselib:prepareComAndroidSupportSupportV42531Library
:baselib:prepareComAndroidSupportSupportVectorDrawable2531Library
:baselib:prepareComAndroidSupportTransition2531Library
:baselib:prepareComGithubCymChadBaseRecyclerViewAdapterHelper2922Library
:baselib:prepareComJakewhartonButterknife851Library
:baselib:prepareComJakewhartonRxbinding2Rxbinding200Library
:baselib:prepareComJakewhartonRxbinding2RxbindingAppcompatV7200Library
:baselib:prepareComJakewhartonRxbinding2RxbindingDesign200Library
:baselib:prepareComJakewhartonRxbinding2RxbindingRecyclerviewV7200Library
:baselib:prepareComJakewhartonRxbinding2RxbindingSupportV4200Library
:baselib:prepareComSquareupLeakcanaryLeakcanaryAndroidNoOp14Beta2Library
:baselib:prepareIoReactivexRxjava2Rxandroid201Library
:baselib:prepareReleaseDependencies
:baselib:compileReleaseAidl UP-TO-DATE
:baselib:compileReleaseNdk UP-TO-DATE
:baselib:compileLint UP-TO-DATE
:baselib:copyReleaseLint UP-TO-DATE
:baselib:compileReleaseRenderscript UP-TO-DATE
:baselib:generateReleaseBuildConfig UP-TO-DATE
:baselib:generateReleaseResValues UP-TO-DATE
:baselib:generateReleaseResources UP-TO-DATE
:baselib:mergeReleaseResources UP-TO-DATE
:baselib:processReleaseManifest UP-TO-DATE
:baselib:processReleaseResources UP-TO-DATE
:baselib:generateReleaseSources UP-TO-DATE
:baselib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:baselib:javaPreCompileRelease
:baselib:compileReleaseJavaWithJavac UP-TO-DATE
:baselib:extractReleaseAnnotations UP-TO-DATE
:baselib:mergeReleaseShaders UP-TO-DATE
:baselib:compileReleaseShaders UP-TO-DATE
:baselib:generateReleaseAssets UP-TO-DATE
:baselib:mergeReleaseAssets UP-TO-DATE
:baselib:mergeReleaseProguardFiles UP-TO-DATE
:baselib:packageReleaseRenderscript UP-TO-DATE
:baselib:packageReleaseResources UP-TO-DATE
:baselib:transformClassesWithRetrolambdaForRelease UP-TO-DATE
:baselib:processReleaseJavaRes UP-TO-DATE
:baselib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:baselib:transformClassesAndResourcesWithProguardForRelease UP-TO-DATE
:baselib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:baselib:mergeReleaseJniLibFolders UP-TO-DATE
:baselib:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:baselib:transformNativeLibsWithStripDebugSymbolForRelease UP-TO-DATE
:baselib:transformNativeLibsWithSyncJniLibsForRelease UP-TO-DATE
:baselib:bundleRelease UP-TO-DATE
:loginlib:preBuild UP-TO-DATE
:loginlib:extractProguardFiles
:loginlib:preReleaseBuild
:loginlib:checkReleaseManifest
:loginlib:preDebugAndroidTestBuild UP-TO-DATE
:loginlib:preDebugBuild
:loginlib:preDebugUnitTestBuild UP-TO-DATE
:loginlib:preReleaseUnitTestBuild UP-TO-DATE
:loginlib:prepareComAndroidSupportAnimatedVectorDrawable2531Library
:loginlib:prepareComAndroidSupportAppcompatV72531Library
:loginlib:prepareComAndroidSupportCardviewV72531Library
:loginlib:prepareComAndroidSupportConstraintConstraintLayout102Library
:loginlib:prepareComAndroidSupportDesign2531Library
:loginlib:prepareComAndroidSupportRecyclerviewV72531Library
:loginlib:prepareComAndroidSupportSupportCompat2531Library
:loginlib:prepareComAndroidSupportSupportCoreUi2531Library
:loginlib:prepareComAndroidSupportSupportCoreUtils2531Library
:loginlib:prepareComAndroidSupportSupportFragment2531Library
:loginlib:prepareComAndroidSupportSupportMediaCompat2531Library
:loginlib:prepareComAndroidSupportSupportV42531Library
:loginlib:prepareComAndroidSupportSupportVectorDrawable2531Library
:loginlib:prepareComAndroidSupportTransition2531Library
:loginlib:prepareComGithubCymChadBaseRecyclerViewAdapterHelper2922Library
:loginlib:prepareComJakewhartonButterknife851Library
:loginlib:prepareComJakewhartonRxbinding2Rxbinding200Library
:loginlib:prepareComJakewhartonRxbinding2RxbindingAppcompatV7200Library
:loginlib:prepareComJakewhartonRxbinding2RxbindingDesign200Library
:loginlib:prepareComJakewhartonRxbinding2RxbindingRecyclerviewV7200Library
:loginlib:prepareComJakewhartonRxbinding2RxbindingSupportV4200Library
:loginlib:prepareComSquareupLeakcanaryLeakcanaryAndroidNoOp14Beta2Library
:loginlib:prepareIoReactivexRxjava2Rxandroid201Library
:loginlib:prepareReleaseDependencies
:loginlib:compileReleaseAidl UP-TO-DATE
:loginlib:compileReleaseNdk UP-TO-DATE
:loginlib:compileLint UP-TO-DATE
:loginlib:copyReleaseLint UP-TO-DATE
:loginlib:compileReleaseRenderscript UP-TO-DATE
:loginlib:generateReleaseBuildConfig UP-TO-DATE
:loginlib:generateReleaseResValues UP-TO-DATE
:loginlib:generateReleaseResources UP-TO-DATE
:loginlib:mergeReleaseResources UP-TO-DATE
:loginlib:processReleaseManifest UP-TO-DATE
:loginlib:processReleaseResources UP-TO-DATE
:loginlib:generateReleaseSources UP-TO-DATE
:loginlib:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:loginlib:javaPreCompileRelease
:loginlib:compileReleaseJavaWithJavac UP-TO-DATE
:loginlib:extractReleaseAnnotations UP-TO-DATE
:loginlib:mergeReleaseShaders UP-TO-DATE
:loginlib:compileReleaseShaders UP-TO-DATE
:loginlib:generateReleaseAssets UP-TO-DATE
:loginlib:mergeReleaseAssets UP-TO-DATE
:loginlib:mergeReleaseProguardFiles UP-TO-DATE
:loginlib:packageReleaseRenderscript UP-TO-DATE
:loginlib:packageReleaseResources UP-TO-DATE
:loginlib:transformClassesWithRetrolambdaForRelease UP-TO-DATE
:loginlib:processReleaseJavaRes UP-TO-DATE
:loginlib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE
:loginlib:transformClassesAndResourcesWithProguardForRelease UP-TO-DATE
:loginlib:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
:loginlib:mergeReleaseJniLibFolders UP-TO-DATE
:loginlib:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
:loginlib:transformNativeLibsWithStripDebugSymbolForRelease UP-TO-DATE
:loginlib:transformNativeLibsWithSyncJniLibsForRelease UP-TO-DATE
:loginlib:bundleRelease UP-TO-DATE
:app:prepareReleaseDependencies
:app:compileReleaseAidl UP-TO-DATE
:app:compileReleaseRenderscript UP-TO-DATE
:app:generateReleaseBuildConfig UP-TO-DATE
:app:generateReleaseResValues UP-TO-DATE
:app:generateReleaseResources UP-TO-DATE
:app:mergeReleaseResources UP-TO-DATE
:app:processReleaseManifest UP-TO-DATE
:app:processReleaseResources UP-TO-DATE
:app:generateReleaseSources UP-TO-DATE
:app:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:app:javaPreCompileRelease
:app:compileReleaseJavaWithJavac UP-TO-DATE
:app:compileReleaseNdk UP-TO-DATE
:app:compileReleaseSources UP-TO-DATE
:app:mergeReleaseShaders UP-TO-DATE
:app:compileReleaseShaders UP-TO-DATE
:app:generateReleaseAssets UP-TO-DATE
:app:mergeReleaseAssets UP-TO-DATE
:app:transformClassesWithRetrolambdaForRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithRetrolambdaForRelease'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithRetrolambdaForRelease'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228)
    at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:77)
    at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
    at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
    at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
    at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:196)
    at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:193)
    at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:193)
    at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
    at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
    at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
    at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:50)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:43)
    at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:40)
    at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
    at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40)
    at org.gradle.tooling.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:75)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
    at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
    at org.gradle.util.Swapper.swap(Swapper.java:38)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
    at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
    at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
    at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:369)
    at org.gradle.process.internal.DefaultJavaExecAction.execute(DefaultJavaExecAction.java:31)
    at org.gradle.api.internal.file.DefaultFileOperations.javaexec(DefaultFileOperations.java:170)
    at org.gradle.api.internal.project.DefaultProject.javaexec(DefaultProject.java:943)
    at org.gradle.api.internal.project.DefaultProject.javaexec(DefaultProject.java:939)
    at me.tatarka.RetrolambdaExec.exec(RetrolambdaExec.groovy:53)
    at me.tatarka.RetrolambdaTransform.transform(RetrolambdaTransform.groovy:93)
    at com.android.build.api.transform.Transform.transform(Transform.java:290)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:185)
    at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:181)
    at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
    at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:176)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:163)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
    at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76)
    ... 78 more

BUILD FAILED

Total time: 7.024 secs
evant commented 7 years ago

Caused by: java.lang.VerifyError: Expecting a stackmap frame at branch target 25

That's your issue, what version of the support lib are you using? You can pass -noverifyto the jvm args for a quick work-around (example in the README).

H-Zan commented 7 years ago

Thank u! That's working!