1

全部,

Android Studio,在右侧的布局渲染窗格中,我收到错误消息:

“未找到 Android SDK。请配置 Android SDK。”

此外,在顶部的 Android 图标旁边,它显示“”。

我尝试使用“管理员”权限运行。

我检查了 SDK 设置是否正确:

File -> Project Structure -> SDK Location.

我检查了我是否安装了 SDK 并在项目结构中配置了路径。

项目构建时没有错误或警告。

该项目在我的 Windows 7 机器上正常运行。我将项目转移到一台新的 Windows 10 机器上,现在遇到了这些问题。

有谁知道如何解决这个问题?

我的头撞在墙上,头痛得很厉害。

我的配置:Android Studio 1.5.1 Windows 10。我把AS包、IDE和SDK一起下载了。

该项目使用需要 Android 4.4.2 (API 19) SDK 的 Motorola Symbol EMDK 库。

在“项目结构”下有:

"Compile SDK Version": "EMDK 4.0 (API 19) (Symbol Technologies LLC) (API 19).
"Build Tools Version": "23.0.2"

从 SDK 管理器中,我已验证已安装以下内容:

Android SDK Tools 24.4.1
Android SDK Platform-tools 23.1
Android SDK Build-tools 23.0.2
Android SDK Build-tools 23.0.1
Android 6.0 (API 23) SDK Platform
Android 6.0 (API 23) Google APIs
Android 6.0 (API 23) Google APIs Intel x86 Atom System Image
Android 4.4.2 (API 19) SDK Platform
Android 4.4.2 (API 19) EMDK 4.0 (API 19)
Android 4.4.2 (API 16) SDK Platform
Android 4.4.2 (API 16) EMDK 4.0 (API 16)
Android Support Repository 25
Android Support Library 23.1.1
Google Repository 24
Google USB Driver 11
Intel HAXM 6.0.1
4

2 回答 2

0

The problem seems to be with the Android bundle. Installing the SDK and IDE separately solved the issue.

Uninstall Android Studio Bundle.
Download the SDK and install.
Download the IDE and install.
Copy the EMDK add-ons manually to the SDK add-ons folder.

All seems to work now.

于 2016-01-28T19:01:29.377 回答
0

我有一个类似的问题(找不到平台 emdk api 19),我通过遵循 emdk 插件的“手动”刷新来解决它,这就是我所做的:

转到“项目结构”,然后是模块,然后是应用程序,然后是“属性”,将“编译 sdk 版本”从“emdk 19”更改为“api 19 android”,编译,然后将其更改回“emdk 19”。然后再次编译。这次终于IDE能够找到“emdk 19”了。

于 2017-05-26T15:07:25.080 回答