问题
My Android Studio (1.3.2) is not recognising my phone "OnePlus Two"
I am having Mac (OS x Yosemite 10.10.5) with latest Android SDK.
Update 1: The file transfer software installed on my mac "Android File Transfer" is able to recognise the phone as soon as I connect phone to mac.
Update 2:
While trying to look for all connected device through terminal, I even don't see my device their by executing command adb devices
Update 3: I do tried killing adb and starting again but that too didn't work.
PS: I have enabled USB debugging on the Developer Option
回答1:
Got answer of my question on OnePlus2 Forum. Sharing the same here to help other users.
To solve this we need to run a script on Mac or Linux based system.
- Enable debugging mode on your OP2 (OnePlus2)
- Connect to your Mac or linux based PC
- You will see a drive on your finder with the name "One Plus Drivers"
- There you will see one file with the name "Op2_adb_config_Linux_OSX.sh"
- Copy this file to your documents folder
- Open terminal and execute the above file (sh Op2_adb_config_Linux_OSX.sh)
- It will perform necessary steps on your system and then your OP2 will be recognised by Android Studio.
来源:https://stackoverflow.com/questions/32617974/android-studio-is-not-recognising-oneplus2-on-mac-linux