android - 如何解决在Android Studio中启动应用程序时出现的Android错误?

标签 android android-studio

我在午餐我的应用程序时收到此错误:

Installation failed with message INSTALL_FAILED_UID_CHANGED.
It is possible that this issue is resolved by uninstalling an existin
version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?

我单击“确定”,但随后收到以下日志消息:
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.team.saver.app"
pkg: /data/local/tmp/com.team.saver.app
Failure [INSTALL_FAILED_UID_CHANGED]
DEVICE SHELL COMMAND: pm uninstall com.team.saver.app
Unknown failure (Failure)


我设法通过替换appId来克服它,但是我需要保留当前的应用程序ID,而不是替换它。

我也尝试过使用adb删除该程序包,而从shell根本没有得到响应:
adb shell rm -rf com.team.saver.app

也试图重启设备


但是仍然找不到解决方案,任何帮助都将是巨大的,thanx!

最佳答案

尝试通过正确安装jdk来安装android studio。如果所有路径都设置为ok,则不会产生错误。

关于android - 如何解决在Android Studio中启动应用程序时出现的Android错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36765246/

相关文章:

android - 原因 : error=86, 可执行 M1 Macbook(Android 工作室)中的错误 CPU 类型

java - 在 kotlin 中添加 2 个或更多构造函数

android - "Fetching JS Bundle"非常慢

android-studio - Android Studio 在首选项中添加 flutter sdk 路径

java - 为什么我的Java程序中的好友列表不显示?

android - 收到警告应用程序不应在 Android Studio 中提供自己的启动画面

android - Gradle 必须依赖 com.google.firebase :firebase-core for Firebase services to work as intended

java - Android 混淆 Proguard 问题

Android SharedPreferences在多个进程之间不一致

android - 如何在可移植跨平台xamarin表单中将表单背景设置为透明?