Ryno
Lost but trying
Profile
Posts: 11
Reg: Mar 21, 2014
Sacramento
1,410
03/30/14 08:38 PM (10 years ago)

Installation error: Unknown failure - Launch canceled!

So all my app is at the moment, is a menu screen, and I can't seem to get it to run on any emulated device. Any ideas of where to go from here is appreciated. This is what the console reads: [2014-03-30 20:25:18 - saclist] ------------------------------ [2014-03-30 20:25:18 - saclist] Android Launch! [2014-03-30 20:25:18 - saclist] adb is running normally. [2014-03-30 20:25:18 - saclist] Performing com.saclist.BT_activity_start activity launch [2014-03-30 20:25:18 - saclist] Automatic Target Mode: Unable to detect device compatibility. Please select a target device. [2014-03-30 20:25:50 - saclist] Uploading saclist.apk onto device 'emulator-5554' [2014-03-30 20:25:53 - saclist] Installing saclist.apk... [2014-03-30 20:26:06 - saclist] Installation error: Unknown failure [2014-03-30 20:26:06 - saclist] Please check logcat output for more details. [2014-03-30 20:26:06 - saclist] Launch canceled!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/30/14 08:56 PM (10 years ago)
Hello! Was there anything in the LogCat output that you can share with us? It looks like the emulator launched...or at least Eclipse thinks it did, but then something happened. Mark
 
Ryno
Lost but trying
Profile
Posts: 11
Reg: Mar 21, 2014
Sacramento
1,410
like
03/30/14 09:06 PM (10 years ago)
I'm not quite understanding what logcat is or how to access it or the ADB. Reading http://developer.android.com/tools/debugging/debugging-log.html. Can explain this to me like you would explain it to a 5 year old? TIA
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/30/14 09:12 PM (10 years ago)
Check out this video from my YouTube channel and let me know if it helps out at all. https://www.youtube.com/watch?v=UgurXKgP2AE Mark
 
Ryno
Lost but trying
Profile
Posts: 11
Reg: Mar 21, 2014
Sacramento
1,410
like
03/30/14 09:23 PM (10 years ago)
Ok figured out how to get the logcat info and here it is, any help?: edit: deleted logcat info was too long, and apparently of no help
 
Ryno
Lost but trying
Profile
Posts: 11
Reg: Mar 21, 2014
Sacramento
1,410
like
03/30/14 09:25 PM (10 years ago)
Too much to post... That is about 10% of it. Emulator was working fine, just never loaded my app. Could see the emulators home screen, apps, etc.
 
Ryno
Lost but trying
Profile
Posts: 11
Reg: Mar 21, 2014
Sacramento
1,410
like
03/31/14 09:53 AM (10 years ago)
@GoNorthWest - I installed the 3.1 sdk as recommended in your tutorial, but there was no difference exept the first two lines. [2014-03-31 09:36:52 - google-play-services_lib] Unable to resolve target 'android-9' [2014-03-31 09:36:54 - google-play-services_lib] Unable to resolve target 'android-9' [2014-03-31 09:37:48 - saclist] ------------------------------ [2014-03-31 09:37:48 - saclist] Android Launch! [2014-03-31 09:37:48 - saclist] adb is running normally. [2014-03-31 09:37:48 - saclist] Performing com.saclist.BT_activity_start activity launch [2014-03-31 09:37:48 - saclist] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_Nexus_4_by_Google' [2014-03-31 09:37:48 - saclist] Launching a new emulator with Virtual Device 'AVD_for_Nexus_4_by_Google' [2014-03-31 09:38:07 - Emulator] creating window 0 0 438 729 [2014-03-31 09:38:07 - saclist] New emulator found: emulator-5554 [2014-03-31 09:38:07 - saclist] Waiting for HOME ('android.process.acore') to be launched... [2014-03-31 09:40:03 - saclist] HOME is up on device 'emulator-5554' [2014-03-31 09:40:03 - saclist] Uploading saclist.apk onto device 'emulator-5554' [2014-03-31 09:40:05 - saclist] Installing saclist.apk... [2014-03-31 09:42:14 - saclist] Failed to install saclist.apk on device 'emulator-5554! [2014-03-31 09:42:14 - saclist] (null) [2014-03-31 09:42:14 - saclist] Launch canceled! Here are the warnings I get (Is this why my main folder has a ! on it?) Description Resource Path Location Type The field Context.MODE_WORLD_READABLE is deprecated BT_fileManager.java /saclist/src/com/saclist line 126 Java Problem The method getWidth() from the type Display is deprecated BT_device.java /saclist/src/com/saclist line 309 Java Problem The field Context.MODE_WORLD_READABLE is deprecated BT_fileManager.java /saclist/src/com/saclist line 328 Java Problem The field Context.MODE_WORLD_READABLE is deprecated BT_fileManager.java /saclist/src/com/saclist line 343 Java Problem The field Context.MODE_WORLD_READABLE is deprecated BT_downloader.java /saclist/src/com/saclist line 227 Java Problem The method getHeight() from the type Display is deprecated BT_device.java /saclist/src/com/saclist line 321 Java Problem The field PowerManager.FULL_WAKE_LOCK is deprecated BT_gcmWakeLocker.java /saclist/src/com/saclist line 44 Java Problem What else can I try? I tried to delete the app to start from scratch but there is no option for that. I see "deprecated" appearing a lot. Is there a possibility that this code is just too old for the new v of eclipse? Has anyone been able to successfully make an app here lately?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/31/14 10:03 AM (10 years ago)
You don't have to worry about the Warnings or deprecations. Neither of those will prevent the app from compiling, and it's normal to have some of them there. Deprecations are just warnings that the code is somewhat dated, and they'd prefer you use a new method or whatever. Those are all good. Not sure why it's not installing. Have you tried creating a different emulator to see if that helps? Maybe one of the Nexus 7 emulators? Also, make sure you specify plenty of disk space...I think it defaults to 200MB. That's basically the space the emulator has to install apks. Mark
 
Ryno
Lost but trying
Profile
Posts: 11
Reg: Mar 21, 2014
Sacramento
1,410
like
04/01/14 01:51 AM (10 years ago)
@GoNorthWest - I have not been changing the disk space, will try
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.