Mac开发RN能编译但一直连不上安卓设备



  • mac开发RN能编译但连不上安卓设备,adb devices命令查询是有一个安卓设备的,用androidStudio开发也能识别设备运行安装。
    Installing APK 'app-debug.apk' on 'Nexus 5 - 6.0' for app:debug
    06:39:43 E/SplitApkInstaller: Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.awesomeproject signatures do not match the previously installed version; ignoring!
    Unable to install /Users/godess/AwesomeProject/android/app/build/outputs/apk/app-debug.apk
    com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.awesomeproject signatures do not match the previously installed version; ignoring!

    Could not install the app on the device, read the error above for details.
    Make sure you have an Android emulator running or a device connected and have
    set up your Android development environment:
    https://facebook.github.io/react-native/docs/android-setup.html
    到处找问题一下午了,求也用mac的大神指点一下,谢谢!


  • administrators

    你之前安装了一个包名相同但签名不同的版本(比如debug和release版间来回切换安装),需要先卸载那个版本再安装


登录后回复