react-native android 调试 遇到的坑(持续更新)

1.小米设备调试

     查看设备是否正常链接  adb devices

     链接正常  报错:

     FAILURE: Build failed with an exception.

    * What went wrong:
   Execution failed for task ':app:installDebug'.
   > com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to establish session

  * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

   ********小米的坑********开发者模式  启动MUUI优化   关掉重启!!!!!!!

2.app 包名:

     android/app/src/main/java/com/PROJECT_NAME/MainActivity.java和/MainApplication.java,修改第一行为package com.****这个就是包名;    






你可能感兴趣的:(react-native,android)