I have downloaded ADT Bundle with everything included http://developer.android.com/sdk/index.html. When I create Android Applicatio and I want to run I get sth like that. How to make it running.
[2012-11-21 10:18:00 - Test2] ------------------------------
[2012-11-21 10:18:00 - Test2] Android Launch!
[2012-11-21 10:18:00 - Test2] adb is running normally.
[2012-11-21 10:18:01 - Test2] Performing com.example.test2.MainActivity activity launch
[2012-11-21 10:18:01 - Test2] Automatic Target Mode: launching new emulator with compatible AVD 'Test'
[2012-11-21 10:18:01 - Test2] Launching a new emulator with Virtual Device 'Test'
[2012-11-21 10:18:01 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2012-11-21 10:18:01 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2012-11-21 10:18:01 - Emulator] Failed to allocate memory: 8
[2012-11-21 10:18:01 - Emulator]
[2012-11-21 10:18:01 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2012-11-21 10:18:01 - Emulator] Please contact the application's support team for more information.
While running your android app, it will loaded in new emulator. we cant able to run multiple emulator with single instance. Goto->Task Manager->adb(in running processes)->give end task->restart your eclipse and run your emulator.
Data partition already in use: This problem is based on your system RAM size and emulator ram size(allocating ram size while creating AVD) . If two emulator running in same instances,
the memory error will occur.
Related
I have multiple questions to ask. I tried my best to find the solution but still confused.
1) I couldn't able to run the android app in in the avd. Whenever I click the run as android application. Its only creating multiple avd but no avd is running my app. And I couldn't find any logcat messages. In the console its displaying these errors.
[2014-04-17 09:12:42 - MyFirstApp] Android Launch!
[2014-04-17 09:12:42 - MyFirstApp] adb is running normally.
[2014-04-17 09:12:42 - MyFirstApp] Performing com.example.myfirstapp.MainActivity activity launch
[2014-04-17 09:12:42 - MyFirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'MotoG'
[2014-04-17 09:12:42 - MyFirstApp] Launching a new emulator with Virtual Device 'MotoG'
[2014-04-17 09:13:47 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2014-04-17 09:13:47 - Emulator] WARNING: SD Card image already in use: C:\Users\Sanjay M\.android\avd\MotoG.avd/sdcard.img
[2014-04-17 09:13:47 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2014-04-17 09:13:47 - Emulator] emulator: emulator window was out of view and was recentere
[2014-04-17 09:13:47 - Emulator]
2) Sometime the appcompat_v7 is not creating along with the project. Is it normal?
3) When I tried to create a Master flow activity its saying "This template requires a minimum SDK version of at least 11, and the current min version is 8" - How to update the SDK version.
Thanks a lot in advance.
Ok, For point 1 :
Well As i thinks your application Target mode is by default selected as manual.
Select Run Tab in eclipse->Select Run Configurations ->
In that select Target Tab ->Select Automatic instead of manual
Click on Apply button and now hit run.
Now your app doesn't prompt for a device.
For Point 2:
appcompat_v7 is a support library in android, so if you already have this library some where in the workspace then it would not be created each time.
for more see here .
For point 3 :
While creating the new project set the minimum sdk version to 11 in fourth one column from top.
see screen shot for help: (Note this pic only for demo, where to set minimum sdk version)
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="19" />
add that in your manifest for setting min and target sdk
i have installed eclipse and android sdk manager, installed files for android 4.22 in sdk and tried to run a sample android project.. but am getting the following error
[2014-02-06 15:28:08 - myFirstApp] Android Launch!
[2014-02-06 15:28:08 - myFirstApp] adb is running normally.
[2014-02-06 15:28:08 - myFirstApp] Performing com.example.myfirstapp.MainActivity activity launch
[2014-02-06 15:28:08 - myFirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_233'
[2014-02-06 15:28:08 - myFirstApp] Launching a new emulator with Virtual Device 'AVD_233'
[2014-02-06 15:28:17 - Emulator] Failed to allocate memory: 8
[2014-02-06 15:28:17 - Emulator]
[2014-02-06 15:28:17 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2014-02-06 15:28:17 - Emulator] Please contact the application's support team for more information.
i tried the following..
1) accessed C:\Users\user\.android\avd\user.avd\config.ini and changed hw.ramSize=1024MB
2)accessed avd and edited memory optionfrom 1024mb s to 512mb
its still not working... thanks in advance..
Try setting your RAM to 512 MB. It Worked for me..
If it is not working for you, Try reducing your RAM and VM heap further.
First try your emulator with some LDPI models(2.7 inch)..
I just got the bignerdranch android book, and already, I cant get my emulator to work. This is not exclusive to Big Nerd Ranch, since even the default hellworld wont run... I get the following in my console box.
[2013-12-18 13:17:40 - HelloWorld] ------------------------------
[2013-12-18 13:17:40 - HelloWorld] Android Launch!
[2013-12-18 13:17:40 - HelloWorld] adb is running normally.
[2013-12-18 13:17:40 - HelloWorld] Performing com.example.helloworld.HelloActivity activity launch
[2013-12-18 13:17:40 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD
'Nexus_API_17'
[2013-12-18 13:17:40 - HelloWorld] Launching a new emulator with Virtual Device 'Nexus_API_17'
[2013-12-18 13:17:56 - Emulator] creating window 0 0 577 1025
[2013-12-18 13:17:56 - Emulator] eglMakeCurrent failed
[2013-12-18 13:18:23 - Emulator] eglMakeCurrent failed
[2013-12-18 13:18:23 - Emulator] FrameBuffer::post eglMakeCurrent failed
[2013-12-18 13:18:24 - Emulator] eglMakeCurrent failed
[2013-12-18 13:18:24 - Emulator] FrameBuffer::post eglMakeCurrent failed
I have tried redownloading eclipse, I have tried both 32 and 64 bit versions. I have tried making the emulator different rams, different phones, different sdk versions. I have tried running as admin as well. I am out of ideas on what I can do.
PS: I have also scoured the web looking for solutions, and did just try the end ADB task, then relaunch eclipse and try again.. no success
Please checkout how much ram size you define for emulator; it should be greater than or equal to 256MiB. You can also verify this in the logcat files.
FIXED IT! So the way I got it to work for me, and this is simply so that other people can read this in the future if they have the same issue, is:
1) I had to switch to 32bit instead of 64.
2) I had to run the emulator (which still throws errors), and wait for it to load fully.
3) After it loaded fully, I then run the emulator a second time while the first is still opened.
4) I get the following errors:
[2013-12-19 15:20:35 - Emulator] WARNING: Data partition already in use. Changes will
not persist!
[2012-09-02 15:20:35 - Emulator] WARNING: Cache partition already in use. Changes will
not persist!
followed by:
[2013-12-19 15:21:46 - HelloWorld] New emulator found: emulator-5554
[2013-12-19 15:21:46 - HelloWorld] Waiting for HOME ('android.process.acore') to be
launched...
5) Then you close the first emulator and the new one opens and runs the app...
I've been following the instructions found at http://developer.android.com/training/basics/firstapp/running-app.html to run the Hello World app on Eclipse's AVD, but the AVD does not launch and I get the following messages:
[2013-01-20 00:20:59 - MyFirstApp] ------------------------------
[2013-01-20 00:20:59 - MyFirstApp] Android Launch!
[2013-01-20 00:20:59 - MyFirstApp] adb is running normally.
[2013-01-20 00:20:59 - MyFirstApp] Performing com.example.myfirstapp.MainActivity activity launch
[2013-01-20 00:21:00 - MyFirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'TestAVD'
[2013-01-20 00:21:00 - MyFirstApp] Launching a new emulator with Virtual Device 'TestAVD'
[2013-01-20 00:21:48 - Emulator] Failed to create Context 0x3005
[2013-01-20 00:21:48 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2013-01-20 00:21:48 - Emulator] Failed to allocate memory: 8
[2013-01-20 00:21:48 - Emulator]
[2013-01-20 00:21:48 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2013-01-20 00:21:48 - Emulator] Please contact the application's support team for more information.
Also, an error window popped up saying that the ARM emulator exe has stopped working. Any thoughts?
OP of this thread has similar error message,
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer
Hope it helps!
Check 2 things:
That you are using 512MB of RAM (the emulator doesn't work properly
with more)
Try turning 'Host GPU' off
Try running emulator from the command line with GPU option and make sure that it is working or not.
-gpu off
Even if it result into the error, go to the eclipse, Right Click on the project and select run my projects as an "Android application". Emulator should start.
You can also give a try with enabling/disabling GPU emulation option for the selected emulator from the AVD manager.
To enable/disable GPU emulation :
Goto AVD manager -> select android virtual device -> click on Edit ->
Hardware tab -> enable/disable GPU emulation.
Hope it will work.
I got this error when trying to run an emulator with a higher resolution than I had my display set to.
I am beginner android developer:)I dowland android sdk completely from 2.0 version to 4.2.I created a new project and added some buttons,checkboxs then I tried to run my first project and got a error like that:
[2012-12-25 00:09:13 - aaa]
[2012-12-25 00:09:13 - aaa] Android Launch!
[2012-12-25 00:09:13 - aaa] adb is running normally.
[2012-12-25 00:09:13 - aaa] Performing com.example.xxx.MainActivity activity launch
[2012-12-25 00:09:13 - aaa] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_Galaxy_Nexus_by_Google'
[2012-12-25 00:09:13 - aaa] Launching a new emulator with Virtual Device 'AVD_for_Galaxy_Nexus_by_Google'
[2012-12-25 00:09:14 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2012-12-25 00:09:14 - Emulator] WARNING: Cache partition already in use. Changes will not persist!
[2012-12-25 00:09:14 - Emulator] Failed to allocate memory: 8
[2012-12-25 00:09:14 - Emulator]
[2012-12-25 00:09:14 - Emulator] This application has requested the Runtime to terminate it in an unusual way.
[2012-12-25 00:09:14 - Emulator] Please contact the application's support team for more information.
How can I solve this error?
That sometimes happen for specific emulator density settings. Try with a different emulator, tweak its settings until you get it working.
I got same error...
Solution
change hw.ramSize to 1024MB in config.ini file under
$User>.android>avd>name_of_avd> config.ini
It works fine