I previously developed on Eclipse and just migrated to Android Studio. Everything works fine, it's better and faster.
I work on real device, and Android Studio recognizes it without issue.
But when I disconnect and reconnect my device, it doesn't recognize my device anymore, I have to exit and restart Android Studio.
I can't find a way to "Reset adb" like Eclipse Feature.
Can ADB be restarted from within Android Studio? If so, how?
To stop the adb server, use the adb kill-server command. You can then restart the server by issuing any other adb command.
To use ADB with your Android device, you must enable a feature called “USB Debugging.” Open your phone's app drawer, tap the Settings icon, and select “About Phone”. Scroll all the way down and tap the “Build Number” item seven times. You should get a message saying you are now a developer.
What I usually do when I get this error is restarting the adb
server by typing in the command into Terminal
:
adb kill-server adb start-server
However this can be achieved in Android Studio. Clicking the Monitor
button you can launch the same program you have referenced from Eclipse.
If you do not see this you may need to update your Platform Tools
from the SDK Manager button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With