作者:大鱼小鱼比目鱼 | 来源:互联网 | 2023-02-13 09:31
工具:
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控制台
检查我的设备应用程序管理器是否正在安装我的应用程序,但我看不到它
重启我的电脑可能是在ADB上遇到缓存问题.我在任务管理器中删除了它但没有解决.
希望你能得到最大的考虑.谢谢.