williamhunt
Code is Art
Profile
Posts: 9
Reg: Oct 06, 2012
Toronto, Canada
10,590
10/11/12 04:05 AM (12 years ago)

emulator never reaches home page package doesn't install on Eclipse

My emulator on PC never gets past flashing "Android" and buttons do nothing. My package fails to install. [2012-10-11 06:01:09 - Montereyharbor] Installing Montereyharbor.apk... [2012-10-11 06:04:26 - Montereyharbor] Failed to install Montereyharbor.apk on device 'emulator-5554! Is there a path or setting problem? Thanks.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/11/12 04:23 AM (12 years ago)
Is the error log only this long? I mean the log cat error does not show any other reason than those two lines above? Well try again running the app by right clicking on the project file and selecting run as----> android application. Even if this does not work then open the AVD and check the settings for this emulator-5554. It must be google 2.2 API level 8.
 
williamhunt
Code is Art
Profile
Posts: 9
Reg: Oct 06, 2012
Toronto, Canada
10,590
like
10/11/12 04:28 AM (12 years ago)
I'm trying your advice now.
 
williamhunt
Code is Art
Profile
Posts: 9
Reg: Oct 06, 2012
Toronto, Canada
10,590
like
10/11/12 04:40 AM (12 years ago)
I followed your advice Sandeep with this result: [2012-10-11 07:25:56 - Montereyharbor] Android Launch! [2012-10-11 07:25:56 - Montereyharbor] adb is running normally. [2012-10-11 07:25:56 - Montereyharbor] Performing com.montereyharbor.com.MontereyharborActivity activity launch [2012-10-11 07:25:56 - Montereyharbor] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'MyFirstSimulator' [2012-10-11 07:25:56 - Montereyharbor] Uploading Montereyharbor.apk onto device 'emulator-5554' [2012-10-11 07:25:57 - Montereyharbor] Installing Montereyharbor.apk... [2012-10-11 07:28:33 - Montereyharbor] Failed to install Montereyharbor.apk on device 'emulator-5554! [2012-10-11 07:28:33 - Montereyharbor] (null) [2012-10-11 07:28:33 - Montereyharbor] Launch canceled! I checked the AVD and this is the setting: Google APIs platform 2.2 level 8 I must leave now but will return to the forum later.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
10/11/12 04:44 AM (12 years ago)
The error is still not complete explanatory. if possible download teamviewer software when you come back so that i can have chance to see what exactly is causing this error. When you come back just PM me your user id and password. If i am available at that time i might be able to check out the cause for this error.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/11/12 11:19 AM (12 years ago)
I see this happening all the time on systems with a low amount of memory (RAM) in them. I have not been able to find a satisfactory way to get around it. Sometimes making sure you don't have any other programs open, like Firefox which is a huge memory hog, helps a bit. Sometimes rebooting before you try also frees up memory. You can also go into your AVD Manager, edit your virtual device, and check the "Include Snapshots" (or something similar) option, which will essentially create a snapshot of a working emulator once it's been built, which should speed things up next time. Another workaround is to create an apk of your app and load it directly into the Emulator. Check this forum post for a tutorial on how to do this: https://www.buzztouch.com/forum/thread.php?tid=AD2034D826E788447978688 This is purely an Eclipse issue, and is not related to buzztouch at all. Hope this helps a bit! Mark
 
williamhunt
Code is Art
Profile
Posts: 9
Reg: Oct 06, 2012
Toronto, Canada
10,590
like
10/11/12 07:25 PM (12 years ago)
I got the emulator running and the app loading! I shut down everything, ran the AVD manager, started the emulator. I killed adb.exe from the task manager window. The emulator reached the home page. I then started eclipse, restarted adb, clicked the emulator shortcut, and ran my app. The emulator with buttons worked and the app ran properly. I will retest the process to see if everything I did was necessary or not. A better solution is to get a newer faster machine with more memory.
 
williamhunt
Code is Art
Profile
Posts: 9
Reg: Oct 06, 2012
Toronto, Canada
10,590
like
10/11/12 07:27 PM (12 years ago)
Thanks to everyone for helping.
 

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.