当前位置: 首页 > 知识库问答 >
问题:

React-Native-CLI&Android:无法启动应用程序。确保安装了Android开发环境

邹海超
2023-03-14
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: INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.banana.apple signatures do not match previously installed version; ignoring!

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

* Get more help at https://help.gradle.org

BUILD FAILED in 9s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
Unable to install C:\Users\Admin\Desktop\Materials\Source Code\PunreachAPP\android\app\build\outputs\apk\debug\app-debug.apk

共有1个答案

于嘉许
2023-03-14

您以前必须使用不同的版本代码和版本名安装应用程序(可能是从play store安装的)。因此,为了构建和运行应用程序,您需要卸载以前安装的具有包id的应用程序

com.banana.apple

您可以通过两种方法来实现:

    null
 类似资料: