工具:
> Android Studio 2.3
> Firebase
设备测试
>三星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上遇到缓存问题.我在任务管理器中删除了它但没有解决.
希望你能得到最大的考虑.谢谢.
最佳答案