LoginSignup
4

More than 5 years have passed since last update.

Android Studio で compileSdkVersion を Google APIs にする

Last updated at Posted at 2015-02-26

<ANDROID_SDK>/add-ons/addon-google_apis-google-21 を compileSdkVersion にする方法を調べました。

Eclipse の Properties > Android > Project Build Target で Google APIs を選択したプロジェクトを作成し、Android Studio にインポートしたところ、下記の指定がされていました。

compileSdkVersion 'Google Inc.:Google APIs:21'

これらは manifest.ini にある値下記の形式で構成されているようです。

<vendor>:<name>:<api> 
manifest.ini
# SDK Add-on Manifest

name=Google APIs
name-id=google_apis
vendor=Google Inc.
vendor-id=google
description=Android + Google APIs

# version of the Android platform on which this add-on is built.
api=21

# revision of the add-on
revision=1

# list of libraries, separated by a semi-colon.
libraries=com.google.android.maps;com.android.future.usb.accessory;com.google.android.media.effects

# details for each library
com.google.android.maps=maps.jar;API for Google Maps
com.android.future.usb.accessory=usb.jar;API for USB Accessories
com.google.android.media.effects=effects.jar;Collection of video effects

SystemImage.GpuSupport=true

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4