Whenever I tried to run any projects from my eclipse following message thrown up in the console window
[2014-07-30 06:32:53 - Project_Name] ------------------------------
[2014-07-30 06:32:53 - Project_Name] Android Launch!
[2014-07-30 06:32:53 - Project_Name] adb is running normally.
[2014-07-30 06:32:53 - Project_Name] Performing com.example.workingver1.HomeScreen activity launch
[2014-07-30 06:32:54 - Project_Name] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_5_4_FWVGA'
[2014-07-30 06:32:54 - Project_Name] Launching a new emulator with Virtual Device 'AVD_for_5_4_FWVGA'
[2014-07-30 06:32:54 - Emulator] unknown option: -dns
[2014-07-30 06:32:54 - Emulator] please use -help for a list of valid options
What could be the problem?
I tried following things but couldn't rectify it.
Clean Project and Run
Tried Windows->preference->launch (Launch Settings)
Delete my existing AVD and Create a new one, that too didn't work
Any suggestions?
in Eclipse
Select Windows -> Preference
Android -> Launch -> Default Emulator Option ->
Paste this: -Dns-server 8.8.8.8,8.8.4.4
than Apply -> OK
clean up your project
check for ANDROID ARM system image is available installed properly
open Android virtual device
check your API levels properly
select Arm
it might be an ARM Ram problem too .. if you use core i3 system processor choose 512 ram in Avd or choose any other emulator with 512 Ram I suggest you to go with android API level 19 or 20 with Android Nexus one Emulator its the better emulator which starts easily.
and
start the emulator launch it
once your Emulator starts running then run your app
Try this,
clean up the project
set the default emulator option in windows
1. preference
2. android
3. launch
Related
I get this error each time while trying to run Android Emulator :
[2014-08-13 16:21:37 - GPSSerialFix] Android Launch!
[2014-08-13 16:21:37 - GPSSerialFix] adb is running normally.
[2014-08-13 16:21:37 - GPSSerialFix] Performing com.keyproj.project.projectname.MainActivity activity launch
[2014-08-13 16:21:37 - GPSSerialFix] Automatic Target Mode: Preferred AVD 'Motorolla' is not available. Launching new emulator.
[2014-08-13 16:21:37 - GPSSerialFix] Launching a new emulator with Virtual Device 'Motorolla'
[2014-08-13 16:21:38 - Emulator] qemu: could not load initrd ''
I tried Restarting but didn't help. Is there anyway I can fix this issue?
Actually I will solve my own issue. So I realized that this issue is because it is trying to emulate ARM processor and no kernel image for that or something like that, so I started to wonder why ARM processor.
Long story short, I had to go back to the Android Virtual Device (AVD) Manager and edit the Android Virtual Device and change CPU/ABI from ARM to Intel Atom (x86) and now the error message is gone and the Android emulation loads.
The standard new app HelloWorld doesn't run as it in the Android emulator.
On Apple Mac, I created an AVD : Nexus7-4.3-JellyBean ( Android 4.3 API 18 , CPU/ABI ARM(armabi-v7a) RAM 343 VM Heap 32 / Storage 200 MiB / SD Card 128 MiB)
then running HelloWorld from Eclipse ADT , I get the following in the console log ( no error stated ...)
[2013-12-07 16:11:22 - HelloWorld] ------------------------------
[2013-12-07 16:11:22 - HelloWorld] Android Launch!
[2013-12-07 16:11:22 - HelloWorld] adb is running normally.
[2013-12-07 16:11:22 - HelloWorld] Performing com.example.helloworld.MainActivity activity launch
[2013-12-07 16:11:22 - HelloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'Nexus7-4.3-JellyBean'
[2013-12-07 16:11:22 - HelloWorld] Launching a new emulator with Virtual Device 'Nexus7-4.3-JellyBean'
The emulator is launched, it displays the Android log, then unlocking it with Fn F2 I get the home page and I can see the list of apps BUT HelloWorld is not there.
Why can't I see any information or at least any error?
Try resetting your adb as explained in
The Console log is not complete yet, after starting the emulator, apk installing will start then launching,
Try to manually start the emulator then run your app and choose the already running emulator and see what happen.
- I wanted to post this as a comment but it takes 50 reputation to do so :)
I was developing my app and everything was OK. I installed ADT - 15.0.0 and installer_r15-windows.exe. After that, when I press Ctrl+F11 my project is uploaded but stayed in installing state without any progress. Why? can anybody help me?
thanks,
[2011-11-05 17:24:31 - order] ------------------------------
[2011-11-05 17:24:31 - order] Android Launch!
[2011-11-05 17:24:31 - order] adb is running normally.
[2011-11-05 17:24:31 - order] Performing org.mabna.order.ui.ActLogin activity launch
[2011-11-05 17:24:31 - order] Automatic Target Mode: using device '380700042ffa097'
[2011-11-05 17:24:31 - order] Uploading order.apk onto device '380700042ffa097'
[2011-11-05 17:24:33 - order] Installing order.apk...
[2011-11-05 17:24:31 - order] Automatic Target Mode: using device '380700042ffa097'
According to this line from the console log that you provided, this is not an emulator, this is an actual device. If you are trying to deploy to a device, make sure you have the right adb driver installed, if you are trying to deploy to an emulator create an AVD using the AVD manager.
launch an emulator first, or better yet, disconnect your android device if you want to launch your app in an emulator. eclipse should launch the correct emulator for you (assuming you created a compatible one already)
I updated eclipse and the problem solved.
I am trying to learn about Android development. I have installed Eclipse (3.6.2) the ADT plugin (10.0.1) and the Android SDK (r11 off the official site) all are installed as 32 bit but my OS is Windows 7 64-bit.
What happens is I run my app (HelloAndroid) and the emulator and I see the main wallpaper screen but then then nothing happens! I have looked on the emulator for the app and cannot find it anywhere.
My console output is shown below...
[2011-05-20 19:14:20 - HelloAndroid] ------------------------------
[2011-05-20 19:14:20 - HelloAndroid] Android Launch!
[2011-05-20 19:14:20 - HelloAndroid] adb is running normally.
[2011-05-20 19:14:20 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2011-05-20 19:14:20 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'Android2.1'
[2011-05-20 19:14:20 - HelloAndroid] Launching a new emulator with Virtual Device 'Android2.1'
My AVD (Android Virtual Device) is set up as the tutorial suggests and the target is Android2.1-update1-API Level 7.
I have installed this app on my phone (HTC Hero, Android 2.1) and it works fine, but before I try and write other applications I need to get the emulator working, has anyone encountered this issue before?
I have looked online and cannot find a solution that solves my problem.
Thanks for your help in advance.
You can use adb to install your app. Find the bin directory in your eclipse workspace. There should be a YOUR_PROJECT_NAME.apk file there. To install it, from the command line, run:
adb install -r YOUR_PROJECT_NAME.apk
You will need adb in your path.
Start the emulator, switch to the logcat view in Eclipse (Window -> show view -> other ... -> logcat).
Clear the console output for logcat.
Try to deploy your application.
What does the output in logcat say? Does it display an error message?
I am a beginner android developer and I had followed the instructions in the Quick Start and SDK Setup. After following all the steps I attempted to run the Hello World sample application and when I run the project, I get the standard "emulator.exe has encountered a problem and needs to close." box. I tried running the avd that I created in the AVD manager with the same results. I also tried running the AVD from the command line, using "emulator.exe #my_avd". I've tried 2.1 and 2.2 platforms. I using Eclipse 3.5 SR2 with the android plug-in. I am running Windows XP SP3, 512MB RAM, Intel Core 2 Quad on a virtual machine using VM-Ware. My machine running the virtual machine has the 3GB max ram for a 32-bit machine.
Thanks in Advance,
Mark
In response to comments:
Android console says:
[2010-07-29 10:39:20 - HelloAndroid] ------------------------------
[2010-07-29 10:39:20 - HelloAndroid] Android Launch!
[2010-07-29 10:39:20 - HelloAndroid] adb is running normally.
[2010-07-29 10:39:20 - HelloAndroid] Performing odog.andriod.example.helloandroid.HelloAndriod activity launch
[2010-07-29 10:39:20 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2010-07-29 10:39:20 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
DDMS console says nothing.
I have not tried to run the emulator on the physical machine. I'm trying to keep the Android development machine "clean". My physical machine has Visual Studio 2010, 2008, 6, Windows Platform SDKs, DirectX SDKs of various versions as well as various versions of Eclipse for micro-controller and BlackBerry programming. Little mucky .... needs to be formatted.
It seems deleting and reinstalling all the packages in the Android SDK and AVD Manager worked. Thanks for interest.