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 Pedro Alves · September 27, 2014
Sorry for a bit late reply, I ave jdk 1.7 and jdk 1.8, nut I am using 1.7 with android
0 Savad Dekrup · September 25, 2014
I think, you have to see the version of SDK ur using with your android phone. Maybe, you're using the outdated.
  • 1
  • 2

Java / Android Development

107,114 followers
About

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

Links
Moderators
Bucky Roberts Administrator