相关疑难解决方法(0)

安装失败,因为:'null'-Android Studio 3.5

自从遇到APK安装问题以来,我已将Android Studio更新至3.5。这是它显示的唯一日志:

Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
Installation failed due to: 'null'
Retry
Run Code Online (Sandbox Code Playgroud)

尝试在真实设备上安装APK时会发生这种情况。如果我从设备上卸载该应用程序,然后重新运行该版本,则它只会安装一次,然后在下一次安装时会不断抛出此错误。它可以在仿真器上正常运行,但是我不能为所有功能使用仿真器。

我尝试过的

  • 删除的Android Studio配置文件。
  • 从项目中删除了Gradle文件。
  • 无效和重置缓存。
  • 清理/重建项目。
  • 寻找类似的问题Stackoverflow(没有匹配我的问题)
  • 全新安装(删除了包括SDK在内的所有文件)Android Studio 3.5

更新资料

我在机器上安装了Linux Mint,并在那里测试了AS 3.5,由于某些原因,即使对于Android 7及更低版本的设备,一切都可以正常工作。

以前的操作系统:Windows 10 1903

当前操作系统:Linux Mint 19.2

我认为这个问题可能起源于Windows计算机。

android android-studio android-studio-3.5

53
推荐指数
6
解决办法
1万
查看次数

错误未知失败(在android.os.Binder.execTransact(Binder.java:565))安装APK时出错

有人能告诉我这是什么意思吗?

一切都很顺利,我没有改变任何事情,它刚刚发生,这是Binder 565中的代码:

try {
    res = onTransact(code, data, reply, flags);
} catch (RemoteException | RuntimeException e) {
    if (LOG_RUNTIME_EXCEPTION) {
        Log.w(TAG, "Caught a RuntimeException from the binder stub implementation.", e);
    }
    if ((flags & FLAG_ONEWAY) != 0) {
        if (e instanceof RemoteException) {
            Log.w(TAG, "Binder call failed.", e);
        } else {
            Log.w(TAG, "Caught a RuntimeException from the binder stub implementation.", e);
        }
    } else {
        reply.setDataPosition(0);
        reply.writeException(e);
    }
    res = true;
}
Run Code Online (Sandbox Code Playgroud)

java android apk

37
推荐指数
3
解决办法
5万
查看次数

Android应用安装:未知失败(失败 - 未安装为0)

应用程序在模拟器上运行正常,但我无法在我的设备上启动应用程序(小米Mi4).首先我用这样的文本播种对话:

Installation failed with message Failed to establish session.
It is possible that this issue is resolved by uninstalling an existing 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?
Run Code Online (Sandbox Code Playgroud)

但在我同意之后 - 我在日志中看到这条消息:

Launching app
$ adb install-multiple -r <....>
$ adb shell pm uninstall com.example.app.debug
Unknown failure (Failure - not installed for 0)
Error while Installing APKs
Run Code Online (Sandbox Code Playgroud)

我已经多次重启设备并将其插入/拔出电脑,但没有任何帮助.

android adb

25
推荐指数
2
解决办法
3万
查看次数

标签 统计

android ×3

adb ×1

android-studio ×1

android-studio-3.5 ×1

apk ×1

java ×1