{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/6499","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/6499/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/6499/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/6499/events","html_url":"https://github.com/facebook/react-native/issues/6499","id":141522850,"number":6499,"title":"Failed to establish session","user":{"login":"guanMac","id":3274136,"avatar_url":"https://avatars.githubusercontent.com/u/3274136?v=3","gravatar_id":"","url":"https://api.github.com/users/guanMac","html_url":"https://github.com/guanMac","followers_url":"https://api.github.com/users/guanMac/followers","following_url":"https://api.github.com/users/guanMac/following{/other_user}","gists_url":"https://api.github.com/users/guanMac/gists{/gist_id}","starred_url":"https://api.github.com/users/guanMac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guanMac/subscriptions","organizations_url":"https://api.github.com/users/guanMac/orgs","repos_url":"https://api.github.com/users/guanMac/repos","events_url":"https://api.github.com/users/guanMac/events{/privacy}","received_events_url":"https://api.github.com/users/guanMac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Ran%20Commands","name":"Ran Commands","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-17T09:11:31Z","updated_at":"2016-05-18T09:28:03Z","closed_at":"2016-03-17T09:52:22Z","body":"When I used 'react-natvie run-androi', it showed that:\r\n\r\n:app:installDebug\r\nInstalling APK 'app-debug.apk' on 'MI 4W - 6.0.1'\r\n\r\nExecution failed for task ':app:installDebug'.\r\n> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to establish session\r\n\r\nmy android phone is XIAOMI 4 , 6.0.1"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/219973289","html_url":"https://github.com/facebook/react-native/issues/6499#issuecomment-219973289","issue_url":"https://api.github.com/repos/facebook/react-native/issues/6499","id":219973289,"user":{"login":"jiyinyiyong","id":449224,"avatar_url":"https://avatars.githubusercontent.com/u/449224?v=3","gravatar_id":"","url":"https://api.github.com/users/jiyinyiyong","html_url":"https://github.com/jiyinyiyong","followers_url":"https://api.github.com/users/jiyinyiyong/followers","following_url":"https://api.github.com/users/jiyinyiyong/following{/other_user}","gists_url":"https://api.github.com/users/jiyinyiyong/gists{/gist_id}","starred_url":"https://api.github.com/users/jiyinyiyong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiyinyiyong/subscriptions","organizations_url":"https://api.github.com/users/jiyinyiyong/orgs","repos_url":"https://api.github.com/users/jiyinyiyong/repos","events_url":"https://api.github.com/users/jiyinyiyong/events{/privacy}","received_events_url":"https://api.github.com/users/jiyinyiyong/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T09:28:03Z","updated_at":"2016-05-18T09:28:03Z","body":"Same error here but during `./gradlew installRelease`. Also in XiaoMi 4, 6.0.1 . Some logs:\r\n\r\n```text\r\n17:26:16.747 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':app:installDebug'.\r\n17:26:20.299 [LIFECYCLE] [org.gradle.api.Task] Installing APK 'app-debug.apk' on 'MI 4LTE - 6.0.1'\r\n17:26:21.840 [ERROR] [org.gradle.api.Task] Unable to install /Users/chen/repo/gist/Demo/android/app/build/outputs/apk/app-debug.apk\r\ncom.android.ddmlib.InstallException: Failed to establish session\r\n\tat com.android.ddmlib.Device.installPackages(Device.java:894)\r\n\tat com.android.builder.testing.ConnectedDevice.installPackages(ConnectedDevice.java:113)\r\n```\r\n```text\r\n17:26:21.845 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 14.385 secs, idle: 0.049 secs\r\n17:26:21.853 [ERROR] [org.gradle.BuildExceptionReporter]\r\n17:26:21.855 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.\r\n17:26:21.855 [ERROR] [org.gradle.BuildExceptionReporter]\r\n17:26:21.855 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:\r\n17:26:21.856 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':app:installDebug'.\r\n17:26:21.856 [ERROR] [org.gradle.BuildExceptionReporter] > com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to establish session\r\n17:26:21.857 [ERROR] [org.gradle.BuildExceptionReporter]\r\n17:26:21.857 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:\r\n17:26:21.857 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:installDebug'.\r\n17:26:21.858 [ERROR] [org.gradle.BuildExceptionReporter] \tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)\r\n17:26:21.858 [ERROR] [org.gradle.BuildExceptionReporter] \tat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute\r\n```\r\n\r\nAnd reading 2720 does not solve my problem."}}