I was using android API 10 2.3.3 for making my application before. It was working fine. Then i converted my code to API 7 2.2.1. Now whenever i try to run the code, the virtual emulator doesn't show itself. Any ideas why this is happening?
[2012-02-29 08:57:38 - MyApp] ------------------------------
[2012-02-29 08:57:38 - MyApp] Android Launch!
[2012-02-29 08:57:38 - MyApp] adb is running normally.
[2012-02-29 08:57:38 - MyApp] Performing com.kahaf.MyApp.MyAppActivity activity launch
[2012-02-29 08:57:38 - MyApp] Automatic Target Mode: using device 'TA18801WF4'
[2012-02-29 08:57:38 - MyApp] Uploading MyApp.apk onto device 'TA18801WF4'
[2012-02-29 08:57:39 - MyApp] Installing MyApp.apk...
[2012-02-29 08:58:25 - MyApp] Success!
[2012-02-29 08:58:26 - MyApp] Starting activity com.kahaf.MyApp.MyAppActivity on device TA18801WF4
[2012-02-29 08:58:30 - MyApp] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.kahaf.MyApp/.MyAppActivity }
[2012-02-29 08:58:31 - MyApp] Attempting to connect debugger to 'com.kahaf.MyApp' on port 8622
i have tried connecting my droid too but it won't show anything either.
As per the Console info you have posted.. Looks like the app is being installed on the device rather than emulator..
As a suggestion, Go to Run Configuration and set the target as manual and then try selecting the emulator from the list.
Remove your device and run again. if that is not working try restarting eclipse.
Related
I have installed the ADT 23.04 plugin into my eclipse and Android SDK of the same version.
I am able to successfully start the AVD but when I try start the AVD a black black screen appears without and remains for many minutes without anything happening and then when I try to run the project on the AVD,I get the following error log:
[2014-12-15 23:05:53 - MyApp] ------------------------------
[2014-12-15 23:05:54 - MyApp] Android Launch!
[2014-12-15 23:05:54 - MyApp] adb is running normally.
[2014-12-15 23:05:54 - MyApp] Performing com.example.myapp.ExampleActivity activity launch
[2014-12-15 23:05:54 - MyApp] Automatic Target Mode: Preferred AVD 'Myavd2' is available on emulator 'emulator-5554'
[2014-12-15 23:05:54 - MyApp] Uploading MyApp.apk onto device 'emulator-5554'
[2014-12-15 23:05:56 - MyApp] Installing MyApp.apk...
[2014-12-15 23:06:05 - MyApp] Installation error: Unknown failure
[2014-12-15 23:06:05 - MyApp] Please check logcat output for more details.
[2014-12-15 23:06:06 - MyApp] Launch canceled!
Below is the screenshot of the AVD:
Below is the screenshot of the SDK manager:
Could someone guide me on this issue?
You have selected the Nexus-5 phone resolution for the emulator with Android-TV system-image.
So, you need to select the corresponding resolution for Android TV in Device.
Also, select the dynamic-hardware-control in Skin.
I'm using the Android Emulator and the Eclipse ADT. Something odd keeps happening. About 10% of the times I try running the app, it uploads the app to the emulator, installs it, gets success and says starting activity on emulator, but I don't get this line
ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
then nothing else happens and the app doesn't start. Then I just run the app again, it says already installed and it runs perfectly. This happens occasionally, but of course it doesn't cause me any problems, I simply run it again and it works, but I was wondering if this happens to others as well? Is there any solution?
Below is what appears in the console for a fail app launch and a following successful launch, as you can see the Starting Intent line is missing in the first and present in the second.
[2014-06-05 14:38:13 - TradeApp] ------------------------------
[2014-06-05 14:38:13 - TradeApp] Android Launch!
[2014-06-05 14:38:13 - TradeApp] adb is running normally.
[2014-06-05 14:38:13 - TradeApp] Performing com.example.tradeapp.MainActivity activity launch
[2014-06-05 14:38:13 - TradeApp] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'GoogleAPI_4.4.2'
[2014-06-05 14:38:13 - TradeApp] Uploading TradeApp.apk onto device 'emulator-5554'
[2014-06-05 14:38:17 - TradeApp] Installing TradeApp.apk...
[2014-06-05 14:38:35 - TradeApp] Success!
[2014-06-05 14:38:36 - TradeApp] Starting activity com.example.tradeapp.MainActivity on device emulator-5554
[2014-06-05 14:44:06 - TradeApp] ------------------------------
[2014-06-05 14:44:06 - TradeApp] Android Launch!
[2014-06-05 14:44:06 - TradeApp] adb is running normally.
[2014-06-05 14:44:06 - TradeApp] Performing com.example.tradeapp.MainActivity activity launch
[2014-06-05 14:44:06 - TradeApp] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'GoogleAPI_4.4.2'
[2014-06-05 14:44:09 - TradeApp] Application already deployed. No need to reinstall.
[2014-06-05 14:44:09 - TradeApp] Starting activity com.example.tradeapp.MainActivity on device emulator-5554
[2014-06-05 14:44:11 - TradeApp] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.tradeapp/.MainActivity }
yes some times aplication dont start this problam when come android ddms have error or emulator is timeout when start application
try use lower API for emulator
I have not managed to install or debug an app made by me.
1.- I was unable to compile my app so I updated all packages with all the versions on them. That worked.(My app does not have errors anymore.)
2.- I tried to debug it with some virtual devices I created (and deleted several times) and get the error in console(I tried all the answers given to this, like restarting and adding time to the timeout, and all the stuff posted on similar questions):
[2014-03-06 09:46:31 - MainActivity] Launching a new emulator with Virtual Device 'android_2.2'
[2014-03-06 09:46:35 - MainActivity] New emulator found: emulator-5554
[2014-03-06 09:46:35 - MainActivity] Waiting for HOME ('android.process.acore') to be launched...
[2014-03-06 09:46:54 - MainActivity] WARNING: Application does not specify an API level requirement!
[2014-03-06 09:46:54 - MainActivity] Device API version is 8 (Android 2.2)
[2014-03-06 09:46:54 - MainActivity] HOME is up on device 'emulator-5554'
[2014-03-06 09:46:54 - MainActivity] Uploading MainActivity.apk onto device 'emulator-5554'
[2014-03-06 09:46:54 - MainActivity] Installing MainActivity.apk...
[2014-03-06 09:49:02 - MainActivity] Failed to install MainActivity.apk on device 'emulator-5554!
[2014-03-06 09:49:02 - MainActivity] (null)
[2014-03-06 09:49:02 - MainActivity] Launch canceled!
3.- I tried to push the file to the virtual device, that did not worked.
4.- After that I opted for using a real device. Here is the error:
[2014-03-06 10:09:14 - MainActivity] Android Launch!
[2014-03-06 10:09:14 - MainActivity] adb is running normally.
[2014-03-06 10:09:14 - MainActivity] Performing *.MainActivity activity launch
[2014-03-06 10:09:23 - MainActivity] WARNING: Application does not specify an API level requirement!
[2014-03-06 10:09:23 - MainActivity] Device API version is 16 (Android 4.1.2)
[2014-03-06 10:09:23 - MainActivity] Uploading MainActivity.apk onto device '****************'
[2014-03-06 10:09:23 - MainActivity] Installing MainActivity.apk...
[2014-03-06 10:09:24 - MainActivity] Installation failed due to invalid APK file!
[2014-03-06 10:09:24 - MainActivity] Please check logcat output for more details.
[2014-03-06 10:09:24 - MainActivity] Launch canceled!
5.- My last resource push the .apk file to real device. The file was transferred ok, but when I try to install it, I get this:
PARSER ERROR
There was a problem parsing the package.
My questions are, What am i doing wrong? or Is there some kind of execution time error, i am not getting?
WARNING: Application does not specify an API level requirement!
In AdnroidManifest what sdk u use
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="19" />
I'm trying to make my app switch between two activities with buttons. The first activity comes up and I can click on the button, but then a notification pops up that says "Unfortunately, projectname has stopped."
This is the error that comes up on the console:
[2012-10-18 09:54:46 - gridlayout_v7] Could not find gridlayout_v7.apk!
This is what the rest of the console posts:
[2012-10-18 09:54:38 - PersonalLibrary] Android Launch!
[2012-10-18 09:54:38 - PersonalLibrary] adb is running normally.
[2012-10-18 09:54:38 - PersonalLibrary] Performing com.balaka.personallibrary.LibraryMenu activity launch
[2012-10-18 09:54:38 - PersonalLibrary] Automatic Target Mode: Preferred AVD 'test' is available on emulator 'emulator-5554'
[2012-10-18 09:54:38 - PersonalLibrary] Uploading PersonalLibrary.apk onto device 'emulator-5554'
[2012-10-18 09:54:39 - PersonalLibrary] Installing PersonalLibrary.apk...
[2012-10-18 09:54:46 - PersonalLibrary] Success!
[2012-10-18 09:54:46 - gridlayout_v7] Could not find gridlayout_v7.apk!
[2012-10-18 09:54:46 - PersonalLibrary] Starting activity com.balaka.personallibrary.LibraryMenu on device emulator-5554
[2012-10-18 09:54:48 - PersonalLibrary] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.balaka.personallibrary/.LibraryMenu }
I've tried to find answers others places online but there is no mention of the file.
According to this answer, you need to remove the project dependency to gridlayout_v7 and add the dependency to gridlayout_v7 as an "Android" dependency in project properties. That solved the problem for me.
I'm an android newbie having a lot of troubles with the android emulator. I have inconsistent luck in starting up the emulator, and no luck if I start it from within eclipse instead of from the commandline (it waits forever and never boots -- not even after 24 hours).
However, since I figured out how to get it to (sometimes!) start from the command line, I have a workaround to that particular problem. But I have no workaround for my latest problem. When I try to run it:
[2010-08-09 22:08:12 - MyApp] ------------------------------
[2010-08-09 22:08:12 - MyApp] Android Launch!
[2010-08-09 22:08:12 - MyApp] adb is running normally.
[2010-08-09 22:08:12 - MyApp] Performing com.android.MyApp.MyApp activity launch
[2010-08-09 22:08:12 - MyApp] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'TestDroid'
[2010-08-09 22:08:12 - MyApp] WARNING: Application does not specify an API level requirement!
[2010-08-09 22:08:12 - MyApp] Device API version is 8 (Android 2.2)
[2010-08-09 22:08:14 - MyApp] Uploading MyApp.apk onto device 'emulator-5554'
[2010-08-09 22:08:14 - MyApp] Installing MyApp.apk...
[2010-08-09 22:08:15 - MyApp] Success!
[2010-08-09 22:08:15 - MyApp] Starting activity com.android.MyApp.MyApp on device
But nothing starts on my android instance. MyApp doesn't even show up on the app list.
I assume I'm doing something wrong?
Try looking at the adb logcat output, it might show some errors. Also, does your app specify a launcher Activity?
I think I may have fixed this by (possibly) resolving my emulator startup bug.