错误未知失败(在android.os.Binder.execTransact(Binder.java:565))安装APK时出错 [英] error Unknown failure (at android.os.Binder.execTransact(Binder.java:565)) Error while Installing APKs

查看:1570
本文介绍了错误未知失败(在android.os.Binder.execTransact(Binder.java:565))安装APK时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我这意味着什么吗?

Could somebody tell me what that means?

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

Everything went fine, I haven't changed anyhing and it just happened, this is the code in 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;
}


推荐答案

我遇到这个问题我试图在模拟器上安装apk,我总是收到错误消息,我需要卸载旧版本的我的应用程序的apk。

I had this issue when I was trying to install apk on emulator and I was always getting error messages that I need to uninstall the old version of my app's apk.

我这样解决了:

1。文件 - >设置 - >构建,执行,部署。

2。即时运行 - >禁用在部署时启用即时运行热插拔代码/资源更改。

3。应用 - >确定

之后,您可以清理项目(构建 - >清理项目)并重新启用即时运行让即时运行再次运行。

After that you can clean the project (Build -> Clean project) and re-enable instant run to get the instant run working again.

禁用即时运行( Android文档

到禁用即时运行:


  1. 打开设置偏好设置对话框。 (对于Mac, Android Studio - > 偏好设置

  2. 导航至构建,执行,部署> 即时运行

  3. 取消选中启用即时运行旁边的复选框。

  1. Open the Settings or Preferences dialog. (For Mac, Android Studio -> Preferences)
  2. Navigate to Build, Execution, Deployment > Instant Run.
  3. Uncheck the box next to Enable Instant Run.

这篇关于错误未知失败(在android.os.Binder.execTransact(Binder.java:565))安装APK时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆