Related
When installing new application from Android studio, the phone cancels the installation showing a notification that it's from unknown sources.
How can I authorize Android Studio app install on my device?
Notice: the device used is vivo y97 (Funtouch OS_9) connected to android studio using USB cable.
for running on real device you should follow these steps first:
Run Android App on Real device
You need to follow these steps to make your Android Device ready so that you can test your App.
Enable Developer Option
Enable USB Debugging
Install USB Drivers
Connect the Device to Computer
Enabling Developer Option
To Enable USB Debugging, First, we need to enable Developer Option on the phone. Google since Android Version 4.2 has disabled the Developer Option. This was done so that people do not enable the USB Debugging Mode accidentally. Enabling USB Debugging Mode puts your device into the security risk.
For the devices with Android Version lower than 4.,2 the developer Option is already enabled.
To Enable the Developer Option to follow the steps
Go to settings and tap on About Phone / About Device or About Tablet Option
Tap on Software Info Option
Locate Build Number and Tap on it seven times. You will see the message “You are now a developer” message. If the developer mode is already enabled then you will see the message “No need, developer mode has already been enabled”
Disable Developer option
In case you wish to disable the developer option you can go to Settings -> Application Manager. Select the Settings App. Select the Storage Option and clear the data. Note this will also reset your preferences within the settings menu.
Enable USB debugging
To enable USB Debugging, follow these steps
Go to Settings
Go to Developer Options
Goto USB Debugging Option and enable it
Disable Developer option
In case you wish to disable the developer option you can go to Settings -> Application Manager. Select the Settings App. Select the Storage Option and clear the data. Note this will also reset your preferences within the settings menu.
Enable USB debugging
To enable USB Debugging, follow these steps
Go to Settings
Go to Developer Options
Goto USB Debugging Option and enable it
Connecting Over Wi-Fi
Connect your device on the same wifi network as that of PC
Find out the IP Address of the Device. There are two ways you can find out the IP address.
Goto settings -> About Device
Tap on Status.
Or
Goto settings -> Wi-Fi
Tap on the Wifi Network connected
Locate the adb.exe. The adb is known as Android Debug Bridge is the tool that lets us communicate with a device. This tool is located under the platform-tools folder under the Android SDK folder.
The Android SDK folder can be found out by type SET ANDROID_HOME command. goto the folder
The adb is already running and listening on the USB port for the devices. To make it to listen to the TCP/IP Port number 5555 run the following command
adb tcpip 5555
Now, to connect the device run the following command
adb connect 192.168.0.103:5555
Replace the IP 192.168.0.103 with the IP Address of your device.
To disable TCP/IP and enable the USB, run the command
adb usb
To Find out the available devices
adb devices
When connected via USB, my LG V30 won't show up in NativeScript SideKick's Devices panel, nor will running tns devices list the phone.
I have installed the universal USB drivers for LG devices from: http://www.lg.com/us/support/software-firmware-drivers
and I am able to successfully view the files on the phone via Windows Explorer and also via LG Bridge.
I am able to successfully run the project on an emulator via tns run android --emulator
tns doctor reports a clean bill of health and my project will build successfully. What else can I do to get SideKick to recognize my device via USB?
Well, the first item to try is adb devices from your computer. I assume it isn't showing here and this is why it isn't working anywhere as this is the communication channel for development.
Now to make this work this is typically because you do not have USB debugging turned on. Which is in Developer Options.
If you already have Developer Options in your settings, then you can skip the next step.
To enable Developer Options you go to your Settings, then About or About Phone/Device, then Software information. Once there you tap the Build Number seven times. This will then create a new menu option typically in your Settings called Developer Options
To enable USB Debugging, go to your Settings then click Developer Options then find "USB debugging" and turn it on. At that point you might need to unplug and replug in your device and then adb devices` should show it.
In my case, with LG V30 changing USB type to 'MIDI' solved issue - it was after that visible in adb as an authorized device and I was able to build my app.
Based on the link given below: https://developer.android.com/tools/extras/oem-usb.html#Win7 , it seems like I need to install the driver of my phone in order for me to deploy my apps to my phone. However, followed the steps stated but failed to update driver. I'm using Samsung Galaxy Note GTN7000 that having Android version 4.1.2. I tried to search for driver online but it seems my laptop already have the updated driver, but yet, I failed to deplopy apps to my phone. May I know what went wrong?
Install Kies on your system.
Enable Debugging mode on your phone by Settings > Developer Options > USB Debugging.
Now run your project. If still your device is not being shown on device list, then
(i). Go to the path of Elipse > SDK > Platform-Tools on command line
(ii). Run following commands-
./adb kill-server
./adb devices
Download your manufacturer driver , in your case it is kies. It Android studio or eclipse will recognise it when phone is contented by USB.
Let the android now your are a developer by opening developer option. If you're on android 4.0+ pressed 7 times on build info to add this option too the settings.
Download Samsung Android USB driver in here then install it in your PC
make sure that you have turned on USB Debugging in your phone setting in :
Settings -> Developer Options -> USB Debugging
If developer Options is not display in your setting, click several times on build info to display this option to the settings.
I started to develop in android with Android Studio IDE, I tested my apps on the emulator and works fine, but when I tried to test the apps directly in my device doesn't recognize it and the console shows next message:
Waiting for device. USB device not found
I configured "USB Device" in Run>Edit Configurations...> in tab "General", menu "Target Device"
I enabled the "Debug option" in my device
Plug/Unplug USB
I can run on my device at last, just I enabled the "USB debugging" and "Allow mock location" options from the Debug Menu of my device.
First we have to enable the USB debugging mode. for that go to Settings -> Developer Options ->USB debugging in your phone checked it and allow it.
After it open android studio, click on SDK manager , check mark the Google USB Driver and hit install package.
After Installing Google USB Driver, close SDK Manager window, Connect your phone or tablet through USB cable to your laptop or PC.
Now click on My Computer (Windows 7) (or) This PC(Windows 8.1).Select Manage.
Select Device Manager –> Portable Devices –> Your Device Name
Right Click on Your Device Name and Select Browse My Computer For Driver Software.
Point it to C:\Users\YourUserName\AppData\Local\Android\sdk\extras\google\usb_driver. Hit Next and Finish.
Now Hit Run Button after selecting Your Project in Project Explorer in Android studio. Choose your device and press OK.
I have a Nexus 4 and own a Thinkpad L430 Windows 8.1
My errors:
"Waiting for device.
USB device not found"
I went to: Device Manager > View > Drop to "Acer Device" > Right click on Acer Composite ADB Interface > Update it
Afterward, Reboot/Restart your computer. Once it turned on Plug Your USB Device onto the computer.
Go to: Setting > Enable "Developer options" > Check the "USB debugging" option > Check "Allow mock locations" > Check "Verify apps over USB".
Swipe down from the drop down menu of your phone where it Shows the USB Connection Icon. Tap on USB Computer Connection > Select the Check box "Camera (PTP)"
Run your Android Studio App and it should work
To test an android apps in a real device with Android Studio, You must keep two things in mind
You should enable USB debugging option on your android phone.
You must have driver installed on your computer.
Now , let me tell you how you can enable USB debugging on your android phone:
Go to Settings on your android phone
Scroll down to the bottom and click on About phone
On this menu also scroll down to the bottom, you should see something Build number
Click on Build number 7 times
Now your Developer Option enables, once you done click on back button and you should see a new option on your android screen i.e. Developer Options
Click On Developer Options
Scroll down until you see USB Debugging
Go ahead and click the check box next to the USB debugging
Now your USB Debugging option enables.
Connect your android device to your computer with the help of USB connector.
Now let me tell you how you can download the driver on your Windows PC:
Your windows machine need a software called driver to communicate with your phone.
Go To OEM USB Driver Website to install your appropriate driver
Scroll down and select the driver appropriate for your device.
Check the screen shoot
Once you download it , you have to unzip your file
After Installing Google USB Driver, close SDK Manager window, Connect your phone or tablet through USB cable to your laptop or PC.
Now click on My Computer (Windows 7) (or) This PC(Windows 8.1).Select Manage.
Select Device Manager –> Portable Devices –> Your Device Name
Right Click on Your Device Name and Select Browse My Computer For Driver Software.
Point it to C:\Users\YourUserName\AppData\Local\Android\sdk\extras\google\usb_driver. Hit Next and Finish.
Now Hit Run Button after selecting Your Project in Project Explorer in Android studio. Choose your device and press OK.
Step 1: Firstly, Go to the Settings in your real device whose device are used to run android app.
Step 2: After that go to the “About phone” if Developer Options is not shown in your device
Step 3: Then Tap 7 times on Build number to create Developer Options.
Step 4: After that go back and Developer options will be created in your device.
Step 5: After that go to Developer options and Enable USB debugging in your device as shown in figure below.
Step 6: Connect your device with your system via data cable and after that allow USB debugging message shown on your device and press OK.
Step 7: After that Go to the menu bar and Run app as shown in figure below.
Step 8: If real device is connected to your system then it will show Online. Now click on your Mobile phone device and you App will be run in real device.
Step 9: After that your Android app run in Real device.
Regards,
Guruji Softwares (https://gurujisoftwares.com)
For Android 7, Galaxy S6 Edge:
Settings > Developer Options > Turn the switch ON > Debugging Mode (Turn On)
If Developer Options is not available then
Settings > About Device > Software Info > Build number (Tap It 7 time)
Now perform step 1. Now it should work, if its still not working then perform these steps. It worked for me.
if you are using IOS react native platform and want to debugging real android device you can use following code:
adb reverse tcp:8081 tcp:8081
npm start -- --reset-cache
react-native run-android
You have to Download the driver for your Device just go to device manager-->> your device-->update driver-->choose the usb driver path from sdk extras folder and click next.
You can get the correct driver and you can run on real device
If USB Debugging Mode is enabled and does not work, you should install your device driver.
For Nexus Devices;
Install Google USB Drivers on SDK Tools.
Go to Control Panel > Device Manager and check drivers status.
(Probably you can see warning icon on ADB Interface Driver.)
Select ADB Interface driver and click update. Choose "Browse my
computer for driver software" and set folder path like
"D:\Users\userName\AppData\Local\Android\sdk".
For Another Devices;
If you install the model's driver, it may work. For ex: Samsung Kies,
LG PC Suite.
Hope it helps!
I tried #Mr. Stark answer. It didn't work. It failed to install the drive. I have Samsung S8 plus. I enabled the debugging mode on device then installed Android USB Driver for Windows from Samsung site, it works.
Other 2 step solution could be for Android Studio;
"After installing cellphone drivers" on your computer(if it is
needed? and device is not detected already in windows, most
cellphone are now a days plug and play or auto detected by the
windows, u can use windows "settings->devices" or "settings->phone"
or "control-panel->Devices & Printers" to see if your cellphone is
detected). If not you need to install devices drivers for your cellphone
possibly form its OEM or manufacturer website.
Open Project you want to run in your cellphone; Click,
Run -> Select Device... -> In popup menu select "Troubleshoot Device
Connections" at the bottom of the list, it is a wizard and it'll
guide you through all steps necessary to enable USB Debugging on
your cellphone.
I want to run my Android project on a device.
My device is not detected in Eclipse when I connect it with a USB cable.
I restarted Eclipse and I have checked that USB debugging is on, on the device.
Can anybody tell me what the problem is and how to resolve it?
Before starting, Make sure that USB DEBUGGING IS ENABLED in your phone settings !!!
1) BASIC STEP - Plug in device via USB, then go to device page in Android developers blog. There you can find necessary information regarding adding USB vendor ids. Add your device specific ids, and restart eclipse if needed.
2)If you were able to see the device connected(using command: 'adb devices'
) earlier, but not anymore, then just try restarting ADB. (you can use the commands: 'adb kill-server' followed by 'adb start-server'. adb commands need to be executed from platform tools folder in the Android SDK, if you havent exported it).
3)If neither of them works out and you are on windows machine,
then check the installed usb drivers are correct. If not install proper drivers
Please find more information on how to install/update drivers in http://developer.android.com/tools/extras/oem-usb.html
If this also is not working, try installing Universal ADB windows driver https://plus.google.com/103583939320326217147/posts/BQ5iYJEaaEH
4)You may also try increasing the timeout time
Go to preferences-> android->DDMS in eclipse, then try increasing 'ADB connection timeout(ms)' value
Update based on newer answers:
5)Run > Run Configurations > Target. Please make sure, the option "Always prompt to pick device" is enabled.
Special case: Windows 8 and Nexus 10 (from this question: ADB No Devices Found)
Windows 8 wouldn't recognize my Nexus 10 device. Fixed by Setting the
transfer mode to Camera (PTP) through the settings dialogue on the
device.
Settings > Storage > Menu > USB Computer connection to "Camera (PTP)"
I solve this problem by updating PC portable device drivers:
Go to : Settings -> Applications -> Development to enable USB debugging
Plug in device USB
Desktop "My Computer" right click -> "Manager"
Choose "Device Manager"
Portable Device
right click on your device -> "Update Driver software" -> Search automatically (wait about 3-5min, )
Done
Restarting the adb server, Eclipse, and device did the trick for me.
C:\Android\android-sdk\platform-tools>adb kill-server
C:\Android\android-sdk\platform-tools>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
I had the same problem as mentioned on this question.
I had similar problem, drivers was okey, but Eclipse did show me the device in Run > Run Configurations > Target tab. But I checked the option "Always prompt to pick device". And then running the application from Eclipse the prompt window finally showed my device.
After a long and frustrating search, finally I made my Micromax Funbook p362 to connect with eclipse and made it to suit for development.
*Installed Moborobo (All in one Android smart phone management tool).
*Perform stop -server / start -server using ADB.
*Reboot the device.
*Restart the eclipse.
*Device got detected.(Eclipse - list of adb devices)
In addition to the steps provided by #asfsafgsf (above), make sure to re-enable your phone's developer modes/functions. For my Motorola Atrix:
settings>applications>Unknown Sources: allow 3rd party apps
settings>applications>Development: to enable USB debugging, mock locations, and disable phone sleep
A note on developer modes
USB Debugging is the main mode you will need for running apps through eclipse when your phone is connected via usb (obviously). Disable phone sleep is also handy for self-explanatory reasons.
Allowing 3rd party app sources allows you to beta test your app on a larger-scale. With this, you can host your own apk and instruct your beta-testers to download it (prior to releasing it to the Google Play storefront). More specifically, 3rd party support allows the installation of android package files that don't contain a google approved signature (required for play store hosting). With 3rd party apps enabled, a handset will be able to run packages regardless of their source. You should also be able to receive an APK via bluetooth and install it in this mode.
You can also list all currently connected devices by running the following command:
adb devices
Go to http://developer.android.com/tools/extras/oem-usb.html#InstallingDriver and follow the steps on the android website but on browsing for the USB folder don't use the directory specified -> ((sdk)\extras\google\usb_driver). (sdk) just means your sdk location.
Your phone should have the correct driver and it can be accessed when you plug it in and go to the CD Driver in My Computer, in my case it's G:\drivers\adb_driver. Use this directory instead and it should work. (It may be differ with devices).
One possible reason is to check Android SDK Manager and install Google USB Driver in Extras folder if you have not installed it.
Following the steps here: http://developer.android.com/sdk/oem-usb.html#InstallingDriver allowed Eclipse to display the device.
Do following steps to detect your device in eclipse : -
On Mobile Side:- For Connect USB sync, your Android device needs to have USB Debugging enabled.
To enable Android USB Debugging Mode do following steps :-
Android 2.x - 3.x devices:
Go to Settings > Application > Development > USB Debugging.
Android 4.x devices:
Go to Settings > Developer Options > USB Debugging.
For devices running Android 4.2.2 or later, you may need to unlock Developer Options before it is available within the Menu:
Go to Android home screen.
Pull down the notification bar.
Tap "Settings"
Tap "About Device"
Tap on the "Build Number" button about 7 times.
Developer Mode should now be unlocked and available in Settings >
More > Developer Options or in Settings > Developer Options
On PC side
Connect your device to the PC with USB cable.
Download Google USB Driver
Extract/Unzip “latest_usb_driver_windows.zip” file on your computer
(using 7-zip free software, preferably)
Open device manager on your PC
Windows 7 & 8 users → search for
Device Manager from Start (or Start screen) and click to open.
Windows XP users → Google it
You will see list of all devices attached to your computer in the
device manager. Just find your device (it’ll most probably
be in the Other devices list with a yellow exclamation mark by the
name of ADB devices), then Right-click on it and select Update
Driver Software.
Select “Browse my computer for driver software” in the next window
Now click the “Browse…” button and select the “usb_driver” folder
that we extracted in Step 3 from “latest_usb_driver_windows.zip”
file.
Do NOT select the zip file, select the folder where the
contents of the zip file are extracted. And keep the Include
subfolders box checked
During the installation (as a security check) Windows may ask your
permission to install the drivers, click “Install”
Once the installation is complete you’ll see a refreshed list of
devices on the Device manager screen showing your phone’s driver
installed successfully.
Now in eclipse do following steps to install your app in your device:-
Go to Run > Run Configurations > Target tab.
Check option "Always prompt to pick device". And then running the
application from Eclipse,the prompt window finally showed
your device.
Please check whether your device is shown in the Eclipse device tab in Window > Open Perspective. If its not shown there then you need to install drivers for the the device. Once the device is visible in the Devices tab then change the launch settings for manual target. Once you launch your app then it will allow you to choose from the real device or the virtual devices
If you have the following problem
Then you can so following to fix it
Note : You should enable USB debugging on your android device(It will be in developer option in System settings)
I had this problem. With my galaxy S2. So came here for advice, but couldn't find anything specific. Then I found this 'Kies' software on the Samsung site, under the section for my exact model of phone, under downloads, after clicking software.
It installed the right USB drivers as part of the process of installing Kies and so my phone instantly then became visible on eclipse.
The Kies version for Galaxy S2 (GT I1900) = http://www.samsung.com/uk/support/model/GT-I9100LKAXEU-downloads#
There are other versions of Kies for other android models of course.
(new) device not showing, Check List:
Developer Option ON
USB debugging ON
Try changing to USB Storage/MTP/PTP
if it installs Window driver and fails, there's your problem (verify in Windows Device Manager) fix it.
ok this is an old thread -
but I spent nearly two days and did not get anywhere
Here is what solved my problem
I had USB debugging enabled ( finding developer options itself was a pain - I think the 7 times tap from google is childish and just plain stupid - rant over )
However HTC syn manager , eclipse ADT and windows computer management were all unable to identify my device
My problem was my phone was set to ONLY USB Charge - this was the problem
In 'USB Computer connection' >> Choose the option USB Storage
Once you do this - PC will install drivers and your device will get detected by Eclipse as well as in 'Computer Management' under ''Android USB devices '
Now I still dont know a way to access ''USB Computer connection' but at that time I did get the option to change and t worked
For those ( like me earlier ) who dont know how to identify if 'Computer Management' shows their device look for 'Android USB devices '
If its present - then your device is being detected by your PC
Hope this helps some others
shankar
On a kitkat Google Nexus 7, I tired everything here, and did not succeed. The device did previously connect properly to this computer.
Then I hit settings - developer-options - Revoke USB debugging authorisations
and confirmed that I really did want to revoke them.
I unplugged and plugged the USB. The tablet beeped and asked if wanted to authorise the computer for debugging. I said "Yes" and everything worked again.
For me the problem is with Defective USB Cable. I have tried those above all answers. Nothing gives me any fix. But finally i came to know the problem is because of my usb cable while changing the usb cable. While connecting through the usb cable the phone is charging but the drivers are not installed. Some usb cable don't have the option for that. So while buying check it and buy.
Best approach is install PDA net(software) on both system as well as in android device. This software automatically installs global driver for all phones, provides easy connectivity to android device.
Follow these links to download
For system
http://pdanet.co/
For android device
https://play.google.com/store/apps/details?id=com.pdanet&hl=en
Here is my checklist in windows (not the device itself) when my device is not shown:
Make sure "USB debugging is turned in setting>Developer options.
Check status bar on your device. It tells you if your phone is connected as Media Device (MTP) or Send images (PTP). My device is only listed when PTP is selected.
Turn of windows firewall.
Turn of any proxy programs ran on whole windows ports.
And finally stop adb.exe from windows task manager and wait some seconds to restart automatically.