I was able to debug my Android application on two different computers, but have not done so for some time. Yesday, I attempted to debug my Android application on both of these computers but was not able to.
My device is listed when I use the command "adb devices".
My device is a Samsung S II LTE, but the o/s version has changed. When everything was working it was Android 4.0.3, now it is 4.0.4.
My device does appear in the Eclipse "Android Device Chooser" > "Choose a running Android device", but the "Debug" column is blank, and if I try to debug using that entry, my application is installed into the device and excuted, but not debugged.
Yes, I have explicitly specified "Debuggable" in the application manifest, although it should not actually be required.
I tried installing the latest version of Kies (and the USB drives that come with it).
I tried installing the USB drivers directly from Samsung.
Yes, "Settings" > "Developer options" > "USB debugging" is checked.
However, all of these efforts did not make Eclipse / Samsung Android S II LTE (4.0.4) debugging possible. I also noticed that there is an SDK for Android 4.0.3, but not for Android 4.0.4.
Is my inability to debug my application due to the Android 4.0.4. SDK not being available?
Better yet... is it possible for me to debug my application on my device again and if so, how do I go about it?
Many thanks to anyone that can help me!
Your problem doesn't sound too bad. Make sure you've updated Eclipse and your SDKs/tools. Make sure you've turned your phone off and on.
You should first try debugging a new empty Android project. Does that work?
Can you access logcat through DDMS? If not, can you run and access logcat through the command-line (without going through Eclipse)?
Did you set some breakpoints? From your project, did you right-click on it, and select Debug as Android Application?
Your problem is that windows doesn't recognise your device.
I recommend you to install the right driver for you samsung galaxy SII Or you can install Samsung Kies wich comes with a set of driver that should work for your Android developments.
Related
Genymotion and the Android emulators weren't working, so I decided to use a physical device to test apps. I have a Windows Laptop (Lenovo). I have a Samsung Galaxy S Lite, and I think I did the right things (Checked USB debugging on phone, downloaded necessary driver, plugged phone in to computer), and when I run my app in Studio, my phone shows up. However, when I select it and press "OK", nothing happens on my phone. What am I doing wrong?
if you want to run your application in samsung you have to install KIES software in your PC. you can download latest software from here
I figured what was going on - I was getting an error, and I didn't see it! I simply remade the project and made sure the package name had no capital letters, and it ran perfectly!
I'm running a small android project on eclipse ADT bundle.
When I debug it on my SGS1 phone it works fine.
However, when trying to debug it on a new SGS3 device,
the device is not shown on the targets devices and I can't debug it.
I've already enabled USB debugging on the device,
And installed Keis and the device driver (for windows 7, 64 bit), And restarted the computer.
Funny thing is, when I run the debugger in eclipse,
it does run the application on the phone, it just doesn't recognize it
(and of course debug breakpoints are useless in this mode).
Would appreicate any help- thanks.
This is a driver issue. Try this. Did not work, install alternative drivers.
You seem to have already tried Kies: try installing drivers separately(ref):
Go to the Samsung Mobile site
Search for your phone using the search
box.
Once you find your phone, click Support in the top right of the
phone's product page.
In the list of downloads, download and install
the USB Driver.
If that still does not work try Universal Naked Driver and/or Universal ADB Driver.
I am having trouble debugging my android app on my phone. My Phone is an LG Optimus G running on android version 4.0.4. Everywhere says to update the driver, but when I do that, my computer doesn't recognize it. I have android ADT installed with SDK versions 4.2, 4.0.3, 2.3.3, and 2.2. I think it might be the fact that my phone is a 4.0.4 and not 4.0.3. And I have USB debugging enabled on my phone. The emulator is just to choppy and laggy to debug on. And one more thing, I have tried debugging already and it has not found the device, although i can find all of the files and pictures on File Explorer. Please help.
If you are on Windows I suggest you try downloading PdaNet http://pdanet.co/, this app is used to share Internet from your android phone to your PC, BUT ALSO helps you install the correct drivers for your Android.
I've found that using this program is the most simple way to get most Android phones working on Windows, plus if you don't want the software you can just uninstall it and the drivers will be kept.
I want to debug Android app on Samsung gts5360 device via Windows 7. USB debugging on Android side is enabled, but device is not showing in Eclipse when connected. I had no such problems in Ubuntu.
So please suggest me how to debug apps on Android device via Window 7?
Try resetting the adb. I usually run Dalvik Debug Monitor in the background when using connected devices, so I can verify that the AVD and/or devices really are registered. You'll find this tool in C:\Program Files (x86)\android-sdk\tools or wherever you have your Android SDK installed. It's called ddms.exe.
If you don't see your device there, go to the menu Actions --> Reset asb. Now, all AVDs and devices should popup, and it will be available in Eclipse. At least, this works for me.
I have a Sony Ericsson Xperia Mini device which I use to test android app development. Earlier it is working fine if I run any project from Eclipse as Android App. I can select the device and run the program in that device. But after formatting I reinstall all the systems(e.g. eclipse, ADT plug in, driver of the device), but when I try to run the program, it is telling 'No compatible targets found', although I have connected the device properly. Actually the eclipse-ADT plug in system not all getting the device. What may cause this problem?
Try to re-install your mobile's drivers..
It is due to setting in the device...non-market app and USB debugging should be allowed.