question

kevindelafield avatar image
kevindelafield asked ·

unable to launch AVD

Hello, I followed the instructions here: https://developer.amazon.com/sdk/fire/emulator-guide.html after installing all of the packages on ADT v21.0.1. First of all, the AVD definition screen does not let me choose 'Kindle Fire HD 7" (Amazon) - API Level 15' for target. All it has for options are: - Android 4.0.3 - API Level 15 and 3 others. But, the 4.0.3 selection is pre-selected. If I use this target anyway, I get this error when I try to launch: Starting emulator for AVD 'KindleFireHD7' Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. What am I doing wrong here? Thanks, Kevin
fire tablet
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kevindelafield avatar image
kevindelafield answered ·
BTW, I reloaded eclipse, and the correct target shows up now. I set that as the target, but I still get this error: Starting emulator for AVD 'KindleFireHD7' Failed to allocate memory: 8 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Any ideas, Thanks, Kevin
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kevindelafield avatar image
kevindelafield answered ·
ah-ha! i didn't set the camera. that was it. thanks anyway, kevin
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Anshul@Amazon avatar image
Anshul@Amazon answered ·
Glad to know that AVD is working for you now. Hope this will help other developers as well facing similar issues.
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kevindelafield avatar image
kevindelafield answered ·
one note. i later had problems trying to run it again. this time i had to change hw.ramSize=832 to mw.ramSize=832MB in an .ini file under c:\users\ \.android\avd\KindleFireHD7.avd\config.ini for version 21 of ADT. yikes! found that on a random web page. not reassuring! thanks, kevin
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dixith@Amazon avatar image
Dixith@Amazon answered ·
Hi Kevin, As you mentioned above , we have changed the hw.ramsize=832 to mw.ramSize=832 in config.ini file. But we can able to launch the KF HD7 AVD without any issue. Please make sure to update the Android SDK Tools in Android SDK manager and install the new updates in Eclipse on ADT plugin tools. If you still face any issues, please raise a contact-us with your settings while creating the avd. This would help us to assist you further.
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Tim@Amazon avatar image
Tim@Amazon answered ·
kevindelafield, Just to add to Dixith's response: Sorry there are issues launching your Kindle Fire AVD. One note on the fix you found: By changing "hw.ramSize=832" to "mw.ramSize=832" the emulator defaults to 256 megabytes of memory. When the emulator starts up, it doesn't find a key for "hw.ramSize" and so it defaults to 256. This is quite low, and the emulator performance may degrade quite a bit. The "Failed to allocate memory: 8" is an error that indicates that the emulator on your machine couldn't allocate as much memory as you requested (832 is the default we have set in this case). To get around this, I recommend doing the following: 1. Revert the change to "hw.ramSize" 2. Select your AVD in the AVD Manager and hit edit 3. Try changing the value under Memory Options: RAM: to something smaller than 832, such as 600. This should allow your AVD to start but still have enough memory to run properly.
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kevindelafield avatar image
kevindelafield answered ·
that was not the problem. i found this solution on the internet and it worked. this time i had to change hw.ramSize=832 to mw.ramSize=832MB in an .ini file under c:\users\ \.android\avd\KindleFireHD7.avd\config.ini for version 21 of ADT. yikes! kevin
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.