Leanplum SDK not compatible with Java 8
AlexZvonik opened this issue · 11 comments
My app can't compile when adding lines below to my build.gradle (while java 8 is enabled in my app)
implementation "com.mparticle:android-core:4.16.10"
implementation "com.mparticle:android-leanplum-kit:4.16.10"
I'm getting error:
15:38:26.030 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Run tasks'
15:38:26.037 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
15:38:26.037 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
15:38:26.037 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:transformClassesWithDesugarForDebug'.
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > 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 {--verbose --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/2.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/5.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/classes/debug --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/android.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar --min_sdk_version 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithDesugarForDebug'.
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
15:38:26.038 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.RuntimeException: 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 {--verbose --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/2.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/5.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/classes/debug --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/android.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar --min_sdk_version 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:213)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:179)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:135)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:122)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 28 more
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: 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 {--verbose --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/2.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/5.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/classes/debug --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/android.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar --min_sdk_version 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.transforms.DesugarTransform.transform(DesugarTransform.java:236)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:222)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:218)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 40 more
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: 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 {--verbose --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/2.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/5.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/classes/debug --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/android.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar --min_sdk_version 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:146)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.transforms.DesugarTransform.transform(DesugarTransform.java:230)
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 43 more
15:38:26.039 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: 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 {--verbose --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/2.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/5.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/classes/debug --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/android.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar --min_sdk_version 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--verbose --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/2.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/5.jar --input /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/desugar/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/classes/debug --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /home/alex/AndroidStudioProjects/TestJava8/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/android.jar --bootclasspath_entry /home/alex/Android/Sdk/platforms/android-26/optional/org.apache.http.legacy.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jce.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar --bootclasspath_entry /usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar --min_sdk_version 16 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:73)
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:48)
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.transforms.DesugarTransform.lambda$processNonCachedOnes$3(DesugarTransform.java:316)
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:382)
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46)
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 1 more
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
15:38:26.040 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 9s
Links to project: https://github.com/AlexZvonik/MParticle_bug_example
@AlexZvonik can you confirm that you've set your compileSdkVersion and buildToolsVersion to 26 and 26.0.1?
@samdozor
compileSdkVersion 26
buildToolsVersion "26.0.2" (buildToolsVersion "26.0.1" is not compatible with gradle plugin 3.0)
See test project here https://github.com/AlexZvonik/MParticle_bug_example
@AlexZvonik looks like this is an issue with the Leanplum SDK itself. I can reproduce it just with their SDK, and nothing else. I see you've posted the same issue there as well :)
I'll keep this open while they investigate. Presumably they're going to need to push an update to their SDK. As soon as they do we'll schedule an update to our dependency. Ahead of that, you can always specify the version of Leanplum you want in your build.gradle to override ours:
implementation 'com.leanplum:Leanplum:<unreleased fix version>'
@AlexZvonik have a look at this issue: https://issuetracker.google.com/issues/63265765
Potentially you need to explicitly make sure all of your transitive dependencies are using the same version of firebase, by explicitly setting the version in your app's build.gradle.
@samdozor
Nope, the problem is not related to dependencies versions: my only dependencies are appcompat-v7 and leanplum. See my example.
The problem is only on the leanplum side so probably this particular bug can be closed.
Hi @samdozor
New leanplum version 3.0.2 with fix for this bug is available: https://github.com/Leanplum/Leanplum-Android-SDK/releases/tag/3.0.2
Could you update the leanplum lib in this kit and release new version as well?
Thanks.
@AlexZvonik you got it. We'll release today.
@AlexZvonik com.mparticle:android-leanplum-kit:4.17.1
is syncing to Maven Central now.
@AlexZvonik please hold off on making this update while we investigate an issue with it.
@samdozor ok. Please let me know when i can start using new version.
Thanks.
@AlexZvonik 4.17.2 has been released - sorry for the delay.