Tools:
Device Tested
Samsung GT-I9505
Samsung SM-T211
Device OS:
Problem: I can't install my app on my android device. Been troubleshooting what goes wrong.
Display Error Message:
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?
Displayed Event Log:
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
Weird Event seen
I haven't had installed my app in my device yet it is displaying that i should uninstall my app.
I've seen that when installing APK to my physical device goes offline and goes back to online. I don't know what is causing this behavior.
What I've done so far
Checked my device settings in the developer options to allow usb debugging
Checked my Sha-1 my package name it is being correctly registered to Firebase Console
Checked in my Device Application Manager if my app is being installed but i can't see it
Restarted my PC maybe it is experiencing cache issues on ADB. I had deleted it in task manager but not resolving.
Hoping for your utmost consideration. Thank You.
i had same problem today after update to android studio 2.3
i just downgrade build:gradle version from 2.3.0
to 2.2.3
and solve my problem
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3' // downgrade to this version
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With