I am a newbie to Android. I have started developing my first application following this tutorial. I know the document is self-explanatory. But, I am out of the way somewhere.
I have connected my Mobile to my laptop through a USB cable, and My OS is Windows. When I try to run my application(I mean the basic application) as an Android Application option from Eclipse. Initially, I am facing a Confirmation box titled : Android AVD Error, as shown below.
As I certainly, don't want to create a virtual device, I have selected No and below is the output.
[2014-09-12 22:50:41 - SRK] ------------------------------
[2014-09-12 22:50:41 - SRK] Android Launch!
[2014-09-12 22:50:41 - SRK] adb is running normally.
[2014-09-12 22:50:41 - SRK] Performing com.srk.main.MainActivity activity launch
[2014-09-12 22:50:41 - SRK] Failed to find an AVD compatible with target 'Android 4.4W'.
[2014-09-12 22:50:43 - SRK] Performing com.srk.main.MainActivity activity launch
[2014-09-12 22:50:48 - SRK] Launch canceled!
I would like to see it run on my mobile. I am trying to run it on Mobile of make MOTOG
You have to install the driver for your specific device and enable USB debugging mode in your phone's settings under developer options.
Download moborobo from the link :
http://mobomarket.moborobo.com/m/android2/
No matter what device you are using just plug your device it will automatically detect your device.
Download moborobo from the link :
http://mobomarket.moborobo.com/m/android2/
No matter what device you are using just plug your device it will automatically detect your device.
Note:- enable debugging mode from developer option
Related
I am trying to run android app, I get below error messages.
[2014-06-25 15:52:50 - XYZ_project] ------------------------------
[2014-06-25 15:52:50 - XYZ_project] Android Launch!
[2014-06-25 15:52:50 - XYZ_project] adb is running normally.
[2014-06-25 15:52:50 - XYZ_project] Performing com.activity.XYZ_project.Splash activity launch
[2014-06-25 15:52:50 - XYZ_project] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2014-06-25 15:53:35 - XYZ_project] Uploading XYZ_project.apk onto device '1B4396DD05B5FD93'
[2014-06-25 15:55:05 - XYZ_project] Installing XYZ_project.apk...
[2014-06-25 15:57:07 - XYZ_project] Failed to install XYZ_project.apk on device '1B4396DD05B5FD93!
[2014-06-25 15:57:07 - XYZ_project] (null)
[2014-06-25 15:57:07 - XYZ_project] Launch canceled!
can anyone help me with this?
EDIT 1
App gets installed on the phone, but I get above message in the logcat. is this due to less phone memory?
This could cause of some connection problems with pc. Even if the phone is detected, it might be that the connection failed during installing. It needs only a millisecond to break the connection. Possible solution:
Change the usb port( donĀ“t use 3.0 USB Ports)
Change usb cable
clean the usb connector box on Your phone. Maybe there is some dirt in it
Change the connection timeout to a longer time. Change it with: Window-> Preferences -> Android -> DDMS -> ADB Connection Timeout (ms)
Did you using emulator or real device for installation?
If real device, please check the drivers installed correctly and you must installed Google usb driver on sdk manager.
If you're on emulator increase adb device timeout to just 10000ms.
What I did was -
1) Remove the USB cable.
2) Attach the USB cable again.
3) Wait for device being connected to PC.
4) Run android application.
when looking into phonegap testing previously (I've looked into it and then got sidetracked for a year and now looking again) using my HTC Desire, I simply connected my device, clicked run as android in eclipse and then it would automatically run the app through my device.
But when trying on my new phone (SGS3),i get
[2012-11-27 07:48:18 - name] Android Launch!
[2012-11-27 07:48:18 - name] adb is running normally.
[2012-11-27 07:48:18 - name] Performing com.thing.name.name activity launch
[2012-11-27 07:48:18 - name] No active compatible AVD's or devices found. Relaunch this configuration after connecting a device or starting an AVD.
I have installed all drivers I can think of, even installed Kies and AllShare in case they came with any additional drivers but still the same thing.
Has anyone else come across this or know how to fix?
regards
Search for Developer Options and enable USB Debugging and also make sure Unknown Sources is activated unless you already did.
Android 4.2
To make the developer options appaear in Android 4.2 you have to go to menu "About Telephone" and hammer on the build number a couple of times, till a toast tells you you are developer now.
In addition to #dan's answer, you need to make sure the device is in USB MTP mode. (not Camera USB mode.)
I am developing an android app using Eclipse. All has been going well until I tried to deploy it to my device last night. When I clicked Run, I was presented with the following:
[2012-04-26 09:00:52 - Unicyclist] Android Launch!
[2012-04-26 09:00:52 - Unicyclist] adb is running normally.
[2012-04-26 09:00:52 - Unicyclist] Performing com.unicycle.UnicyclistActivity activity launch
[2012-04-26 09:00:52 - Unicyclist] Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
[2012-04-26 09:01:05 - Unicyclist] Uploading Unicyclist.apk onto device 'SH0AZR805746'
[2012-04-26 09:01:05 - Unicyclist] Failed to install Unicyclist.apk on device 'SH0AZR805746': No such file or directory
[2012-04-26 09:01:05 - Unicyclist] com.android.ddmlib.SyncException: No such file or directory
[2012-04-26 09:01:05 - Unicyclist] Launch canceled!
It sounds like the directory it is attempting to install to on the phone is missing. Or perhaps it's a directory on my computer? I can't find anything on this by searching, and I'm not sure how to debug this.
This is a phone, not a virtual device.
The phone is running cyanogenmod, not stock.
A bunch of apps updated last night (related?) I re-imaged the phone from a backup, and the app deployed correctly. Then I updated the apps that had changed since last backup, and left it overnight. This morning, it won't deploy again (same problem)
The app launches fine on
another tablet, and fine in a virtual device
My dev environment is in a dropbox folder, if that makes any difference. I switch between developing on a windows and 2 linux computers.
Same problem occurs on both linux computers with this phone (haven't tried windows yet)
The problem is that Eclipse is not capable of finding your apk file. Just try build clean. Here is another similar question.
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 have android application that I need to debug using eclipse. When I right click on the project and say debug as Android Application the application doesnt get installed.
See the logs and details below:
[2011-11-03 20:08:20 - Test1] Android Launch!
[2011-11-03 20:08:20 - Test1] adb is running normally.
[2011-11-03 20:08:20 - Test1] Performing com.fib.test.Test1Activity activity launch
[2011-11-03 20:08:20 - Test1] Automatic Target Mode: using device 'XXXXXXXXXXXXXX'
[2011-11-03 20:08:20 - Test1] Uploading Test1.apk onto device 'XXXXXXXXXXXXXX'
[2011-11-03 20:08:20 - Test1] Installing Test1.apk...
Details:
OS: Ubuntu
Android Developement Tools: version 14.0
Debug mode is enabled on the device. This used to work a few days back. It stopped working recently.
try restarting the adb connection and sometimes your phone.
Check if it helps to uninstall the app manually from the phone first.
first try:
adb devices
to see if the device is present (even is connected with cable it might not be 'connected')
other thing you can do is
adb stop
and afftet that
adb start
this will restart , and I think will work fine after that
Upgraded my eclipse to Helios and re-installed the ADT plugin. It works fine now.