Android Studio connection to a physical device - android

I connect my phone Realme 6s (RMX2002) to my device and the USB debugging is enabled.
Android Studio recognized & connected but doesn't show the app project in flutter like in the photo
So, any suggestions to figure this out?

You need to check your USB cable. They are in two types, one of which only supports phone charging.

I can't quite understand what you're asking here, but according to your photo, no device is selected to debug on.
My advice is to (save) =) and restart Android Studio. Make sure that the RSA fingerprint for your computer is accepted on the phone. Try restarting your phone and reconnecting. Double check that USB debugging is enabled.
I cannot tell what is really going on, it may be an issue with the ADB. Check your Event Log to make sure the ADB debug bridge started successfully.
If you simply try to run your app on an emulator, issues of this kind will be promptly visible.
If you can ascertain that it is not an issue with ADB, Android Studio, or your phone, it is probably a driver issue with your computer, if you are on Windows.
Try this link: https://www.thecustomdroid.com/oppo-realme-usb-drivers/ to install the USB drivers for your computer.
Cheers!

I a had also problem with USB debugging and it was the cable's fault.
An alternative option is to use wireless debugging. A step-by-step guide for Android studio can be found here: https://link.medium.com/UQJWZrfFqob

Related

Samsung phone not getting detected by adt for a specific Android project

I have used my Samsung phone for running an android app(very basic app) once. I was trying to work on another app, but now, when I turn on the usb debugging in my phone and try running the new one, my phone doesn't show up in the CHOOSE A RUNNING ANDROID DEVICE list. I tried to run the previous app again, just to see if it works now, and surprisingly, it does ! I don't remember doing anything else other than turning on the usb debugging thing in my phone.
Any help would be appreciated :)
Thank you in advance.
be sure you have enabled usb debugging from your phone .....if yes follow this ..
First Install This Software on your pc then install apk on your phone
get it from here
http://www.mobogenie.com/product/mobogenie-pc.html
Try to enable ADB through command line tool .
For reference you can follow this link :See the link here
And if there is any further issues please comment below.
You need to install device driver for your Samsung devices After that you can restart your Eclipse & attach phone with usb.Now you can see the devices in devices list.
Connect phone by USB cable to your computer.Remember to set
android:debuggable="true"
in your AndroidManifest file
You'll also need "unknown sources" ticked under
Settings -> Application.
Try this link: http://developer.android.com/guide/developing/device.html
Connecting Your Own Device On Eclipse safely to run Application

Could not recognize my android device on mac

I am trying to connect my android device on mac to test application I developed.
First I installed USB driver, then I activated in my phone the developer option by tapping on Build Number and then tick USB debugging option.
Once I did all those steps when I connect my android mobile, my Mac still not recognize my device.
Any idea to solve it?
Maybe it's your USB cable, try another one.
There are two types of USB cables:
for supplying power only
for supplying power and data
I after few research and testing of existing solutions, I found mine, my issue was released while I have installed Android file Transfer for Mac
I experienced the same problem with a Moto X and my Macbook Pro. I tried many of the suggestions (installed Android File Transfer, tried different usb ports on my computer, Settings => Storage => USB computer connection => toggled between MTP and PTP, etc.). None of these other recommendations helped.
It finally worked when I tried a different micro-usb cable.
Bizarre. You definitely want to first enable Developer Options first by going to Settings => About Phone => tapping Build number 7 times to display Developer Options. From there, you want to enable USB debugging.
I found this solution to be helpful to resolve this problem
Connect your Android to your Mac via USB.
Unlock your Android's screen. ...
Swipe down to open the Android Notification Panel.
Tap the USB option in the Notification Panel.
Tap "File transfer" or "MTP."
Click the Go menu and select "Applications."
Double-click "Android File Transfer."
https://discussions.apple.com/thread/250023078
I had this problem. The only solution was to reboot my computer. Then it started working again.
Just to add my experience here. I had a similar problem with my mac book pro and my Google Pixel 1 device. For me when running adb devices locally, I was no longer showing my device on the list. I would see any emulators I had running, but not my physical device.
My solution and steps:
Go to the "Settings App"
Go to "Developer Options"
Revoke USB debugging Authorizations
Toggle Developer Options off / on
My device then prompted me to allow debugging from my computer and everything continued to work as expected. adb devices resulted in showing my connected device.
Hopefully, this will help someone else if the above does not.
Make sure to have debugging by usb enable on your device.
It is an option inside "Developer options"
I've recently (2018) started to have this issue, and have found the only way to get my device connected is to use a USB hub. I have not been able to track down a root cause but will edit this answer if I can find a solution rather than a workaround.
I connected my Android deceive with my mac:
1) If you use Android studio, you may update to latest version of 1.0.2 or 1.1 preview, because lower version have some problem with ADB connection.
2) You may restart your IDE once again.
3) You may go to settings -- storage -- three docs on the right up corner -- USB computer connection -- enable MTP
I have an HTC U11 and a MacBook Pro (2017). It used to work most of the time, but I experienced issues with it once or twice. Then a restart of the Mac solved the problem.
Recently I was not able to USB debug. adb devices gave nothing, even though my phone said I'm USB debugging (even asked if I wanted to).
After trying many things the solution was to connect my phone and run HTC Sync Manager (I also had to update it). Then it magically started to woek.
I hope it helps somebody.
check your android sdk tools, install your sdk-plateform-tools package.then it is ok
For me what fixed the problem is
i clicked on the notification "USB for file transfer" in the
notification panel on the phone
Clicked on "Transferring images"
Than I clicked on "Transferring files / Android Auto" and it was fixed.

Eclipse show unknown device

I am using HCL ME U1 for testing my android application. But when i am trying to run my app on my device, it show unknown device and failed to install on device.
I follow this question with accepted answer but didn't find any device in device manager.
First time, when i connect device to my computer it show "Device driver successfully installed".
I am using windows 7 32 bit OS.
I didn't find any android device in device manager.
When i use cmd to find out device then it show in list.
I also enable USB Debugging and Unknown source in my hcl tablet.
Please give me some hint or reference.
Thanks in Advance.
Instead of restarting the phone, go to task manager(windows) and kill the adb.exe process. After 10-15 secs, it will restart again by itself. It should detect your device then.
Once I encountered this issue and none of the matters could solve my question except a simple trick. I turned off the phone, ejected the SD card, cleaned it with sth and then put it back into the phone.
After turning on the phone, everything was alright. You have other options too:
Connecting your phone to pc while phone is connected to internet (to update its usb drive)
Updating your ADB driver from device manager (while phone is connected to pc)
Some USB cables don't have debug ability. Be sure of using a proper one.
I recently solved a similar problem in Ubuntu by updating my Android SDK. A year ago, I also remember I had great difficulty getting a different phone to connect to Windows. I remember that, despite receiving the "Device driver successfully installed" message, I had to manually install the usb driver from the SDK Tools Manager.
You might also try "adb devices" to see if your device shows up there. I would expect it to be in the Windows device manager of adb can see it. You mentioned there were no Android devices in Device Manager: check for other unkown devices it might show up as. I believe mine showed up as USB Mass Storage before updating the drivers. An alternate guide to doing so can be found here.

Enable USB debugging on Android

I am trying to enable USB Debugging on Android so that I don't need to use the emulator.
I did what all the posts all around the web say to do: I went to settings -> applications -> Developer -> USB debugging
It still does not turn on the notification sign that USB Debugging is enabled, and Eclipse does not recognize it, and uses the regular emulator.
Does anyone have any idea what is wrong?
You haven't specified what device you are using or what operating system you are using, so that could be helpful.
A few things to keep in mind:
1 Don't mount as USB storage.
2 You also need to make sure to install the drivers for your phone so that the Android Debug Bridge (ADB) can properly communicate. After these are installed, try the command "adb devices" and you should see an item in your list of devices.
Update based on your comment: You can download Kies from Samsung, which include the drivers (as well as other things): http://www.samsung.com/us/kies/
Or you can find unofficial driver-only packages, such as: http://forum.xda-developers.com/showthread.php?t=961956
I think you'll need the OEM USB dirvers.
Read this:
OEM USB Drivers
My experience with windows has been that you might need to un-install the USB drivers under device manager. Then disconnect the device (restart might be required). After plugging the device back in make sure you use the manufactures drivers if available
you have installed your device driver rite?then right click on your app name->run as->run configurations->target->select manual->apply.after that click on debug button then it will ask you to select the device.
If everything else is tested, try with another USB cable.
On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom.
Fruthermore on some devices you will be asked to accept an RSA key, which allows debugging through your computer. This ensures that other adb commands cannot be executed unless you're able to unlock your device.
Detailed information can be found here:
http://developer.android.com/tools/help/adb.html It is the overview about adb commands (which is used to send data to your device) and it starts with the steps how to bring your phone to debug-mode.
I wish to add to Danation's answer with the following.
If you have installed KIES, and you've tried following instructions a couple of times (for the android SDK package) without success, here's what worked for me:
As a precaution, disconnect the device, and press 'Revoke USB Debugging authorizations'.
Now, go to kies, and reinstall the device driver as seen on the image below.
Connect the device.
For me, it was a routine, it usually works when installing kies, but I was stuck on this today for a little while, and I hope i can help others with my solution as well..

How to debug an Android program on a real device using Eclipse?

I have never used debugging on real Android devices yet. I read the manual at http://developer.android.com/guide/developing/device.html for debugging.
I downloaded the driver for Acere130 Android 2.1 to test on it. Now I am not getting any devices when I use command on adb, using adb devices. No real device is there. Only when I run the emulator does it show the emulator virtual device. How can I move forward? What am I missing?
go to setting-->Application-->Developement-->and check the USB debugging
make sure its checked.
It is very easy. If you have connected your phone with your computer and as mcnicholls said you need to enable USB debugging. Have a break point some where in your code. And when you Debug as Android Application. It will work. Your break point will be highlighted. And you can debug your program.
Make sure you have the USB drivers installed for the device you are using.
Make sure you see your device's internal storage in My Computer.
You need to go into the developer settings menu on the phone and enable USB debugging.
To list out how many devices are attached to your machine, run the adb devices command:
paresh#technotalkative:~/android-sdk-linux_86/platform-tools$ adb devices
List of devices attached
Before starting development, you should make sure below things (As others has also answered):
Settings->Applications->Unknown Sources (Make it true)
Settings->Applications->Development->USB debugging (Make it true)
Here is a full description which i think you are looking for: Android - Using Hardware Devices

Categories

Resources