Fixed
Status Update
Comments
az...@lyft.com <az...@lyft.com> #2
Found suddenly that this process has run for 3 hours !!
Shouldn't AS tell me that another builds was going on ?
By the way, it has never run for 3 hours before...
RG
Shouldn't AS tell me that another builds was going on ?
By the way, it has never run for 3 hours before...
RG
ag...@google.com <ag...@google.com>
sg...@google.com <sg...@google.com> #3
Thinking back for three hours, I may have tried to stop the build process by clicking on the gray x behind "Gradle bulding..." message on the AS status bar. All seemed OK then...
RG
RG
yr...@google.com <yr...@google.com> #4
FYI theese are the AS related applications running during theese hours...
sg...@google.com <sg...@google.com> #5
Saving project and restarting AS solved the problem so far...
ga...@google.com <ga...@google.com> #6
Breaktrhrough !!
If you try to stop the build process when app:transformDexWithInstantRunSlicesApkForDebug is executing, the build will "hang" in "Execute transform". The AS statusbar might show "Gradle build finished in xxs yyyms.
To remedy this situation and do a recompile, you need to restart AS.
See picture of situation.
RG
If you try to stop the build process when app:transformDexWithInstantRunSlicesApkForDebug is executing, the build will "hang" in "Execute transform". The AS statusbar might show "Gradle build finished in xxs yyyms.
To remedy this situation and do a recompile, you need to restart AS.
See picture of situation.
RG
fr...@gmail.com <fr...@gmail.com> #7
How to reproduce:
1. Start building your project ("F10" or "Play button on action bar" or "Run -> Run App")
2. "You discovered an error in your code, and want to stop the build process".
3. Open your Build window, and show the processes ( not the log ).
3. Let the build process reach at least ":app:transformDexWithInstantRunSlicesApkForDebug"
4. Stop the build process by clicking the gray "cancel" button on far right of the status bar (x) (showing the build progress). See picture "notstopped_01"
5. The status bar shows "Stopping - Gradle Build Running". See picture "notstopped_02"
6. After a while the status bar shows nothing in the status bar in the middle, to the right the progressbar is disappeared and to the left following message is shown "Gradle build finished". See picture "notstopped_03"
7. The "task list" still shows that the process is running ":app:transformDexWithInstantRunSlicesApkForDebug".
8. If you try to Run the app again with "Run -> Run App " it will not build or start.
Build log also attached.
RG
1. Start building your project ("F10" or "Play button on action bar" or "Run -> Run App")
2. "You discovered an error in your code, and want to stop the build process".
3. Open your Build window, and show the processes ( not the log ).
3. Let the build process reach at least ":app:transformDexWithInstantRunSlicesApkForDebug"
4. Stop the build process by clicking the gray "cancel" button on far right of the status bar (x) (showing the build progress). See picture "notstopped_01"
5. The status bar shows "Stopping - Gradle Build Running". See picture "notstopped_02"
6. After a while the status bar shows nothing in the status bar in the middle, to the right the progressbar is disappeared and to the left following message is shown "Gradle build finished". See picture "notstopped_03"
7. The "task list" still shows that the process is running ":app:transformDexWithInstantRunSlicesApkForDebug".
8. If you try to Run the app again with "Run -> Run App " it will not build or start.
Build log also attached.
RG
sg...@google.com <sg...@google.com> #8
In AS 3.1 Canary 9:
Starting Build First time. Stopping Build First time, same result as above (except pt 8.).
Starting Build Second time. New process is made, launching a process window showing both the "running" process (which is really stopped) and the new one.
Let the Second Build run out, and seems that this one is launched, but the first is still "running".
See picture.
RG
Starting Build First time. Stopping Build First time, same result as above (except pt 8.).
Starting Build Second time. New process is made, launching a process window showing both the "running" process (which is really stopped) and the new one.
Let the Second Build run out, and seems that this one is launched, but the first is still "running".
See picture.
RG
sg...@google.com <sg...@google.com>
so...@gmail.com <so...@gmail.com> #9
Sorry typo above, it was AS 3.2 Canary 3, not AS 3.1 Canary 9...
RG
RG
sg...@google.com <sg...@google.com> #10
Checking further down the line:
It is not necessary to stop the process at pt 3. int the reproduce description above. You could try to stop the process in any step, and process window shows "running" process still.
If you start and stops subsequently, more "processes are made", and I cannot say they will influence each other.
Restarting AS still seems to remedy the situation though.
RG
It is not necessary to stop the process at pt 3. int the reproduce description above. You could try to stop the process in any step, and process window shows "running" process still.
If you start and stops subsequently, more "processes are made", and I cannot say they will influence each other.
Restarting AS still seems to remedy the situation though.
RG
Description
Android Plugin Version: 3.1.0-beta3
Module Compile Sdk Version: 27
Module Build Tools Version: latest
Android SDK Tools version: 26.1.1
Compiling a test APK with the latest Espresso release fails with android.enableD8.desugaring=true.
It succeeds with android.enableD8.desugaring=false.
See log below.
D8: Classpath type already present: android.arch.core.internal.SafeIterableMap
D8: Classpath type already present: android.arch.lifecycle.Lifecycling
D8: Classpath type already present: android.arch.lifecycle.GenericLifecycleObserver
D8: Classpath type already present: android.arch.core.internal.SafeIterableMap
/Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-core-3.0.2-alpha1.aar/a874cd4f62ccb9c3623980c29055d904/jars/classes.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `sun.misc.Unsafe android.support.test.espresso.core.internal.deps.guava.cache.Striped64.getUnsafe()`
/Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-core-3.0.2-alpha1.aar/a874cd4f62ccb9c3623980c29055d904/jars/classes.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `void android.support.test.espresso.core.internal.deps.guava.util.concurrent.AbstractFuture$UnsafeAtomicHelper.<clinit>()`
/Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-core-3.0.2-alpha1.aar/a874cd4f62ccb9c3623980c29055d904/jars/classes.jar: D8: Type `libcore.io.Memory` was not found, it is required for default or static interface methods desugaring of `byte android.support.test.espresso.core.internal.deps.protobuf.UnsafeUtil$Android32MemoryAccessor.getByte(long)`
/Users/jrod/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar: D8: Type `java.lang.management.ManagementFactory` was not found, it is required for default or static interface methods desugaring of `void org.junit.rules.DisableOnDebug.<init>(org.junit.rules.TestRule)`
/Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-core-3.0.2-alpha1.aar/a874cd4f62ccb9c3623980c29055d904/jars/classes.jar: D8: Type `com.google.devtools.build.android.desugar.runtime.ThrowableExtension` was not found, it is required for default or static interface methods desugaring of `java.lang.String android.support.test.espresso.core.internal.deps.guava.base.Throwables.getStackTraceAsString(java.lang.Throwable)`
/Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-core-3.0.2-alpha1.aar/a874cd4f62ccb9c3623980c29055d904/jars/classes.jar: D8: Type `libcore.io.Memory` was not found, it is required for default or static interface methods desugaring of `byte android.support.test.espresso.core.internal.deps.protobuf.UnsafeUtil$Android64MemoryAccessor.getByte(long)`
/Users/jrod/.gradle/caches/modules-2/files-2.1/junit/junit/4.12/2973d150c0dc1fefe998f834810d68f278ea58ec/junit-4.12.jar: D8: Type `java.lang.management.ManagementFactory` was not found, it is required for default or static interface methods desugaring of `long org.junit.internal.runners.statements.FailOnTimeout.cpuTime(java.lang.Thread)`
/Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-core-3.0.2-alpha1.aar/a874cd4f62ccb9c3623980c29055d904/jars/classes.jar: D8: Type `com.google.android.apps.common.testing.testrunner.web.JavaScriptBridge` was not found, it is required for default or static interface methods desugaring of `android.support.test.espresso.web.action.JavascriptEvaluation$PreparedScript android.support.test.espresso.web.action.JavascriptEvaluation$ScriptPreparer.apply(android.support.test.espresso.web.action.JavascriptEvaluation$UnpreparedScript)`
/Users/jrod/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-core/1.10.19/e8546f5bef4e061d8dd73895b4e8f40e3fe6effe/mockito-core-1.10.19.jar: D8: Interface `org.mockito.asm.signature.SignatureVisitor` not found. It's needed to make sure desugaring of `org.mockito.asm.util.TraceSignatureVisitor` is correct. Desugaring will assume that this interface has no default method.
/Users/jrod/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-core/1.10.19/e8546f5bef4e061d8dd73895b4e8f40e3fe6effe/mockito-core-1.10.19.jar: D8: Interface `org.mockito.asm.signature.SignatureVisitor` not found. It's needed to make sure desugaring of `org.mockito.asm.util.CheckSignatureAdapter` is correct. Desugaring will assume that this interface has no default method.
/Users/jrod/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-core/1.10.19/e8546f5bef4e061d8dd73895b4e8f40e3fe6effe/mockito-core-1.10.19.jar: D8: Type `java.beans.Introspector` was not found, it is required for default or static interface methods desugaring of `java.beans.PropertyDescriptor[] org.mockito.cglib.core.ReflectUtils.getPropertiesHelper(java.lang.Class, boolean, boolean)`
/Users/jrod/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-integration/1.3/5de0c73fef18917cd85d0ab70bb23818685e4dfd/hamcrest-integration-1.3.jar: D8: Type `org.easymock.EasyMock` was not found, it is required for default or static interface methods desugaring of `org.easymock.IArgumentMatcher org.hamcrest.integration.EasyMock2Adapter.adapt(org.hamcrest.Matcher)`
/Users/jrod/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-integration/1.3/5de0c73fef18917cd85d0ab70bb23818685e4dfd/hamcrest-integration-1.3.jar: D8: Interface `org.easymock.IArgumentMatcher` not found. It's needed to make sure desugaring of `org.hamcrest.integration.EasyMock2Adapter` is correct. Desugaring will assume that this interface has no default method.
/Users/jrod/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-integration/1.3/5de0c73fef18917cd85d0ab70bb23818685e4dfd/hamcrest-integration-1.3.jar: D8: Interface `org.jmock.core.Constraint` not found. It's needed to make sure desugaring of `org.hamcrest.integration.JMock1Adapter` is correct. Desugaring will assume that this interface has no default method.
/Users/jrod/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-library/1.3/4785a3c21320980282f9f33d0d1264a69040538f/hamcrest-library-1.3.jar: D8: Type `java.beans.Introspector` was not found, it is required for default or static interface methods desugaring of `java.beans.PropertyDescriptor[] org.hamcrest.beans.PropertyUtil.propertyDescriptorsFor(java.lang.Object, java.lang.Class)`
/Users/jrod/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/23.4-android/6b52ce80a01cdd1bda08d81d2e4035e5399ee903/guava-23.4-android.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `sun.misc.Unsafe com.google.common.hash.Striped64.getUnsafe()`
/Users/jrod/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/23.4-android/6b52ce80a01cdd1bda08d81d2e4035e5399ee903/guava-23.4-android.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `sun.misc.Unsafe com.google.common.hash.LittleEndianByteArray$UnsafeByteArray.getUnsafe()`
/Users/jrod/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/23.4-android/6b52ce80a01cdd1bda08d81d2e4035e5399ee903/guava-23.4-android.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `sun.misc.Unsafe com.google.common.cache.Striped64.getUnsafe()`
/Users/jrod/.gradle/caches/modules-2/files-2.1/com.google.guava/guava/23.4-android/6b52ce80a01cdd1bda08d81d2e4035e5399ee903/guava-23.4-android.jar: D8: Type `sun.misc.Unsafe` was not found, it is required for default or static interface methods desugaring of `sun.misc.Unsafe com.google.common.primitives.UnsignedBytes$LexicographicalComparatorHolder$UnsafeComparator.getUnsafe()`
> Task :app:transformClassesWithDexBuilderForInternalDebugAndroidTest
com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-contrib-3.0.2-alpha1.aar/f4074cbfcd00531adfb6ff74b92f03a1/jars/classes.jar
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:593)
at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720)
at com.android.ide.common.internal.WaitableExecutor.waitForTasksWithQuickFail(WaitableExecutor.java:146)
at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.transform(DexArchiveBuilderTransform.java:306)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:221)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:217)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:212)
at sun.reflect.GeneratedMethodAccessor2299.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:50)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:124)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:113)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:95)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipCachedTaskExecuter.execute(SkipCachedTaskExecuter.java:103)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ResolveBuildCacheKeyExecuter.execute(ResolveBuildCacheKeyExecuter.java:63)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:59)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:101)
at org.gradle.api.internal.tasks.execution.FinalizeInputFilePropertiesTaskExecuter.execute(FinalizeInputFilePropertiesTaskExecuter.java:44)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:88)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
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.run(DefaultTaskGraphExecuter.java:248)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:623)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:578)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-contrib-3.0.2-alpha1.aar/f4074cbfcd00531adfb6ff74b92f03a1/jars/classes.jar
at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:803)
at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.lambda$convertToDexArchive$8(DexArchiveBuilderTransform.java:728)
at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: com.android.builder.dexing.DexArchiveBuilderException: Error while dexing.
at com.android.builder.dexing.D8DexArchiveBuilder.getExceptionToRethrow(D8DexArchiveBuilder.java:132)
at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:109)
at com.android.build.gradle.internal.transforms.DexArchiveBuilderTransform.launchProcessing(DexArchiveBuilderTransform.java:798)
... 6 more
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:76)
at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:45)
at com.android.tools.r8.D8.run(D8.java:88)
at com.android.builder.dexing.D8DexArchiveBuilder.convert(D8DexArchiveBuilder.java:107)
... 7 more
Caused by: com.android.tools.r8.utils.AbortException
at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:77)
at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:58)
at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:67)
... 10 more
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexBuilderForInternalDebugAndroidTest'.
> com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/jrod/.gradle/caches/transforms-1/files-1.1/espresso-contrib-3.0.2-alpha1.aar/f4074cbfcd00531adfb6ff74b92f03a1/jars/classes.jar