Fixed
Status Update
Comments
uc...@google.com <uc...@google.com>
je...@google.com <je...@google.com>
ke...@google.com <ke...@google.com>
rp...@google.com <rp...@google.com> #2
We found out the root cause of this issue: If the project run configuration is missing the "Gradle aware make" task, the NPE occurs. The workaround is to manually add back the "Gradle aware make" to "before launch" task.
rp...@google.com <rp...@google.com> #3
(We probably should cherry pick the simple "null check" fix we did in master)
ne...@google.com <ne...@google.com> #4
How does a developer discover that they are missing the "Gradle aware make" task and learn that they need to manually add back the "Gradle aware make"? What experience they go through?
rp...@google.com <rp...@google.com> #5
#4: Other than a "IDE Internal Error" notification, there is no hint to the user. There are other symptoms of the same underlying issue though (see b/76403139 ).
Description
Instant Run Report: 0ad60361f787858b
IDE Fatal error occurs when running build with instant run enabled
null
java.lang.NullPointerException
at com.android.tools.idea.run.tasks.InstantRunNotificationTask.<init>(InstantRunNotificationTask.java:64)
at com.android.tools.idea.fd.InstantRunBuildAnalyzer.getNotificationTask(InstantRunBuildAnalyzer.java:188)
at com.android.tools.idea.run.AndroidLaunchTasksProvider.getTasks(AndroidLaunchTasksProvider.java:122)
at com.android.tools.idea.run.LaunchTaskRunner.run(LaunchTaskRunner.java:102)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:713)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
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)