Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are my Google APIs not installing properly to Android Studio AVD? Red iconed

AVD won't run many API levels on the virtual device. But I installed the APIs in the SDK Manager. They are also shown as installed but in the Extras-Folder, they have this red icon, which you can see here in the Screenshot

here in the Screenshot

What am I missing?

like image 619
John Ashmore Avatar asked Aug 10 '16 03:08

John Ashmore


People also ask

Why my AVD is not working?

Android Virtual Devices fail to launch on ChromeOS On ChromeOS, Android Virtual Devices (AVDs) might fail to launch because the libnss3 dependency is missing. To launch the AVDs successfully, run sudo apt install libnss3 to manually install the libnss3 library.

Which system image is best for Android Studio?

x86 images run the fastest in the emulator. If you see Download next to the system image, you need to click it to download the system image.

How can I change sdk path in Android Studio?

To set the Android SDK location, enter the full path of the Android SDK directory into the Android SDK Location box. You can navigate to the Android SDK location in File Explorer, copy the path from the address bar, and paste this path into the Android SDK Location box.

How do I find Android SDK path?

Navigate to the File > Settings option you will get to see below dialog screen. Inside that screen. Click on Appearance and Behavior option > System Settings options and then click on the Android SDK option to get to see the below screen. Inside this screen, you will get to see your SDK path.


2 Answers

This is caused by wrong/missing source.properties file for example: my Google API 23 was the same and it was missing

source.properties

### 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

The easy way to repair it is to delete packages and install them again, but first check if it works, because it is possible that the package is fine.

like image 118
pr0gramist Avatar answered Sep 20 '22 05:09

pr0gramist


You missing the base api level of particular google api as per your screenshot. refer to this for more info http://tools.android.com/recent/sdkmanagerfixes

like image 35
Mohit Dixit Avatar answered Sep 17 '22 05:09

Mohit Dixit