简体   繁体   English

无法将设备连接到 android studio(设备名称显示在顶部的栏中)

[英]Cannot connect device to android studio (device name is showing in the bar at the top)

Please check the image for reference: android studio emulator error .请查看图片以供参考: android studio emulator error

Please help if you know how to solve this problem.如果您知道如何解决此问题,请提供帮助。

Here are some simple default solutions you can try以下是一些您可以尝试的简单默认解决方案

Please make sure that you installed the Samsung device drivers because its really important to have communication.请确保您安装了三星设备驱动程序,因为进行通信非常重要。

  1. Try to restart the device.尝试重新启动设备。

  2. Go to **settings>about>**tap on Build version seven times. Go 到 **settings>about>**点击Build version七次。

  3. Then there will be developer option in settings.然后设置里会有开发者选项

  4. GO to it and enable USB debuggings. GO 并启用USB 调试。

  5. Open the termial in android studio and type the following在 android studio 中打开终端并输入以下内容

    adb devices if you see a dialog in device click allow. adb devices 如果您在设备中看到一个对话框,请单击允许。

Hope it helps:)希望能帮助到你:)

Be sure you have defined android SDK path确保您已定义 android SDK 路径

you can define it this way:你可以这样定义它:

flutter config --android-sdk ANDROID_SDK_PATH

but use "ANDROID_SDK_PATH" = your path, for example:但使用 "ANDROID_SDK_PATH" = 你的路径,例如:

flutter config --android-sdk C:\Users\%youruser%\AppData\Local\Android\Sdk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM