pbreault / adb-idea

A plugin for Android Studio and Intellij IDEA that speeds up your day to day android development.
Apache License 2.0
2.11k stars 255 forks source link

No Device found #59

Open brucetoo opened 7 years ago

brucetoo commented 7 years ago

Android studio 2.2.2 Once i use Adb idea in one project, when i change to the other project, Adb idea always alert "No Device found". Although i uninstall this plugin and reinstall it.

pbreault commented 7 years ago

Is it one project in particular that is broken or are you saying that if you use it in one project, the other projects that are currently running are not working?

Are the devices visible from adb devices from the command line and from the run dialog in android studio ?

brucetoo commented 7 years ago

Yes, if i use it in one project, the other projects that are currently running are not working.

adb devices command can show the connected devices, and other adb commands work well.

pbreault commented 7 years ago

And is it always the same project that works and the other never work or is it whatever project you opened first that wins ?

What gradle plugin version are you using in these projects ?

brucetoo commented 7 years ago

It's the first opened project wins, and not work for any other project. my local plugin is 1.4.0 the latest one. BTW, the command like adb install/uninstall package_name still works for any projects.

pbreault commented 7 years ago

I can't reproduce this on android 2.2.3 and on 2.3.0-beta4

Can you test on these versions to see if it fixes anything? And is there an error message / stacktrace in the event log ?

image

brucetoo commented 7 years ago

I update AS up to 2.2.3, and test, still only works on the first won project . Even i uninstall plugin and install again. Here are event log.

screen shot 2017-02-16 at 09 24 15
ycdm commented 7 years ago

AS2.3 Not work alert : ADB IDEA: No Device found

ckesc commented 7 years ago

@brucetoo check out new 1.4.1 version! Seems it fixed bug.

brucetoo commented 7 years ago

@ckesc Android studio plugins platform is still old version.. When i install plugin from disk, Here is error tips..so weird! adb

pbreault commented 7 years ago

1.4.1 is a hotfix for Android studio 2.4 , it can't be installed on 2.3 and it doesn't fix the same bug. The error message is the same mainly because it's a generic error that gets handled in a top-level try/catch.

I was able to reproduce this one recently, I'll give it a shot.

AaronRietschlin commented 6 years ago

Note: This was happening to me in Android Studio 3.0 for a while. I uninstalled the plugin, restarted Android Studio, reinstalled it and restarted Android Studio again. It works now.

pcqpcq commented 6 years ago

reinstall works for me, looks like this is caused with upgrade.

arpit07531 commented 4 years ago

its still not working for me. Whenever I start a new android studio instance, adb-idea stops working in the previously opened window. It shows this error - ADB IDEA: No Device found It never works in multiple android studio windows.