Can't test my app on my android phone

+1 Pedro Alves · September 25, 2014
 am starting to learn how to make Android apps and I am very happy about that. However, everything seems to be going wrong for me. I had problems with the sdk (fixed) and with eclipse (why was it crashing?!). But now I just created my new Hello World app and when I connect my phone to the computer (ZTE Skate Acqua, Android 4.0.4, Debbugging enabled) it gives me this in the console:

[2014-09-24 22:19:39 - AndroidTest] ------------------------------
[2014-09-24 22:19:39 - AndroidTest] Android Launch!
[2014-09-24 22:19:39 - AndroidTest] adb is running normally.
[2014-09-24 22:19:40 - AndroidTest] Performing me.pta2002.androidtest.MainActivity activity launch
[2014-09-24 22:19:40 - AndroidTest] Automatic Target Mode: using device 'emulator-5554'
[2014-09-24 22:19:40 - AndroidTest] Uploading AndroidTest.apk onto device 'emulator-5554'
[2014-09-24 22:19:41 - AndroidTest] Installing AndroidTest.apk...
[2014-09-24 22:19:42 - AndroidTest] Installation error: Unknown failure
[2014-09-24 22:19:42 - AndroidTest] Please check logcat output for more details.
[2014-09-24 22:19:42 - AndroidTest] Launch canceled!
[2014-09-24 22:19:44 - AndroidTest] ------------------------------
[2014-09-24 22:19:44 - AndroidTest] Android Launch!
[2014-09-24 22:19:44 - AndroidTest] adb is running normally.
[2014-09-24 22:19:44 - AndroidTest] Performing me.pta2002.androidtest.MainActivity activity launch
[2014-09-24 22:19:45 - AndroidTest] Automatic Target Mode: using device 'emulator-5554'
[2014-09-24 22:19:45 - AndroidTest] Uploading AndroidTest.apk onto device 'emulator-5554'
[2014-09-24 22:19:46 - AndroidTest] Installing AndroidTest.apk...
[2014-09-24 22:19:47 - AndroidTest] Installation error: Unknown failure
[2014-09-24 22:19:47 - AndroidTest] Please check logcat output for more details.
[2014-09-24 22:19:47 - AndroidTest] Launch canceled!
[2014-09-24 22:21:14 - AndroidTest] ------------------------------
[2014-09-24 22:21:14 - AndroidTest] Android Launch!
[2014-09-24 22:21:14 - AndroidTest] adb is running normally.
[2014-09-24 22:21:14 - AndroidTest] Performing me.pta2002.androidtest.MainActivity activity launch
[2014-09-24 22:21:15 - AndroidTest] Automatic Target Mode: using device 'emulator-5554'
[2014-09-24 22:21:15 - AndroidTest] Uploading AndroidTest.apk onto device 'emulator-5554'
[2014-09-24 22:21:16 - AndroidTest] Installing AndroidTest.apk...
[2014-09-24 22:21:17 - AndroidTest] Installation error: Unknown failure
[2014-09-24 22:21:17 - AndroidTest] Please check logcat output for more details.
[2014-09-24 22:21:17 - AndroidTest] Launch canceled!
[2014-09-24 22:22:44 - AndroidTest] ------------------------------
[2014-09-24 22:22:44 - AndroidTest] Android Launch!
[2014-09-24 22:22:44 - AndroidTest] adb is running normally.
[2014-09-24 22:22:44 - AndroidTest] Performing me.pta2002.androidtest.MainActivity activity launch
[2014-09-24 22:22:44 - AndroidTest] Automatic Target Mode: using device 'emulator-5554'
[2014-09-24 22:22:44 - AndroidTest] Uploading AndroidTest.apk onto device 'emulator-5554'
[2014-09-24 22:22:45 - AndroidTest] Installing AndroidTest.apk...
[2014-09-24 22:22:46 - AndroidTest] Installation error: Unknown failure
[2014-09-24 22:22:46 - AndroidTest] Please check logcat output for more details.
[2014-09-24 22:22:46 - AndroidTest] Launch canceled!
[2014-09-24 22:23:48 - AndroidTest] ------------------------------
[2014-09-24 22:23:48 - AndroidTest] Android Launch!
[2014-09-24 22:23:48 - AndroidTest] adb is running normally.
[2014-09-24 22:23:48 - AndroidTest] Performing me.pta2002.androidtest.MainActivity activity launch
[2014-09-24 22:23:50 - AndroidTest] Automatic Target Mode: using device 'emulator-5554'
[2014-09-24 22:23:50 - AndroidTest] Uploading AndroidTest.apk onto device 'emulator-5554'
[2014-09-24 22:23:51 - AndroidTest] Installing AndroidTest.apk...
[2014-09-24 22:23:51 - AndroidTest] Installation error: Unknown failure
[2014-09-24 22:23:51 - AndroidTest] Please check logcat output for more details.
[2014-09-24 22:23:51 - AndroidTest] Launch canceled!



I have no idea what is going on. I know there is an "Unknown failure", but since it's unknown, I don't know what it is. It runs fine on AVD but it takes ages to boot. (LogCat log: http://pastebin.com/n7fxPcDJ and yes, I enabled apps from unknown sources)

Post a Reply

Replies

- page 2
Oldest  Newest  Rating
0 Alex Sweps · October 1, 2014
Sounds like you should just format your pc and factory reset your phone. With all the issues your having its probably better to start with a clean slate.  
0 Pedro Alves · October 1, 2014
WHOAAAAAAAAA No I wont format my PC (even though I should have done that when I bought it, I hate windows 8's look). But I have another PC (and another phone) I guess I should try it.
  • 1
  • 2

Java / Android Development

107,307 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator