android-studio - 为什么我的 Google API 没有正确安装到 Android Studio AVD?红色图标

标签 android-studio google-api avd

AVD 不会在虚拟设备上运行很多 API 级别。但是我在 SDK Manager 中安装了 API。它们也显示为已安装,但在 Extras 中- 文件夹,它们有这个红色图标,您可以在屏幕截图中看到

here in the Screenshot

我错过了什么?

最佳答案

这是由错误/缺失引起的 source.properties文件例如:我的 Google API 23 是相同的,但它丢失了

源属性

### Android Tool: Source of this archive.
#Fri Aug 19 04:03:37 CEST 2016
Addon.NameDisplay=Google APIs
Addon.NameId=google_apis
Addon.VendorDisplay=Google Inc.
Addon.VendorId=google
AndroidVersion.ApiLevel=23
Pkg.Desc=Android + Google APIs
Pkg.License=Terms and Conditions.... (here was licence but I removed it because it was too big)
Pkg.LicenseRef=android-sdk-license
Pkg.Revision=1
Pkg.SourceUrl=https\://dl.google.com/android/repository/addon.xml

修复它的简单方法是删除包并重新安装它们,但首先检查它是否有效,因为包可能没问题。

关于android-studio - 为什么我的 Google API 没有正确安装到 Android Studio AVD?红色图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38863848/

相关文章:

.net - 带有单引号和反斜杠的 Google Drive Query 问题

java - 如何使用 Google UiAutomator 按下按钮两次?

android - 在 Galaxy S5 中调试应用程序

android - 如何在 Android Studio 3.0 版本中打开 AVD 管理器?

java - Android SDK 28源文件和jar文件不匹配

android - 将 Android Studio 2.0 预览版还原为 Studio 1.5

android - 我在android studio中收到以下错误:java.util.concurrent.ExecutionException:com.android.builder.internal.aapt.AaptException:

php - 使用 stream_context_create 执行 POST——结果为 false :(

java - Instant Enabled App Bundle Not Downloading Full APK 而是显示错误

java - 在不稳定的网络上使用 google API