Connect Bluestacks(蓝叠模拟器) to Android Studio

Connect Bluestacks to Android Studio
今天,用android studio,链接蓝叠模拟器,发现不可以,最终在stack overflow发现了秘密
最重要的一句:
开启adb,在adb运行,adb connect localhost:5555,就可以了。

For those of you who are new to android development and need more detailed instructions:
1. Run BlueStacks
2. Close Android Studio
3. Find adb.exe (windows). The default install location for android studio is: c:\Users\\AppData\Local\Android\android-studio\sdk\platform-tool‌​s
4. Run adb, adb connect localhost:5555
5. Start up android studio again
6. Run your android app. You should see the bluestacks emulator (may be named “unknown” etc) in your device list. Select it and run the app on it.

图片:Connect Bluestacks(蓝叠模拟器) to Android Studio

见效果图:
Connect Bluestacks(蓝叠模拟器) to Android Studio
当然,用夜神模拟器也可以。
夜神:https://www.yeshen.com/