Debugging android app on device wont work - android

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.

Related

Android Studio not showing connected physical device

I am using the latest version of Android Studio(2.1.2) at the time of writing this post . The problem that I am experiencing is that the ADB instance used by Android Studio doesn't seem to be able to find my Galaxy Core Prime device (SM-G361F, stock Android version - 5.1.1). It can connect to an emulator just fine.
What I had tried (most of these multiple times):
enabling/disabling developer options
enabling/disabling USB debugging
revoking USB debugging authorization
changing MTP to PTP and vice versa (my device doesn't allow deselecting both options, one must be chosen)
reinstalling the drivers
powering on and off both the phone and the PC
installing Samsung's Smart Switch software
using different USB ports
trying out different Android Studio versions (x86 and x64 with the latest respective JDKs)
This is what it looks like in Android Studio:
I had installed the official Samsung's USB drivers from here.
This is what the Device Manager is showing (Windows 7 64-bit SP1):
Afterwards, I've also tried installing the Universal USB drivers from here.
This is what firing up its installation of ADB looks like:
It has obviously successfully found the device.
My device also politely prompted me to allow the PC to connect to it using a generated RSA key which never happened with Android Studio.
The only thing I've not tried is installing Samsung's Kies software.
I really don't know what is the problem here.
Maybe I should just give up and instead use the emulator but it is a damn shame not to be able to debug on an actual physical device, if you ask me.
Thank you in advance.
Android in general does not support all phones for a debug connection. I have a samsung s6 and for me that works. I don't know about the Core Prime though. However, in most cases(in my experience):
The phone does not support the connection
You did not install all the required files in terms of the android SDK you might have not gotten the latest update that supports more phones
The OS is not supported - Mainly caused because Samsung and a lot of other brands insist on having their own updates. And some times they - on purpose or by accident - forget to support USB debugging for developers.
My tablet did not support the USB debugging connection untill it reached android 6.
The cable is a charge-only cable (yes, those exist for some reason). Try with a different cable
You don't have the necessary drivers. Make sure they're installed
It might be circumstantial that your phone model does not support the connection for some reason, but it is really hard to tell. The only way to get proper help is to contact Samsung customer support, but in my experience it is just a waste of time. They don't know their own products. If you try with another device it might work.
After some continued tinkering I managed to get Android Studio to recognize my device. All I did was adding the path to the ClockworkMod's ADB .exe to the PATH environment variable. That seems to have done the trick as Android Studio now allows me to run the application on my device even though it is still running its own instance of ADB (located in the platform-tools folder).
It might be completely unrelated but I'm not considering undoing the modification made to the environment variable.
Here is the proof:

Xamarin IDE sees 4.4.3 but not 4.4.2

I have a Samsung S3 running 4.4.3 and I have been using it with Xamrine IDE without issues. As soon as I connect the USB to my Win 7 laptop the IDE shows the device on the list and I"m able to debug and upload code to it. It works.
My wife recently bought the same brand and model phone (Samsung S3) but hers runs 4.4.2. When I connect her phone to the same laptop nothing happens. IDE doesn't see it although the Win OS recognize it and I"m able to upload files to the phone.
I"m using googles USB driver. I did a search and I found the following driver from Intel that's specific for connecting to android.. I applied the driver from Intel but I'm still can't connect to 4.4.2. I restarted the IDE (but didn't restart the computer) but to no avail. Again, the only difference that I can tell between my phone and hers is version number - mine is 4.4.3 which works with Xamarin IDE and hers is 4.4.2 which does not.
Anyone have any ideas of what I can do to make 4.4.2 work with Xamarin IDE?
Thanks in advance.

android ADB not recognizing any devices

I am trying to work with Android development, but I cannot get any android device to work with Eclipse. I try manually checking the devices in the command line by calling ADB devices, and it shows no connected devices.
I have tried with both a Galaxy Note and an Android phone and neither are recognized. I have all the device drivers installed and USB debugging turned on for each of the devices.
Is it possible that I do not have something configured correctly with my initial install of eclipse or the android tools, or perhaps need to download more software from the SDK?
I have read through many other questions but they are specific to a type of device not working, my issue is that no devices are being recognized.
Thanks.
Are you sure that your device drivers are correctly installed?
Your device must be visible in device manager in Portable Devices category or something like that.
You can download drivers for Samsung devices here : http://www.samsung.com/ca/support/usefulsoftware/KIES/JSP
I solved the issue. The phone worked after doing a manual update for the abd so going to the command line where it was located and doing abd update.
The tablet was a different issue, apparently it needed samsung kies to be installed to communicate with the device.
So everything is working now.

How do I get Eclipse with Android SDK running on Windows 8 to debug my app on my phone?

I can't imagine I'm the first person to have had this problem, yet stackoverflow did not recommend relevant questions. Sorry if it has been posted before.
I'm currently developing an android app, and I (laboriously) was able to get it working on Windows 8. I can run and debug my apps using the emulator, but I can't run them on my phone. My phone's version is 2.3.5 (api 10), I've installed the google usb drivers using the SDK manager, and I have the USB debugging setting checked off on my phone. I have been able to run my apps before when I loaded them from Windows 7. Any help would be much appreciated.
Edit: Phone is a Sprint HTC model number PC36100
I have a Samsung phone and the Google USB Driver didn't work so I had to download and install Kies software (which has the driver for my Samsung phone) restarted windows and everything worked fine. I suggest you go to your phone manufacturer's site and download a proper driver. Good luck

USB Debugging with Samsung Galaxy SII / Eclipse

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.

Categories

Resources