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

前端之家收集整理的这篇文章主要介绍了android-studio – 为什么我的Google API无法正确安装到Android Studio AVD?红色图标前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
AVD不会在虚拟设备上运行许多API级别.但我在SDK Manager中安装了API.它们也显示为已安装,但在Extras-Folder中,它们有这个红色图标,您可以在屏幕截图中看到它

我错过了什么?

解决方法

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

source.properties

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

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

猜你在找的Android相关文章