android - 我的 Android Studio 无法识别我的智能手机

标签 android android-studio ubuntu flutter

我的 Android Studio 找不到我连接的设备。 (没有设计),在我的例子中,我正在尝试使用 Flutter 运行应用程序(但关键是如何识别我连接的设备)。我已经在我的手机中启用了“开发者模式”。

当我尝试运行时

Error = No connected devices found; please connect a device, or see flutter.io/setup for getting started instructions.

我尝试使用虚拟设备,但没有用(我已经尝试了3个虚拟设备)

Error = PANIC: Missing emulator engine program for 'x86' CPU.

因为我的 Ubuntu 看不到我的智能手机,我尝试挂载我的 USB 设备,但这是不可能的。

我该如何解决这个问题?

环境细节

我正在使用以下 Ubuntu 版本

没有可用的 LSB 模块。 经销商 ID:Ubuntu 描述:Ubuntu 17.10 发布:17.10 代号:巧

With Android Studio:

Android Studio 3.1
Build #AI-173.4670197, built on March 21, 2018
JRE: 1.8.0_152-release-1024-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.13.0-37-generic

And My smart phone is:

Lenovo A2016b30 with Android 6.0

最佳答案

在您的手机上,检查您是否启用了“USB 调试”的开发者选项。

此外,您的模拟器似乎缺少 SDK 平台工具,请在 SDK 管理器中检查您是否为模拟器的 API 级别安装了包。

关于android - 我的 Android Studio 无法识别我的智能手机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49675211/

相关文章:

android - Android Studio 中生成的 APK 大小增加

http - Nginx http 和 https block 配置

java - Android Studio 无法解析 : com. android.support :appcompat-v7. 28.0.0

java - Android Studio 中永远不会调用 onLocationUpdate

Proguard 的 Android Firebase 性能问题

android - 如何在插件开发项目中集成 .aar 文件(无法访问包)

php - 在单独的进程中运行函数以避免段错误

python - 无法在 Ubuntu 14.04 上绘制直方图

android - API 11 上的 View.canScrollVertically

Android ServerSocket 接受作为 wifi 热点