I want to run my code on the phone. But Android does not recognize my device. I also did the connection assistant.
But the following error is given. please guide me.
Needed informations
Is ADB installed with Android Studio, or have you got external tool?
Is there a generic Android USB Device driver installed? It's provided with Android Studio, and should be obtained with SDK Tools.
Possible solution
If even AVD cannot be recognized, it could be fault of built-in ADB server. I would recommend installing ADB as an external program, e.g. from here (ClockworkMod page).
After installation, reboot PC and plug your phone in. If phone is visible, check for availability via adb devices command from CMD/terminal. Don't launch Android Studio yet, as it has its own instance of ADB server and you wouldn't be able to launch second one from console.
If phone is visible, use adb kill-server command to finish the console instance, and launch Android Studio. Everything should be detected, if not - you really should submit that bug...
If phone is not visible all the time after issuing adb devices, there is a chance that not all drivers are installed. Check ASUS for drivers, if they were installed automatically - install them manually.
Hope it will help!
Have a look at PdaNet+
Install both the desktop client and the corresponding android application from the google play store. Once you plug in your device it will prompt you that your device has been connected and adb should recognise it.
Related
I am developing apps for android and I bought an bq Maxwell 2 Lite, and I wanted to test them in the device, but i can't seem to do it... can somebody help me with that?
The android version on the device is 4.1.1 and I have enabled debugging throw USB.
Thank you all for your time and thanks for all the help
Carlos Morgado
So to test with any device you need
Install the driver for the device on your OS.
Enable USB debugging on your device.
Plug-in the device through an USB.
Run the app through the IDE and select the configured device to run the application
This should help you get started.
For using USB debugging in eclipse, make sure that you have all the drivers installed. Open sdk manager, under extras you can see Google USB drivers, make sure that this is downloaded.
If after this also it didn't work, go to device management if you are using windows and find your device. Right click on your device and update device drivers, update from my computer and give this folder sdk folder\sdk\extras\google\usb_driver. Set platform-tools folder in your path variables and run these commands:
adb kill-server
adb start-server
You can see list of attached devices using this command:
adb devices
I have a Samsung Galaxy S3. With the release of Chrome 32, I wanted to try the native usb debugging so I could work with my phonegap apps while they're on my phone (rather than browser testing then transferring). I turned on USB debugging and downloaded the appropriate driver. My phone shows up in device manager but it doesn't show up under about:inspect on chrome. How do I get my device to show up?
I had a similar issue. I was previously able to inspect my phone using DevTools and the ADB extension. After the Chrome update where the ADB extension was deprecated my phone would no longer appear in chrome://inspect/ not matter what I tried.
What fixed the issue for me:
Download the Android SDK
Locate ADB.exe, found in the platform-tools folder.
Open the file using command prompt
cd c:\path\to\platform-tools\adb.exe
Make sure your phone is disconnected from USB
Type the following commands
adb devices
adb kill-server
adb start-server
Reconnect your phone, authorise your PC and enjoy the USB debugging
Hopefully that helps someone else.
I found the solution. I'd never run ADB before but that's what Chrome uses for debugging (not sure if it was downloaded when I downloaded the dev kit or if it came with Chrome 32).
From the command line I ran, adb devices. Got the message "daemon not running. starting it now on port 5037". Once it started, my device showed up in Chrome! If you haven't downloaded the android dev kit you may have to do that first.
You need Chrome on Android Beta (v32) to do this without ADB.
Before asking my question, I have looked through a few threads that share the same problem as me and have tried all the given solution with no success. I am from Malaysia.
I cannot get my device to be detected to test my app on my phone. I have checked both the "Unknown sources" and "USB debugging" settings in my phone. I am using eclipse. But if I create a random virtual device, my app is able to run there.
Okay so I am using a Motorola Atrix 2. And I'm using Windows 8 Pro 64 bit
I have downloaded android SDK bundle from here : http://www.motorola.com/sites/motodev/us-en/motodev_lp.html
I have also tried downloading the latest driver with no success. I have also added this line in the manifest android:debuggable="true"
I have tried both as a mass storage device and a media transferring device.
I would appreciate any help a lot because as of now, I cannot progress further into developing an android app and that saddens me. :(
I have attached a picture of which my android phone should be detected in the window, but as you can see, none.
https://pbs.twimg.com/media/BJu1XSgCYAEGCUd.jpg:large
go to /your-android-sdk-directory/platform-tools using command prompt.
type
adb kill-server
adb start-server
adb devices
n see whether ur device is detected now or not...
Note: if you're using a Linux machine then put ./ before adb
Install proper drivers for your adb devices, from Android-SDK archive or Motorola site.
If you are on Windows machine, go to the device manager find your device, and select folder with drivers for it.
Open you windows os's explorer, have a look at the process, if there two or more process hold your adb, try to exits the process
Check that the android:minSdkVersion is lower or equal to the Version running on the phone. If it is higher it wont show on "Android Device Chooser"
Install and run programs/drivers with admin rights.
Have you installed Motorola Device Manager?
When debugging Samsung and HTC devices I got it to work by installing that kind of software (for syncing the devices to the computer).
Download from the following: ABD Universal Driver
and install it. Make sure you have your device plugged in before installing and make sure you are on USB debug mode on the phone settings.
I have a simple camera app I'm trying to push to my phone, but HTC sync (Thunderbolt on Verizon) simply will not recognize the device. I believe this is the reason I can't get the phone to accept the APK. All my drivers, project, and sdk manager and plugin are updated and I reinstalled HTC sync just to be sure. I also enabled usb debugging and unknown sources
I believe the Thunderbolt connectivity issues also destabilize the eclipse plugin. I get hung randomly during Android functionality in eclipse (like simply loading DDMS or a Run Configuration).
As a result, I'm trying to find a way to work around having to use HTC sync to push my app there.
I developed with a HTC Desire some weeks ago and it worked without problems.
You shouldn't need HTC sync. Have you tried to use the google usb driver as described here?
Whats the output when you call adb devices from commandline? If everything worked correctly you should see the device id of your phone.
Sometimes the following can help if adb does not recognize your device:
adb kill-server to stop the adb process
Use the task manager to make sure no other adb process is running (stop them with the task manager)
restart adb server by calling adb devices
Try to install the app using adb install -r C:\path\to\app.apk
Android 2.1 Downloaded APK from server. Now I want to programaticllly install this on the phone/tablet without starting it up. Just install it. How do I do this on Android 2.1?
Installing an app doesnt necessarily cause the app to start running, unless the app is meant to run as a service, in which case I dont know of any way to install the app and prevent it from hooking into your system and running behind the scenes.
As far as programatic installatation, a quick google search turned this up as the successor to PackageManager.installPackage:
http://www.mailinglistarchive.com/html/android-developers#googlegroups.com/2010-01/msg03943.html
After downloading the app, download the Android SDK and adb, enable USB debugging, connect the device to your machine via a USB cable and do an adb install of the APK. If you're using Windows to deploy the app, you'll have to download the USB drivers as well. My recommendation is to use either Linux or a Mac for easier deployment.
From the command line, you'll do something like this:
$ adb install yourdownloadedpackage.apk
If you've connected your device appropriately you should see your application if the install completed successfully.