Fixed
Status Update
Comments
al...@google.com <al...@google.com>
sr...@google.com <sr...@google.com> #2
This is caused when an empty error message is generated. Some of the error handlers split the output in lines (and remove empty ones) and then analyse those lines. Since output is empty, no lines are generated and thus any reference to the first line causes an out of bounds exception.
sr...@google.com <sr...@google.com> #3
ag/2910472 has a fix for this issue.
al...@google.com <al...@google.com>
ni...@google.com <ni...@google.com> #4
Android Studio 3.0 Beta 7
Build #AI-171.4348290, built on September 19, 2017
JRE: 1.8.0_152-release-915-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
srmurguia@ Gradle shows empty message here saying exception which not detailed message is this expected?
Gradle 'AndroidTestingBlueprint' project refresh failed
Error:exception during working with external system:
Build #AI-171.4348290, built on September 19, 2017
JRE: 1.8.0_152-release-915-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6
srmurguia@ Gradle shows empty message here saying exception which not detailed message is this expected?
Gradle 'AndroidTestingBlueprint' project refresh failed
Error:exception during working with external system:
sr...@google.com <sr...@google.com> #5
The message in the Messages Window is whatever message the SyncError has, in this case the error message is empty. The error message is generated on ProjectImportErrorHandler. I will take a look to see why it is empty in the first place.
sr...@google.com <sr...@google.com> #6
Just created b/66454138 to track the empty error message. The empty message is generated when ProjectImportAction#addExtraProject causes an exception (real cause is wrapped on a ExternalSystemException with an empty message).
sr...@google.com <sr...@google.com> #7
For this particular project, it fails when it tries to add interface com.android.builder.model.AndroidProject to module-flavor1-androidTest-only. Michal, is this issue expected or it is something that should be working?
sr...@google.com <sr...@google.com> #8
This is only seen on plugin 3.0.0+ b/66727424 tracks issue in Gradle.
sr...@google.com <sr...@google.com> #9
Changes from https://b.corp.google.com/issues/66727424 remove the empty error message and ag/2910472 also added a test to confirm empty error messages can be passed to error handlers. @nishanthkumarg can you confirm on latest beta?
Description
Stacktrace:
Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at java.util.Collections$UnmodifiableList.get(Collections.java:1309)
at com.android.tools.idea.gradle.project.sync.errors.DaemonContextMismatchErrorHandler.findErrorMessage(DaemonContextMismatchErrorHandler.java:40)
at com.android.tools.idea.gradle.project.sync.errors.BaseSyncErrorHandler.handleError(BaseSyncErrorHandler.java:34)
at com.android.tools.idea.gradle.project.sync.idea.notification.GradleNotificationExtension.handleError(GradleNotificationExtension.java:76)
at com.android.tools.idea.gradle.project.sync.idea.notification.GradleNotificationExtension.customize(GradleNotificationExtension.java:67)
at com.intellij.openapi.externalSystem.service.notification.ExternalSystemNotificationManager.processExternalProjectRefreshError(ExternalSystemNotificationManager.java:136)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$3.execute(ExternalSystemUtil.java:422)
at com.intellij.openapi.externalSystem.util.ExternalSystemUtil$5.run(ExternalSystemUtil.java:445)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:726)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:176)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:556)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:137)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)