com.android.ddmlib.InstallException: Failed to establish session 11:12:22.451 [ERROR] [system.err] at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:64) 11:12:22.452 [ERROR] [system.err] at com.android.ddmlib.Device.installPackages(Device.java:904) 11:12:22.453 [ERROR] [system.err] at com.android.builder.testing.ConnectedDevice.installPackages(ConnectedDevice.java:137) 11:12:22.454 [ERROR] [system.err] at com.android.build.gradle.internal.tasks.InstallVariantTask.install(InstallVariantTask.java:134) 11:12:22.455 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:12:22.456 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 11:12:22.457 [ERROR] [system.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 11:12:22.458 [ERROR] [system.err] at java.lang.reflect.Method.invoke(Method.java:498) 11:12:22.459 [ERROR] [system.err] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) 11:12:22.460 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228) 11:12:22.461 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221) 11:12:22.462 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210) 11:12:22.463 [ERROR] [system.err] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:621) 11:12:22.464 [ERROR] [system.err] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:604) 11:12:22.465 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) 11:12:22.466 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) 11:12:22.467 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) 11:12:22.468 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) 11:12:22.469 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66) 11:12:22.472 [QUIET] [system.out] :app:installDebug FAILED 11:12:22.479 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 11:12:22.480 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) 11:12:22.481 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 11:12:22.482 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) 11:12:22.483 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 11:12:22.484 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) 11:12:22.484 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185) 11:12:22.485 [ERROR] [system.err] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66) 11:12:22.486 [ERROR] [system.err] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50) 11:12:22.487 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25) 11:12:22.488 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110) 11:12:22.489 [ERROR] [system.err] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) 11:12:22.490 [ERROR] [system.err] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)

Stack Overflow | otusweb | 2 months ago
  1. 0

    Android arm emulator timing out when trying to instal app

    Stack Overflow | 2 months ago | otusweb
    com.android.ddmlib.InstallException: Failed to establish session 11:12:22.451 [ERROR] [system.err] at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:64) 11:12:22.452 [ERROR] [system.err] at com.android.ddmlib.Device.installPackages(Device.java:904) 11:12:22.453 [ERROR] [system.err] at com.android.builder.testing.ConnectedDevice.installPackages(ConnectedDevice.java:137) 11:12:22.454 [ERROR] [system.err] at com.android.build.gradle.internal.tasks.InstallVariantTask.install(InstallVariantTask.java:134) 11:12:22.455 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:12:22.456 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 11:12:22.457 [ERROR] [system.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 11:12:22.458 [ERROR] [system.err] at java.lang.reflect.Method.invoke(Method.java:498) 11:12:22.459 [ERROR] [system.err] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) 11:12:22.460 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228) 11:12:22.461 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221) 11:12:22.462 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210) 11:12:22.463 [ERROR] [system.err] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:621) 11:12:22.464 [ERROR] [system.err] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:604) 11:12:22.465 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) 11:12:22.466 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) 11:12:22.467 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) 11:12:22.468 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) 11:12:22.469 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66) 11:12:22.472 [QUIET] [system.out] :app:installDebug FAILED 11:12:22.479 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 11:12:22.480 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) 11:12:22.481 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 11:12:22.482 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) 11:12:22.483 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 11:12:22.484 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) 11:12:22.484 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185) 11:12:22.485 [ERROR] [system.err] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66) 11:12:22.486 [ERROR] [system.err] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50) 11:12:22.487 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25) 11:12:22.488 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110) 11:12:22.489 [ERROR] [system.err] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) 11:12:22.490 [ERROR] [system.err] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
  2. 0

    Can't configure travis to work on android project

    Stack Overflow | 6 months ago | Gonzalo
    com.android.ddmlib.InstallException: Failed to establish session
  3. 0

    GitHub comment 6499#219973289

    GitHub | 7 months ago | jiyinyiyong
    com.android.ddmlib.InstallException: Failed to establish session
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.android.ddmlib.InstallException

      Failed to establish session 11:12:22.451 [ERROR] [system.err] at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:64) 11:12:22.452 [ERROR] [system.err] at com.android.ddmlib.Device.installPackages(Device.java:904) 11:12:22.453 [ERROR] [system.err] at com.android.builder.testing.ConnectedDevice.installPackages(ConnectedDevice.java:137) 11:12:22.454 [ERROR] [system.err] at com.android.build.gradle.internal.tasks.InstallVariantTask.install(InstallVariantTask.java:134) 11:12:22.455 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 11:12:22.456 [ERROR] [system.err] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 11:12:22.457 [ERROR] [system.err] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 11:12:22.458 [ERROR] [system.err] at java.lang.reflect.Method.invoke(Method.java:498) 11:12:22.459 [ERROR] [system.err] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) 11:12:22.460 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228) 11:12:22.461 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221) 11:12:22.462 [ERROR] [system.err] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210) 11:12:22.463 [ERROR] [system.err] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:621) 11:12:22.464 [ERROR] [system.err] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:604) 11:12:22.465 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) 11:12:22.466 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) 11:12:22.467 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) 11:12:22.468 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) 11:12:22.469 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66) 11:12:22.472 [QUIET] [system.out] :app:installDebug FAILED 11:12:22.479 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 11:12:22.480 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) 11:12:22.481 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 11:12:22.482 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) 11:12:22.483 [ERROR] [system.err] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 11:12:22.484 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) 11:12:22.484 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185) 11:12:22.485 [ERROR] [system.err] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66) 11:12:22.486 [ERROR] [system.err] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50) 11:12:22.487 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25) 11:12:22.488 [ERROR] [system.err] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110) 11:12:22.489 [ERROR] [system.err] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) 11:12:22.490 [ERROR] [system.err] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)

      at org.gradle.execution.DefaultBuildExecuter.access$000()
    2. Gradle Core
      DefaultBuildOperationExecutor.run
      1. org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
      2. org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
      3. org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
      4. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
      5. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
      6. org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:153)
      7. org.gradle.internal.Factories$1.create(Factories.java:22)
      8. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
      9. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
      9 frames