I recently built a new PC, got the latest android SDK, Netbeans 7.1, java SDK, etc installed so I could debug my android apps. When my phone was connected to my old PC via USB I could simply run my app in Netbeans and it would automatically send it to my phone for debugging. All my phone settings are the same (install 3rd party apps: true, allow USB debugging: true) and I've upgraded all my app projects to the latest SDK version in Netbeans, so those aren't the issues. In addition, I've got the Motorola Droid X device drivers installed. I tried installing just the Motorola ADB interface driver but doing so it tells me a newer version is already available.
Can anyone help shed some light on what else I need to do to make Netbeans send the running app to my phone instead of starting the emulator? Thanks!
EDIT: The device does appear when I run "adb devices"
I'm not sure what fixed it, but I think one of the gotchas of netbeans/android is it doesn't give a great error message when it's time for you to uninstall the debug version of the app on your device. Once I did this it deployed just fine on my phone.
Related
I'm trying to develop an Android app using the Eclipse IDE and I want to debug using my physical Moto X (2nd gen, Android version 4.4.4). I thought it was as easy as turning on USB debugging on the phone, plugging it into my macbook (OS X Yosemite 10.10.1), running my Android application from eclipse, and selecting my device.
However when the device chooser dialogue comes up, it doesn't show my moto x in there. It shows all the Android Virtual Devices I have set up, but nothing under running Android device. What's particularly mind-blowing about this to me is that I can clearly see my device in the eclipse device view as online. I can also see it by going into the sdk folder and running adb devices. The only time to doesn't show up is when I try to run the application and select what to run it on.
Has anyone ever encountered this problem before? Is there something here I'm missing? I have the latest Android SDK all up to date, as well as my Eclipse (I'm running Juno if that matters). My Min SDK version is 11, and the Target is 21, so my device should be in that range. I have also tried restarting the device, eclipse, and even my macbook with no luck.
If you are on Yosemite, try to drag corner of one of the column headers in the device chooser box and it will show the device. This is a hilariously stupid bug on eclipse for Mac. Check this answer.
There might be something wrong with eclipse. Sometimes the only solution to fix eclipse is to redownload a fresh copy of ADT from website.
You say that you can see your device when you run adb devices.
In this case use eclipse to build your project then use adb to install the apk on the phone:
adb install /path/to/projectRoot/bin/myBuild.apk
Better yet I would take this as a sign to forget Eclipse and move to Android Studio. Version 1.0 was released today (no more beta).
I build an app using these instructions: http://developer.coronalabs.com/content/build-android-devices-windows. When I connect my device with USB cable and transfer the .APK file. And when I try to install the app, I get an error message which simple says that the app has not been installed or something like that. The app(game) is working fine in the Corona Simulator but not in the real device.
This is the app - https://www.dropbox.com/s/j6jft1y81klh8gz/BlackJack.apk
(but actually I'm getting this error in my device whatever app I trying to install).
And I'm using Samsung Galaxy Y GT-S5360, android 2.3.5 (Gingerbread).
Thank you for any help.
The problems come's from the processor of the phone it uses ARMv6 processor which does not support by the new SDK Build of Corona
see this link it has the same problem as yours http://forums.coronalabs.com/topic/21994-resolved-armv6-support/
Since you mentioned that you receive the error no matter what app you are trying to install, make sure that you have enabled Unknown sources on your device in order to be able to install APK files directly. This location of this setting is usually found in the Security setting.
I've installed eclipse (JUNO version), SDK, ADT (20.0.3) and configured them through the Developer.android.com. After that I made a virtual device on eclipse (Android 4.1 API level 16) as well, but when I run the "Hello World" application in eclipse, the emulator is running with out error but the app is not running on the emulator.
There is also the problem with real device. I use Windows 7/64 bit and HTC incredible S phone. When I connect the device to my pc, windows detect it, but eclipse does not detect it. (The USB Debugging is enable on device and USB driver is updated on windows).
I tried different solutions like reinstalling eclpise, SDK and ADT, removing ADV and creating the new one,... but the problem did not solve.
Did u located your android sdk? If not,locate the sdk as follows:
open Eclipse->Windows->preferences->Android->Select your android sdk folder.
then please try to run you program. Tell me the status after that.
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.