New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to establish session #6499
Comments
@facebook-github-bot duplicate #2720 |
Same error here but during
update: someone told me to install MIUI developer edition and I found it worked. So the problem was that default OS does not gives enough permissions... |
Actually this problems comes from all of Xiaomi phones, MIUI block incoming action for installing adb from apk via usb. If you try install manual via "adb install nameofapk.apk" then of your Xiaomi's screen will pop permission that ask you to accept or deny installation from usb. That's the problem why apk won't automatically install when we type "react-native run-android", because that command use silent install via adb to Xiaomi Device. Silent install will not make pop up permission on Xiaomi's screen. So may the question is, how to remember permission access for install apk via adb usb, or maybe disable it. Thanks |
Seems to not work on Xiaomi Redmi Note 3 too. |
you can disable MIUI on developer options after run react-native run-android |
Works !
|
This problem confused me for a long time, thank you very much |
@lironess Thank you! It works! |
@lironess it work Thank you so much |
Many thanks for you! |
@lironess Thank you so so much,it works |
@lironess Thanks, you saved my day 👍 |
it does not work for me .... i can run on android emulator, but device can not. device is Xiao Mi MIUI8.0, and i try the 5 step upon.........it does not work....... FAILURE: Build failed with an exception.
BUILD FAILED Total time: 9.064 secs |
i solved my problem. i change android/build.gradle file line 8, classpath 'com.android.tools.build:gradle:1.3.1' to classpath 'com.android.tools.build:gradle:1.2.3'. it works... link :http://csbun.github.io/blog/2015/12/starting-react-native-with-android/ |
把小米开发者选项中最后一行MIUI优化关掉就行 发自我的 iPhone
|
@VentionYC 谢谢,我关了的,不行。我报的错和题主不一样,我的是com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Unable to upload some APKs。我是把gradle:1.3.1 改成 gradle:1.2.3 就可以了。再改回去还是不行...难道只能用gradle:1.2.3??我不知道为什么...先跑起来再说了.... |
@AndyFightting 我的跟你的一样,改成1.2.3就可以了。。。。1.3.1的也一样不行,用的是MIUI手机,用模拟器的话都不用修改什么就运行起来了 |
What's the word on this issue? |
works for me. thX! |
@lironess Thank you ! |
@lironess Thank you!!... after trying all permutations and combination ... finally this helped me to sort the problem ... also advise for every1 here dont use MI phone for debugging it will not allow you to taste the actual flavour of android ... thank you all !!!! |
@lironess Answer Worked for Xiomi. I think that is the solution for Xiomi handsets. Thanks mate :) |
thank you very much man. |
thank you very much ,close the optimization mui is works for me |
Thanks, work on Xiaomi Redmi 4 Pro/Prime |
Thanks SOOO MUCH! |
Thanks, |
Thanks a lot. On redmi note 3s, once I disabled |
@AndyFightting thx, it work. gradle version change to 1.2.3 |
@lironess That worked for my Redmi note also... Thanks... |
Thanks.. That also worked for my Redmi 3S Prime.. |
thanks |
@lironess Thanks Buddy. Works for Redmi Note3. |
i am using Xiomi readmi 4 it is not woking...i am stuck |
any body help,,,,with Xiomi read mi 4 i am working its no working |
@lironess Oh man Thank you so much. It's Working. You save my time. |
Haha works like a charm...REDMI NOTE 4 |
If your android device os version is above 5.0, you need to run cmd 'adb reverse tcp:8081 tcp:8081' |
my problem in with the emulator its the one thats give me that error |
因为手机中已经存在的相同包名的APK,将其删除就行了。 |
@lironess Thanks for the solution! Worked for me. |
When I used 'react-natvie run-androi', it showed that:
:app:installDebug
Installing APK 'app-debug.apk' on 'MI 4W - 6.0.1'
Execution failed for task ':app:installDebug'.
my android phone is XIAOMI 4 , 6.0.1
The text was updated successfully, but these errors were encountered: