运行react-native run-android --variant = release后构建失败

时间:2020-06-19 10:04:40

标签: android react-native react-native-android react-native-ios

任务':app:installRelease'的执行失败。

com.android.builder.testing.api.DeviceException:
com.android.ddmlib.InstallException: INSTALL_FAILED_INVALID_APK: Package
couldn't be installed in /data/app/com.example: Package
/data/app/com.example/base.apk code is missing

1 个答案:

答案 0 :(得分:3)

我已通过删除Example/android/app/build/outputs/apk/release/app-release.apk中的应用发布apk来解决 并重新构建