Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

Trying to finish Android and have received no help. Having trouble with Android studio operating properly. Please help

When I try to run it won't run. Comes up with an error. Tried installing genymotion and have same issues

Could you be more specific, what error are you getting? Could you post your code as well? If this is a general problem, what OS, and CPU do you have? What version of Android Studio?

20 Answers

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

Working with Android Studio Beta 0.8.2 on Windows Vista. I've only gotten to the point where I've downloaded it from the treehouse website changed settings following the videos instructions. When I go to run it emulator-arm.exe has stopped working pops up

Hello,

Could you try changing the memory for the emulator to a lower value? There are other suggestions in this stackoverflow post. If those don't work, we can try other settings. I'd also recommend using the newest version of Android Studio(its out of beta now), but that shouldn't be causing the problem right now.

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

I changed the memory. The window pops up but remains black. Android never appears across the screen or anything else.

I'm going to guess you don't have an Intel CPU that is capable of HAX virtualtization and suggest you try Genymotion, there's a video available on it here.

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

I will attempt to try using Genymotion again. It didn't work the first time

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

I reinstalled Genymotion started it and window comes up that says Unable to load virtualbox engine

Do you have Virtualbox installed? If so, could you try following the instructions in this youtube video?

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

I did exactly what the video said to do and still not working.

The window that popped up this time said....

Unable to start virtual device Virtualbox cannot start virtual device To find out the cause of the problem start virtual device from Virtualbox

I did that and this pops up......

Failed to open a session for the virtual machine Custom Phone - 4.1.1 - API 16 - 768x1280.

Failed to load VMMR0.r0 (VERR_LDR_MISMATCH_NATIVE).

Result Code: E_FAIL (0x80004005) Component: Console Interface: IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}

Could you try removing the folder C:\USERS<username>\AppData\Local\VirtualStore\Program Files\Oracle where <username> is your currently logged on user and try again?

About the only other option I have found so far while searching online is possibly to uninstall both Genymotion and Virtualbox, then redownload and install the latest version of Virtualbox from here, then get the extension pack available here. Open up Virtualbox, then load the extension pack. Once this is done, download and install the version of Genymotion that does not include Virtualbox. Also, make sure for each time you install something, you do so as an Administrator.

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

Followed step by step and ended up with the same issues/errors

I'm out of ideas at the moment, you might need to try contacting Genymotion's support here.

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

Thank you for trying. I've emailed them twice and haven't gotten a response

I thought of one thing that might help with the Android emulator(not Genymotion). Could you try toggling the Use Host GPU option? Also, could you try making sure your SDK, tools, and Android Studio are all the latest version if toggling the option doesn't work?

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

I have the latest versions. Don't know what you mean by toggling the Host GPU option

In the AVD Manager, select the edit icon for the emulator, then near the bottom in Emulation Performance, there should be an option called Use Host GPU, if it is checked, try unchecking it, and if it is unchecked, try checking it. I know in the past this option has done some mysterious things with the emulator. Also, what CPU do you have, AMD or Intel?

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

I have Intel. I unchecked Use Host GPU. The emulator pops up and so does the ANDROID, its just keeps loading. This appears... Failed to create Context 0x3005 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.

I close the emulator...this appears under the warning Could not initialize emulated framebuffer

Hello,

You can try to install HAXM following the instructions here. I cannot guarentee that it will work since it does not work with all Intel CPUs, you will also need to download system images for x86 emulators from the SDK manager. Then create a new android emulator and make sure to tell it to use x86 instead of ARM.

Clint Borthwick
Clint Borthwick
Courses Plus Student 543 Points

I did that...this comes up

No Android SDK found. Please configure an Android SDK.

and this...

Unable to save plugin settings: The plugin org.jetbrains.android failed to save settings and has been disabled. Please restart Android Studio (show balloon) Unable to save settings: Failed to save settings. Please restart Android Studio

I restart Android Studio and this pops up...

Plugin Error Problems found loading plugins:

       Plugin "Google Cloud Tools For Android Studio" was not loaded: required plugin "Android Support" is disabled.
       Plugin "Google Cloud Testing" was not loaded: required plugin "Android Support" is disabled.
       Disable not loaded plugins
       Enable Android Support
       Open plugin manager

I enable Android Support and restart Android Studio and it goes back to Unable to save plugin settings

Is this normal to have this many problems?

No, this many issues isn't normal. Your initial issues wth the default emulator are fairly common, but your problems with Genymotion and now these new ones are not. It sounds like somehow you uninstalled the rest of your SDK when you installed HAXM. Are you able to do anything in Android Studio(like get to the SDK manager)? If you can get to the SDK manager, can you veify that you have the build tools, platform tools, and at least one of the Android SDKs installed?

The only thing I can suggest at this moment is to reinstall Android Studio.

Clint Borthwick
PLUS
Clint Borthwick
Courses Plus Student 543 Points

I did. Ran it and this happens.

Failed to create Context 0x3005 emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.

I'm to the point I'm just not going to bother with this project anymore. Its becoming a waist of time. I've been working on trying to get it to work for a week now. I've done my own google searches to try and fix the issue as well and nothing

This is actually a fairly common error to get with the default emulator(which I thought HAXM would eliminate since you had an Intel CPU, but it looks like your CPU isn't compatible from the previous attempt). My suggestion would be to:

1) Try emulating a device with a smaller screen size. 2) Try lowering the RAM used for the emulator. 3) Try increasing the RAM used by the emulator(I have heard of both ways fixing this one). 4) Again, try toggling the Use Host GPU option.

The default emulator can take a significant amount of time to start the first time on a system(I've seen reports of over 15 minutes). And as a warning, the default emulator is likely going to be horribly slow in this setup.