The first day my V60 thinQ smart phone worked fine with android studio. The next day after working on my project for about a hour my smart phone no longer showed up in the run/debug configurations drop-down. I was not able to run the app on my device.
I went to trouble shoot device connection
When I clicked on Re-scan device my smart phone showed up. Also in windows Explore my smart phone shows up,
Right before my device stop showing up a dialog came up asking me what i wanted to do after plugging in my smart phone. I forgot exactly what it said and what I clicked on.
Does any one know what is going on?????
I believe, the popup that you saw right after plugging your device is asking if you trust your PC to connect over adb usb-debugging mode.
Sometimes, this happens to me. The way it works for me is: going to Developer Options > USB Debugging Mode. Then, i disable usb debugging then, re-enable it again and after that usually Android Studio detects it or, it shows the popup again. If you don't see the popup just unplug and re-plug your device once.
The popup should look sth like this with an RSA fingerprint of your computer:
Now, you have to click: "Allow". And, android studio should detect your device.
I don't even know if there is a solution for this, but seeing software like Vysor and others, I was wondering, is it possible to run my USB connected android phone as an emulator, using Android Studio for example? How can I achieve this?
Edit: I don't want to debug or run apps from android studio in my physical phone, I know I can do that. What I want is to run my phone ( with it's data, other apps installed, etc) in mt laptop, as I would with an AVD.
yeah, you can run as a physical device on your android studio. the first thing which you have to do is go your phone settings and click on about device in that press 5-6 times on build number. after clicking on that you get a pop up that your developer mode has turned on.
in next you will see a developer options on your physical device setting.
go into developer options and click a mark on USB debugging.
after that connect your USB cable to your PC. and open the logcat options in the android studio.
you can see that your physical device is connected to your android studio.
yes ,
first go to mobile setting in your mobile device there you find software information
in software information press Build number for 5 times then it shows some toast message you are a developer
after that you will find developer options in settings go to it in that you will find usb debugging ( turn it on)
3)connect device with laptop using usb in and allow all the permissions that required for connection
4)go to android studio you will find your device name .If your device is not found go to run as multiple device there you find your device just click it
Thats all
Enable programmer mode on Your device and enable usb debugging there
If you mean the Physical device to use as a alternatives of Emulator then it is okay. You can use a Android Device to run the apps for debugging. Here is a detailed documentations how to connect your device with android Studio.
Check this link....
Is there is any way to connect non nexus devices as emulator in android studio?
If you are window user, first install Lenovo Driver for Window,
If Developer Option is not enabled, Setting > About Phone > Press BuildNumber 7 times
Go to Developer Options and please enable USB Debugging.
If popup appear, please tap to allow device.
And then , you can run your Android Projects with your real device
You can simply plug in your phone with Developer Mode enabled. When you click on Debug, it automatically shows up your phone. It is as simple as that.
Turn on Developer mode by tapping 5 times on the build number.
Go to Developer options, turn on USB debugging.
Plugin the device
A popup will appear. Click on allow device.
You are all done !
I have a problem with the driver for a LG L90. The ADT (for Eclipse) doesn't see the smartphone. The problem is that the phone isn't able to install the drivers.
Does anyone have any idea how I can do? The drivers, that I tried to install, are those of the official website.
How to Enable USB Debugging for LG Optimus (LGD415). Android version 4.4.2 (KitKat)
Go to this website and download the drivers to your phone:
http://www.lg.com/us/support/mobile-support
For example, mine would be:
http://www.lg.com/us/support-mobile/lg-LGD415RD. Then click on “Software Update & Drivers”
On your phone, you need to enable USB debugging. To do so,
Go to “Settings”.
Go to “About Phone”
Go to “Software Information”
Tap “Build number” five times.
A pop-up will appear saying “You are now a developer”. Your’re not done yet.
Go back to your phone’s home page by pushing the home button.
Go to “Settings”.
Go to “Developer options”
Click the “USB debugging- Turn on debug mode when USB is connected”. A blue checkmark will appear.
Unplug your phone from your PC. Then plug it back in. On the pop-up, make sure you set it to “Media Sync (MTP)”.
Now your phone will show up on an option when you want to run your app in Eclipse.
With LG L90 it might help to do the following steps:
activate developer tools and mark USB debugging
USB-connect via MTP
activate teathering/networks > USB-teathering (after connecting, each time again)
Using the latest LG software-update Android 5.01 i was able to connect to a desktop chrome on Windows and Mac.
Go to Settings.
Go to About Phone.
Tap Developer Options until it says "you are now a Developer" and
then back out of the screen and you will see Developer options
I'm quite new to Android and have been using an AVD to debug my app so far. However, I want to start checking the media options and therfore need to start using my Android phone. How do I get Eclipse to load my app to my phone instead of my AVD?
First you need to enable USB debugging on your phone, then connect it to your computer via USB. Then eclipse should automatically start debugging on your phone instead of the AVD.
just for additional info,
If your apps is automatically run on emulator,
right click on the project, Run As -> Run Configuration,
then on the Run Configuration choose on the Manual.
after that, if you run your apps you will be prompted to chose where you want to run your apps, there will be listed all the available device and emulator.
I had the same problem, and have not been able to get Eclipse in Windows 7 to recognise the device. The device is correctly configured, Windows 7 recognises it on the USB port, and I edited the Run settings in Eclipse to prompt for a device, and it is just not there.
I ran it with the following steps:
Connect the device to the computer with USB.
Ensure the device is not locked (ie. timed out in the UI). I have to keep unlocking it while I'm working.
Wait for Windows to recognise the USB device, and when the autoplay menu comes up select Open device to view files. It should open up the file system in the device, in Explorer.
In Explorer go to the Eclipse workspace and find the apk file from the build (eg. MyFirstApp.apk)
Copy the apk file to the Downloads directory on the device
On the device, use the My Files app (or similar) to open the Downloads directory.
Click the downloaded file (My First App.apk) and Android offers to install it
Select install
The app is now in the installed Apps. Run it.
A second method is to mail the apk file to the device and then download and install it. (Credits to a post on SO which I can't find now).
A third method is to use DropBox. This requires installation of DropBox on the PC and on the device (from the play store) but once both are set up it runs very smoothly. Just share a DropBox folder between the two devices, and then drop the APK into that folder on the PC, and open it on the device. With this method you don't need a USB connection, and can also install the APK on multiple devices. It also assists the management of multiple development versions (by making a separate sub-folder for each version).
In Eclipse:
goto run menu -> run configuration.
right click on android application on the right side and click new.
fill the corresponding details like project name under the android tab.
then under the target tab.
select 'launch on all compatible devices and then select active devices from the drop down list'.
save the configuration and run it by either clicking run on the 'run' button on the bottom right side of the window or close the window and run again
You don't have to do anything really except prepare your phone to be able to run debug and usb apps :
http://developer.android.com/guide/developing/device.html
then simply launch your app from eclipse and your device will be used if you don't have a simulator running.
First of all, Enable USB debugging on your device.
On most devices running Android 3.2 or older, you can find the option under Settings > Applications > Development.
On Android 4.0 and newer, it's in Settings > Developer options.
In eclipse go to Run Configuration and select Always prompt to pick device
Some people may have the issue where your phone might not immediately get recognized by the computer as an emulator, especially if you're given the option to choose why your phone is connected to the computer on your phone. These options are:
charge only
Media device (MTP)
Camera file transfer (PTP)
Share mobile network
Install driver
Of these options, choose MTP and follow the instructions found in the quotes of other answers.
Hope this helps!
goto run menu -> run configuration.
right click on android application on the right side and click new.
fill the corresponding details like project name under the android tab.
then under the target tab.
select 'launch on all compatible devices and then select active devices from the drop down list'.
save the configuration and run it by either clicking run on the 'run' button on the bottom right side of the window or close the window and run again
For those who are trying to find how to enable debugging on devices running Jelly Bean 4.2 (e.g Google Nexus), you have to go to Settings > Apps > About tablet and tap the text "Build number" 7 times slowly. Go back to the now available Settings > Developer options and check USB debugging as stated in previous posts.
Check to see if the Andriod Device is installed on PC. See steps below. The 'Other device' will change to 'Andriod Device' once the USB drive is installed. The browse path should be
\extras\google\usb_driver\
not the sub directories under it. Otherwise the installation will not find the package.
To install the Android USB driver on Windows 7 for the first time:
Connect your Android-powered device to your computer's USB port.
Right-click on Computer from your desktop or Windows Explorer, and select Manage.
Select Devices in the left pane.
Locate and expand Other device in the right pane.
Right-click the device name (such as Nexus S) and select Update Driver Software. This will launch the Hardware Update Wizard.
Select Browse my computer for driver software and click Next.
Click Browse and locate the USB driver folder. (The Google USB Driver is located in \extras\google\usb_driver.)
Click Next to install the driver.
connect your device to system and set you device debug mode on when you run your application Android Virtual Device AVD will select device there you will see your connected device select your mobile device and thats all refer this link to set your device debugging mode on
http://developer.android.com/training/basics/firstapp/running-app.html
The USB drivers in \extras\google\usb_driver didn't work for me.
However the official drivers from Samsung did:
http://developer.samsung.com/android/tools-sdks/Samsung-Andorid-USB-Driver-for-Windows
Note: I'm using a Samsung Galaxy S2 with Android 4.0 on Windows 7 64bit
What I did, by reading all of above answers and it worked as well: 7 deadly steps
Connect your android phone with the pc on which you are running eclipse/your map project.
Let it install all the necessary drivers.. When done, open your smart phone, go to: Settings > Applications > Development > USB debugging and enable it on by clicking on the check button at the right side.
Also, enable Settings > Unknowresoures
Come back to eclipse on your pc. Right click on the project/application, Run As > Run configurations... >Choose Device>Target Select your device Run.
Click on the Target tab from top. By default it is on the first tab Android
Choose the second radio button which says Launch on all compatible deivces/AVDs. Then click Apply at the bottom and afterwards, click Run.
Here you go, it will automatically install your application's .apk file into your smart phone and make it run over it., just like on emulator.
If you get it running, please help others too.
Thanks this helped. It was a little tricky getting the USB debugging option enabled on the Samsung G3 after the update.
See below
Instructions on Samsung G3 Jellybean
Settings
Click --> About the phone
Tap on the build number
“You are now 4 steps away from being a developer.” Keep tapping until it says “You are now a developer.”
Go back to Setting-->System --> Developer option: Enable USB Debugging
Step by step:
Connect your phone to computer via USB
Enable USB debugging on your phone: Settings -> Applications -> Development -> USB debugging
Change Run configuration in your Eclipse project:
right click -> Run As -> Run Configurations. In the Target tab choose Always prompt to pick device (or Manual). Then Apply, Run.
In the new window you should see your connected phone.
Yes! You can Debug Android Application While you are developing them follow these steps..
Make sure that you have PC suite of the mobile manufacturer. For Example:if you are using samsung you should have samsung kies
1.Enable USB debugging on your device:Settings > Applications > Development > USB debugging
2.Enable Unknownresources:Settings>Unknowresoures
3.Connect your device to PC
4.Select your Application Right click it: RunAS>Run configurations>Choose Device>Target Select your device Run.
You can also without using debugging cable.For that you need to install Airdroid in your device.After installing enter the link in your browser and Drag and Drop .apk file.
Happy Coding!
First you need to set your device to debugging mode. On Android 4.X that means as described in another answer in another question:
Open up your device’s “Settings”. This can be done by pressing the Menu button while on your home screen and tapping “System settings”
Now scroll to the bottom and tap “About phone” or “About tablet”.
At the “About” screen, scroll to the bottom and tap on “Build number” seven times. [Note this is no joke]
Make sure you tap seven times. If you see a “Not need, you are already a developer!” message pop up, then you know you have done it correctly.
Done! By tapping on “Build number” seven times, you have unlocked USB debugging mode on Android 4.2 and higher. You can now enable/disable it whenever you desire by going to “Settings” -> “Developer Options” -> “Debugging” ->” USB debugging”.
The next step is to connect your device to your computer via the USB cable.
The next step is to install a USB driver for it. On the official website you find a list with sources for drivers for phones from various different companies.
Eclipse now should give you the phone as a choice when you click on Run and it presents you possible device to launch.
In some case Eclpise will tell you Target Unknown which prevents you from using the device. If that's the case you might have to restart the phone. You might also have to check and recheckUSB debugging, till the phone asks you to allow your particular computer to do usb debugging.