Reputation: 693
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
Upvotes: 37
Views: 166711
Reputation: 9
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.
Upvotes: 0
Reputation: 31
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)
Upvotes: 3
Reputation: 461
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
Upvotes: 2
Reputation: 793
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.
Upvotes: 0
Reputation: 11
For Android 7, Galaxy S6 Edge:
If Developer Options is not available then
Now perform step 1. Now it should work, if its still not working then perform these steps. It worked for me.
Upvotes: 1
Reputation: 1007
To test an android apps in a real device with Android Studio, You must keep two things in mind
Now , let me tell you how you can enable USB debugging on your android phone:
Now let me tell you how you can download the driver on your Windows PC:
Upvotes: 12
Reputation: 225
Upvotes: 23
Reputation: 647
If USB Debugging Mode is enabled and does not work, you should install your device driver.
For Nexus Devices;
For Another Devices;
Hope it helps!
Upvotes: 0
Reputation: 699
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
Upvotes: 0
Reputation: 121
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
Upvotes: 12
Reputation: 693
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.
Upvotes: 29