工具:错误安装的apk 2.3
- Android Studio中2.3
- 火力地堡
设备测试
三星GT-I9505
三星SM-T211
设备OS:
- 的是Android 5.0
问题: 我无法将Android设备上安装我的应用程序。一直在排除故障。
显示错误消息:
Installation failed with message device 'a408a2f4' not found.
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?
显示事件日志:
11:38 AM An existing connection was forcibly closed by the remote host
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:197)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:492)
at com.android.ddmlib.SplitApkInstaller.uploadApk(SplitApkInstaller.java:152)
at com.android.ddmlib.SplitApkInstaller.install(SplitApkInstaller.java:78)
at com.android.ddmlib.Device.installPackages(Device.java:904)
at com.android.tools.idea.run.tasks.SplitApkDeployTask$SplitApkInstaller.installApp(SplitApkDeployTask.java:117)
at com.android.tools.idea.run.RetryingInstaller.install(RetryingInstaller.java:86)
at com.android.tools.idea.run.tasks.SplitApkDeployTask.perform(Spl... (show balloon)
11:38 AM Session 'app': Error Installing APKs
怪异事件看出
我还没有在我的设备中安装我的应用程序,但它显示我应该卸载我的应用程序。
我已经看到,将APK安装到我的物理设备时会脱机并返回联机状态。我不知道是什么导致了这种行为。
我所做到目前为止
在开发人员选项选中我的设备设置为允许USB调试
经过我的SHA-1我的包名是正确注册到Firebase控制台
如果我的应用程序是在我的设备应用程序管理器中签入的正在安装,但我看不到它
重新启动我的电脑,也许它遇到了亚行缓存问题。我在任务管理器中删除了它,但没有解决。
希望您能充分考虑。谢谢。
嗨。你有没有尝试过在不同的设备上安装它?从日志开始,似乎机器和设备之间的连接出错。 –
看起来端口或电缆上有物理错误。但这只是另一种可能性 – Chisko
您在测试哪种设备?应用程序使用的设备中的_Uninstall_选项代替所有用户的_Uninstall。首先断开你的USB连接,然后再连接你的设备。如果它不起作用,那么通过'Invalid Cache and Restart'重新启动你的AS。 – Piyush