binder.java 565_错误未知失败(在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;

}

解决方法:

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

我这样解决了:

1.文件 – >设置 – >构建,执行,部署.

2.即时运行 – >禁用“在部署时启用即时运行热插拔代码/资源更改”.

3.申请 – >好

之后,您可以清理项目(Build – > Clean项目)并重新启用即时运行以使即时运行再次运行.

编辑(Android Studio 3.0)

要禁用即时运行:

>打开“设置”或“首选项”对话框(适用于Mac,Android Studio – >偏好设置)

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

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

标签:android,java,apk

来源: https://codeday.me/bug/20190930/1836285.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
com.miui.frameworks.servicestests (1 Test) [1/1] com.android.server.location.gnss.hal.Gpo4ClientTest#init: FAILED (141ms) STACKTRACE: java.lang.SecurityException: uid 10289 does not have android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION. at android.os.Parcel.createExceptionOrNull(Parcel.java:3011) at android.os.Parcel.createException(Parcel.java:2995) at android.os.Parcel.readException(Parcel.java:2978) at android.os.Parcel.readException(Parcel.java:2920) at android.location.ILocationManager$Stub$Proxy.registerLocationListener(ILocationManager.java:1291) at android.location.LocationManager.requestLocationUpdates(LocationManager.java:1551) at android.location.LocationManager.requestLocationUpdates(LocationManager.java:1234) at android.location.LocationManager.requestLocationUpdates(LocationManager.java:1199) at com.android.server.location.gnss.hal.Gpo4Client.registerPassiveLocationUpdates(Gpo4Client.java:198) at com.android.server.location.gnss.hal.Gpo4Client.init(Gpo4Client.java:78) at com.android.server.location.gnss.hal.Gpo4ClientTest.init(Gpo4ClientTest.java:209) ... 8 trimmed Caused by: android.os.RemoteException: Remote stack trace: at com.android.server.location.LocationPermissions.enforceLocationPermission(LocationPermissions.java:116) at com.android.server.location.LocationManagerService.registerLocationListener(LocationManagerService.java:786) at android.location.ILocationManager$Stub.onTransact(ILocationManager.java:582) at android.os.Binder.execTransactInternal(Binder.java:1285) at android.os.Binder.execTransact(Binder.java:1249)
最新发布
06-01

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值