有人能告诉我这是什么意思吗?
一切顺利,我没有改变任何东西,它就发生了,这是 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;
}
原文由 Tsur Yohananov 发布,翻译遵循 CC BY-SA 4.0 许可协议
当我尝试在模拟器上安装 apk 时遇到了这个问题,我总是收到错误消息,提示我需要卸载旧版本的应用程序 apk。
我这样解决了:
1. 文件 -> 设置 -> 构建、执行、部署。
2. Instant Run -> 禁用“Enable Instant Run to hot swap code/resource changes on deploy”。
3.申请->确定
之后,您可以清理项目 (Build -> Clean project) 并重新启用即时运行以使即时运行再次运行。
编辑(Android Studio 3.0)
禁用即时运行( 安卓文档)
要禁用即时运行: