Android Studio 3.0.1 does not find device - android

After I updted Android Studio to 3.0.1 my device was not found anymore (it worked perfectly before).
What I already tryed:
switching usb port and cable (should not be the problem anyway since it worked before)
turn my phone to PTP and back
checking if google usb drivers are installed in sdk
I dont know how I can get it back to work and I dont know if it might be a bug of Android Studio becuase everything worked before.
My Device - OnePlus 3T
My OS on desktop - Windows 10
I hope somebody can help me here.
Thanks!

install Universal ADB Driver
and configure your device with this tool first and then your device will be found by android studio

Related

Android Studio: Running application in emulator not working

Today I downloaded Android Studio for my Debian Testing system. I wanted to run a HelloWorld application but weren't able to run it. With adb I can install it without having any problems.
However, if I try to do it with Android Studio, it gets stuck on 'Installing APKs'. The same happens when I try to start it in an emulator (gets stuck on 'Waiting for target device to come online').
My device is a Samsung Galaxy S3 with LineageOS (Android 7.1.2) and root permissions. Android Studio recognizes my phone properly.
What I've already done:
installed openjdk
set android_home
installed all the SDK-platforms since Android 4.3 and Android Emulator from SDK tools
enabled USB-debugging
tried with MTP and PTP
tried another emulated phone
installed lib32stdc++6
restarted my computer
and probably much more
I tried to do it the whole evening and couldn't find a solution. Is there something Debian-specific because I can only find instructions for Ubuntu? I have never experienced anything close to this on other systems.
Thank you in advance.
EDIT: I am now able to use my phone to run the android application by using USB 2.0 instead of USB 3.0! Is that a normal behavior since it works with native adb? I mean, if I buy a new PC after some years which has got only USB 3.0 ports, will I not be able to use phone debugging with Android Studio or is this just an issue? It is still known since 2014 (https://stackoverflow.com/a/9548311/8292104).
However, I still cannot get the app running on an AVD. I changed graphics to software, now it shows the phone but the screen remains black and the phone won't start. What can I do to fix it?
Try to completely delete and install Android Studio again, I think that it will solve the problem
Another possible solution that worked for me is to, in the application, go to
app - build - intermediates - split-apk - debug - slices
and then delete all of the contents within this folder. Then again, this only worked for me, so I would duplicate the document in case of corruption.

Eclipse won't recognize Android devices

Eclipse isn't recognizing neither of my two Android phones.
I've tried updating all of the Android SDKs in eclipse as well as eclipse itself.
Both of my phones are being recognized by my Macbook and Android File Transfer works like a charm.
They are both in Developer mode with Debug turned on.
I've also tried connecting them in both MTP and PTP but eclipse still won't recognize my phones.
I get the RSA fingerprint pop-up and I press OK but nothing happens.
What could be the problem? I don't know what else to do.
Edit: Eclipse used to work the last time I used it to run Android apps (which was about three-four months ago). Now, it won't recognize my phones. Also, you can't install drivers on the Mac. According to Google, it is just supposed to work.
Edit: This is what I get for the adb devices.
Marcos-MBP:platform-tools Poloe$ ./adb devices
List of devices attached
Found out the problem.
Turned out it was this.
adb devices list empty -- Snow Leopard
My phones weren't being recognized because I had EasyTether installed on my phones and on my Macbook.
According to the EasyTether website:
ADB on Mac OS X stops recognizing the attached device after installing EasyTether driver
Do not follow this advice if you are not a software developer who uses the Android SDK on Mac. Otherwise run "sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext" to unload the EasyTether driver manually. Load it again with kextload when necessary.

Android Studio wont recognize Nexus 7 as device

I am having trouble running an app I am developing in Android Studio on my Nexus 7. I have successfully gotten this to work before using the same tablet and computer (running Windows 8), but since having my laptop repaired and everything wiped I'm convinced something with my dev environment is messed up.
When I go to run the project, there are no available devices, so it is not recognizing my Nexus 7 anymore.
Things I have tried
making sure my computer recognizes the device and that I have the Nexus 7 driver installed from ASUS
going to the SDK manager and ensuring I have the Google USB driver installed
closing Android Studio and re opening it, restarting my computer, restarting my Nexus 7
killing adb.exe from the task manager
ensuring I have USB debugging enabled and toggling that on and off
switching from MTP to PTP and back again (currently connected as MTP, not sure if that is correct)
Any help would be greatly appreciated. This is very frustrating and I would like to just get back to developing again.
Update- I just noticed that when I go to developer options, "Wait for debugger" (near where you toggle USB Debugging) is grayed out. I think this has something to do with it but I'm not sure how to enable it.
I got it!
This was at least the issue in my case, I hope maybe this will help someone someday, apparently I had not installed the adb driver properly:
Search for Device Manager from the search bar on the start screen
Open Device manager, click on your Android device
Select"Update Driver Software"
BOOM. Now Android Studio recognizes the device.
I know this may not be the solution for everyone, but its worth a shot if you are having trouble testing apps on your device.
Between upgrading my second-gen Nexus 7 to Android 5.0.x and Android Studio leaving beta I lost the ability to debug on my tablet.
To get this working again I used a combination of the above advice.
I grabbed a copy of the USB Driver from Asus, but updating the Device in Device Manager and pointing to the unzipped files wasn't enough.
The next step was to point Device Manager to the Android Studio sdk directory (on a 64-bit Windows 8 install that was C:\Program Files (x86)\Android\sdk - beta versions of Android Studio - or %localappdata%\Android\sdk - switched to in 1.x) and then things worked just fine again.
Another possible reason that you may not be able to connect is:
Don't forget to enable debugging mode in Android setting.
I have had the same problem, although just getting started with my Nexus 5 and windows 7. I installed google usb driver package using SDK manager first, computer recognized phone but studio could not find it. Went in to manually update driver for phone but update driver couldnt find it, downloaded driver separately and pointed it to directory path, driver installed then studio found it and ran fine.

Error connecting LG nexus 4 to Eclipse

I am new to Android programming and have been unable to connected my phone to eclipse for debugging and running applications on the go since many days. I have enabled the USB debug mode etc, installed the Google USB drivers and followed all the steps mentioned on the official Google site
http://developer.android.com/tools/device.html
As extra debugging steps for this problem, I tried the Android Debug Monitor tool (monitor.bat) but my phone didnt get recognised in that as well. Also I ensured the my project build SDK version was 19, which i believe is suitable for Android 4.4.4. I used a Moto G(4.4.2) and again I couldnt run apps on it from Eclipse.
But in five minutes by following the same steps I could get the debugging working with Samsung Galaxy duos(android 4.2.2, API 17)
Am I doing something wrong?
OS on PC - Windows 8
Download pda software from pdaorg.co this will surely help you. I was also running with same problem but after installing pda my problem has been sort out.
Try switching your phone's USB computer connection to Camera(PTP) mode. Worked on my side. Hope that helped.

Unable to connect debugger to Jelly Bean Galaxy Nexus

We have a Jelly Bean Galaxy Nexus from Google IO, and have all the latest updates to the Android SDK installed - but we are unable to use USB Debugging on the device from Intellij IDEA.
We set our project to compile using the 4.1 SDK, etc.. no luck. Does anyone know how to get USB debugging working on the new Jelly Bean Galaxy Nexus?
(edit)
This is being tried from a Mac running OS X 10.7.4 - so in theory drivers should not be an issue?
Latest android seems to hide the developer menu in settings, here's the game you have to play to get it back:
Settings->About phone
scroll down to the bottom until you see Build number
click on Build number 7 times
You are now a developer.
Go back to the main settings menu and you'll have the developer menu again
I resolved this kind of problem on my Nexus 7 (no problem with my Galaxy Nexus) by changing the usb connection from MTP to PTP.
Go to settings > Storage > corner menu > USB computer connection > select "PTP".
I hope this will solve your problem.
Oddly enough, opening the Android SDK manager and making sure everything is up to date (it was), and then restarting IDEA fixed this. I can now connect to the Galaxy Nexus.
I'm running Mac OS 10.8 and managed to have ADB and the debugger working with the Nexus 7 after installing Google's Filetransfer application:
http://www.android.com/filetransfer/
I have been having issues trying to get IntelliJ to recognize my nexus 7 ever since I installed it. I was about to go back to windows 7 until I found #eyal-lezmy suggestion. Tried it and everything works great. Mind you I tried getting latest drivers for the laptop and from the Android SDK nothing would work till I changed the connection type from mtp to ptp. Also windows detected the device just that IntteliJ would not.

Categories

Resources