I am the newest Android Programmer. been trying to launch DEBUG and this is what i am getting
[2014-05-12 23:11:17 - Okija] ------------------------------
[2014-05-12 23:11:17 - Okija] Android Launch!
[2014-05-12 23:11:17 - Okija] adb is running normally.
[2014-05-12 23:11:17 - Okija] Performing com.nwa.okija.MainActivity activity launch
[2014-05-12 23:11:31 - Okija] Uploading Okija.apk onto device 'emulator-5554'
[2014-05-12 23:11:36 - Okija] Installing Okija.apk...
[2014-05-12 23:12:51 - Okija] Installation error: Unknown failure
[2014-05-12 23:12:51 - Okija] Please check logcat output for more details.
[2014-05-12 23:12:53 - Okija] Launch canceled!
1. Please how will i sort this
2. where to locate Logcat and how to understand and solve issues with it
thanks
Okijaamaka said:
I am the newest Android Programmer. been trying to launch DEBUG and this is what i am getting
[2014-05-12 23:11:17 - Okija] ------------------------------
[2014-05-12 23:11:17 - Okija] Android Launch!
[2014-05-12 23:11:17 - Okija] adb is running normally.
[2014-05-12 23:11:17 - Okija] Performing com.nwa.okija.MainActivity activity launch
[2014-05-12 23:11:31 - Okija] Uploading Okija.apk onto device 'emulator-5554'
[2014-05-12 23:11:36 - Okija] Installing Okija.apk...
[2014-05-12 23:12:51 - Okija] Installation error: Unknown failure
[2014-05-12 23:12:51 - Okija] Please check logcat output for more details.
[2014-05-12 23:12:53 - Okija] Launch canceled!
1. Please how will i sort this
2. where to locate Logcat and how to understand and solve issues with it
thanks
Click to expand...
Click to collapse
LOGOUT is in Window -> Show view - > Other ->Logcat.
Paste error from Logcat and then we will figure it out. It's probably something with dependencies. Are you using external libaries?
Android Launch Issue
That is a good place to start viewing the logcat, I honestly stopped using the emulators and just went to testing against my actual device, I suggest testing against as many different android devices as you can get ahold of you'd be surprised with the nuances... Nothing better to simulate the usage then with an actual device, just my two cents...
Related
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...
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.
???
First off i apologise for any newbie questions. I have just acquired an xperia play (first smartphone ) and i have been trying to use sdk to setInstallLocation 2. I have installed sdk the .zip version (unziped to desktop) and installed the sdk platform tools revision 3 plus enabled the google usb driver package. I conect my phone to the pc (in debugging mode) and mount my sd card (so pc companion sees my phone) (also tried unmounted)
My problem is when i try to adb devices in cmd (as admin) the following error appers
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
so i have followed a few tips i have seen when googling the error. So i start the task manager and end the adb.exe process and then when i try again with adb devices now it says
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
** daemon still not runningerror: cannot connect to daemon
but when i installed sdk platform tools revision 3 i noticed when it asked to restart adb that deamon tools was loaded in sdk successfully. Any ideas/help would be greatly appreciated?
Moz
Could you post a screenshot of cmd?
Yeah i tried removing http:// and put spaces every where but it stil realised it was an outside link lol. Anyways i can post it now. So here it is.
After the first fail. I did as i said before ended the task in the task manager and then tried again but got the second error. Even if i run cmd not as admin its still the same
You could post only part of the URL, if you leave out the beginning with "http://www." you should be able to post it. And your next post will be number 8 so you can always edit the post afterwards.
I reinstalled Windows and now Google Android SDK FINALLY works My question is 1) How do I push the APK into the emulator? I try with a real phone (T-Mobile G2X) and it loads, the log looks like this:
[2011-05-18 02:45:49 - Droid1] Android Launch!
[2011-05-18 02:45:49 - Droid1] adb is running normally.
[2011-05-18 02:45:49 - Droid1] Performing com.androidbook.droid1.DroidActivity activity launch
[2011-05-18 02:45:51 - Droid1] Uploading Droid1.apk onto device '0280400342212257'
[2011-05-18 02:45:51 - Droid1] Installing Droid1.apk...
[2011-05-18 02:45:57 - Droid1] Success!
[2011-05-18 02:45:57 - Droid1] Starting activity com.androidbook.droid1.DroidActivity on device 0280400342212257
[2011-05-18 02:45:57 - Droid1] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.androidbook.droid1/.DroidActivity }
[2011-05-18 02:45:59 - Droid1] Attempting to connect debugger to 'com.androidbook.droid1' on port 8602
Great, so uploading the APP to the phone works
However, with the Emulator, this is what I get:
[2011-05-18 02:49:22 - Droid1] Android Launch!
[2011-05-18 02:49:22 - Droid1] adb is running normally.
[2011-05-18 02:49:22 - Droid1] Performing com.androidbook.droid1.DroidActivity activity launch
[2011-05-18 02:49:26 - Droid1] Launching a new emulator with Virtual Device 'CellNock_2.1'
After launching the Emulator it should push the file, it should say "Uploading to ..."
If anybody has experience with this problem I'll really appreciate your help.
Today is my first day programming for Android and I need the whole environment to work in order to do this app
Open Eclipse and look on the toolbar for an android with a blue box with an arrow underneath it. In the virtual device tab, make a new emulator if you don't have one already. After that is done, start the emulator.
After that, you should be able to hit the run button and it should work fine.
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..