Hi all,
How to rectify this error. i have error message when i run android application
Android Launch!
adb is running normally.
Performing com.blutoothapplication.blutoothapplication activity launch
Automatic Target Mode: Preferred AVD 'wirelesssdandroid' is not available. Launching new emulator.
Launching a new emulator with Virtual Device 'wirelesssdandroid'
New emulator found: emulator-5554
Waiting for HOME ('android.process.acore') to be launched...
emulator-5554 disconnected! Cancelling 'com.blutoothapplication.blutoothapplication activity launch'!
Sometimes its running good and sometimes its shows an error...
So I decided to learn how to develop on the android platform and after installing everything I tried the helloandroid example from the android developers page and when I clicked run, the emulator window came up but then my computer started making a really weird noise like clicking and the emulator just froze while everyting else was working fine.... I tried to force close the emulator buti could not close it and the noise would not stop......please help ....thanks
edit: I tried starting the emulator through sdk manager and it began to start and then the noise started again.
have you tried connecting an android phone and using adb instead? The emulator can be pretty taxing on your system. Maybe something isn't compatible with your hardware.
Hi everyone,
I have a problem with Eclipse. I'm just starting out with Android development. I downloaded Eclipse with the ADT Plugin like it says on the Android dev site.
I managed to complete two tutorials, the hello world and layouts ones. They compiled and are now on my phone as normal applications.
However for some reason I can no longer do this, when I go to run the program I get this error from the console:
Code:
2010-12-10 16:06:21 - HelloL10N Android Launch!
2010-12-10 16:06:21 - HelloL10N adb is running normally.
2010-12-10 16:06:21 - HelloL10N Performing com.example.hellol10n.HelloL10N activity launch
2010-12-10 16:06:21 - HelloL10N Automatic Target Mode: using device 'HT03KPL01672'
2010-12-10 16:06:21 - HelloL10N Uploading HelloL10N.apk onto device 'HT03KPL01672'
2010-12-10 16:06:21 - HelloL10N Installing HelloL10N.apk...
2010-12-10 16:06:21 - HelloL10N Installation error: INSTALL_FAILED_MEDIA_UNAVAILABLE
2010-12-10 16:06:21 - HelloL10N Please check logcat output for more details.
2010-12-10 16:06:21 - HelloL10N Launch canceled!
I assume it's related to my phone (HTC Desire rooted with LeeDroid 2.2d) being plugged in. The emulator just doesn't work for me so I tried using my phone instead. I'd rather use my phone anyway for now.
I've tried re-installing Eclipse, to no avail.
When I plug my phone in and select disk drive, my computer comes up with a prompt something akin to 'scan and fix', does that mean there's a problem? I got the two previous apps to work fine on it.
Although I did the check disk scan, it completed fine and I still get the error.
Does anyone have any ideas on how to fix this?
I tried changing the connection type to 'charge only' and it worked... Strange. That shouldn't happen, right? I had it on 'disk drive' for the other projects.
i'm stuck at trying to get HelloWorld to show up in the emulator. No app installs on the emulator? Any ideas?
i'm stuck at trying to get HelloWorld to show up in the emulator. No app installs on the emulator? Any ideas?
Click to expand...
Click to collapse
What says the log output after clicking the Run Button in Eclipse.
Switch to the DDMS perspective in Eclipse and click on the tab "Console".
A normal output after clicking on the "Run Button" is something like this:
Code:
[2010-12-19 12:37:38 - adb is running normally.
[2010-12-19 12:37:38 - YourTemplate] Performing eu.sample.android.sample.MainMenu activity launch
[2010-12-19 12:37:39 - YourTemplate] Uploading YourTemplate.apk onto device 'emulator-5554'
[2010-12-19 12:38:15 - YourTemplate] Installing YourTemplate.apk...
[2010-12-19 12:38:19 - YourTemplate] Success!
[2010-12-19 12:38:19 - YourTemplate] Starting activity eu.sample.android.sample.MainMenu on device emulator-5554
[2010-12-19 12:38:21 - YourTemplate] ActivityManager: Starting: Intent
This is what I get when I run the program.
Code:
[2010-12-20 21:50:43 - HelloAndroid] ------------------------------
[2010-12-20 21:50:43 - HelloAndroid] Android Launch!
[2010-12-20 21:50:43 - HelloAndroid] adb is running normally.
[2010-12-20 21:50:43 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2010-12-20 21:50:43 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2010-12-20 21:50:43 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
Here's the code. I tend to type out code instead of copy-paste since I like to get a grasp on the code itself.
Code:
package com.example.helloandroid;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
}
}
Also how do you change to DDMS perspective? I'm not all too familiar with eclipse and it's intricacies. I've used it before but since I'm working with android it's all a little new and it's been prob over a year since i've coded anything. lol.
EDIT: Good old googleing solved that ddms issue. although other issue still stands. cheers
I'm slowly going through this tute.
HTML:
http://www.vogella.de/articles/Android/article.html#overview
has anyone else gone though this? is it any good or does anyone know of any other tute that will set me on the right track???
I am not the sharpest tool in the shed guys, but here is my 2 cents
When I started (a very short time ago, and before the eclipse upgrade recently) I had to go into my SDK Manager and create AVD's that I wanted to use.
My Eclipses never...ever...launched an AVD by itself, I had to create one, then start it, then click my run button in Eclipse and off I went.
After the Eclipse upgrade, I still have to Start my AVD myself, but now it tells me there is no AVD...etc..blah...I click the "no" option and it brings up a window showing me available AVD's and I select the one I have running. It's an extra step, but I really don't care because I can still run everything I need on my emulators.
all the best
thanks luvinandroid i've given that a go. it don't seem to rectify my issue of my app not showing up in the emu.
i've still been following that tute from my previous post and gotten up to running it. but still no avail. maybe i've set eclipse and android incorrectly. i've chosen to dev with 2.2 since that what is running on my sgs.
i'm kinda lost since i've used two different references in setting eclipse and android.
???
Hi Guys,
I'm trying to start some Android development however I've run into a couple of problems during Dev environment set up. I've been following the adt-bundle install instructions as I opted to use the ADT bundle.
This first problem is that the Android Virtual Device Manager will not run. I get a message saying "Failed to execute tools\android.bat The system cannot find the specified file". No idea what to do about that one.
The second is that I cannot run my app. I'm trying to run it on my phone (HTC Desire C) how I keep getting the message :
Code:
[2013-07-13 07:33:37 - MyFirstApp] ------------------------------
[2013-07-13 07:33:37 - MyFirstApp] Android Launch!
[2013-07-13 07:33:37 - MyFirstApp] The connection to adb is down, and a severe error has occured.
[2013-07-13 07:33:37 - MyFirstApp] You must restart adb and Eclipse.
[2013-07-13 07:33:37 - MyFirstApp] Please ensure that adb is correctly located at 'C:\Program Files\adt-bundle-windows-x86_64-20130522\sdk\platform-tools\adb.exe' and can be executed.
I've tried resetting adb via command prompt using adb kill-server and then restarting using adb devices and checking that a device is connected however it doesn't seem to make a difference.
I've also tried connecting my N7 tablet up and install the usb drives in the sdk and I get the same errors
It's incredibly frustrating and I would really appreciate some guidance.
Thanks in advance
Samishal
[2013-07-13 07:33:37 - MyFirstApp] Please ensure that adb is correctly located at 'C:\Program Files\adt-bundle-windows-x86_64-20130522\sdk\platform-tools\adb.exe' and can be executed.
is your adb there? and is it executable? (are you running as admin?)
I have also got same error AVD error.. ihad solved it by opening this file "C:\android\sdk\tools\android.bat" and updating its component..
when im click Run and then choose some Virtual Device the emulator doesnt show up, i did configuire AVD and there is no error... here is my log event:
10:52:40 Gradle build finished in 2 sec
C:\Users\AM\Documents\android-studio\sdk\tools\emulator.exe -avd Nexus_7_2012_API_21 -netspeed full -netdelay none
im waiting for like 10 minutes and still nothing
Sorry for misunderstanding.I noticed it later that your emulator even does not shows.If you still have error than look at idea log .In windows you can find it in C:\Users\<User Name>\.AndroidStudio\system\log\idea.log . Delete it,restart studio and produce the problem then close studio. It will be smaller this time.Open the log in notepad and look which error comes after launching emulator.I hope that you will find there what is preventing the emulator from launching or upload your idea.log.
Can you launch an emulator instance from the AVD manager?
Try launch it from AVD. It is under Tools > Android > AVD Manager