Mahdi
Mahdi

Reputation: 6389

connect phone to Android-Studio in Ubuntu for debugging

I'm new on Ubuntu and install Ubuntu 14.04 LTS and for framework I download non-installable Android Studio and SDK tools separately.

I tried this link for Installing USB device on Ubuntu. I succeed in installing USB as MTP. but it wont load in Android Studio. when I run my app "waiting for adb" dialog is shown and finnaly says ADB not responding.

first I thought this is because I don't install adb so I install it with command:

sudo apt-get install android-tools-adb

but still phone wont load for launch app. is this ADB issue or cause my Android Studio is wont installed or some thing else.

Upvotes: 3

Views: 15934

Answers (2)

Mohd Shoaib Khan
Mohd Shoaib Khan

Reputation: 54

if you have tried many terminal commands to connect your physical device to android studio in ubuntu and you failed to connect try this :- Connect your device and change your USB preference(device notification) to PTP,android studio will detect your device.

Upvotes: 1

Tanvir Hossain
Tanvir Hossain

Reputation: 97

in Ubuntu you have to create a rules file called 51-android.rules.

here is the details link: Unable to use my Android device as Android emulator using Android studio

here is the gitHub links: 51-android or 51-android.rules

Upvotes: 3

Related Questions