I am having issues installing an apk to my device.
adb install <.apk>
Using the above command returns the following:
5413 KB/s (99747 bytes in 0.017s)
Any idea on what might cause this issue?
It definitely recognizes the device. Could it be an issue with the apk?
Looks like you need to modify your
android:testOnly="false" or remove this attribute.
If you want to keep the attribute
true you can use
pm install command with
-t option, but you may need to
push the apk to device first.
$ adb push bin/hello.apk /tmp/ 5210 KB/s (825660 bytes in 0.154s) $ adb shell pm install /tmp/hello.apk pkg: /tmp/hello.apk Failure [INSTALL_FAILED_TEST_ONLY] $ adb shell pm install -t /tmp/hello.apk pkg: /tmp/hello.apk Success
I was able to reproduce the same issue and the above solved it.