Where is com.google.android.gms?

前端 未结 6 1261
臣服心动
臣服心动 2020-12-14 02:19

Today I updated Android SDK components to the newest version and somehow the whole com.google.android.gms package is gone. Instead, there is only com.google.android.maps wit

6条回答
  •  情书的邮戳
    2020-12-14 03:09

    For android create project [...] ant CLI-based project

    Similar to: How to correctly include the support library in non-Eclipse Android application

    The best I could find was https://stackoverflow.com/a/30689979/895245:

    1. copy paste android-sdk/extras/google/google_play_services/libproject/google-play-services_lib directory in the project directory
    2. cd into it and run android update project -p . -t android-22
    3. add to your build.xml.

    You can install extras with the android GUI tool, or with this CLI method: Downloading the Android support library from command line

    If you just copy paste the .jar in /extras/google/google_play_services/libproject/google-play-services_lib/libs/google-play-services.jar under the libs/ directory of the project, it compiles but breaks at runtime because of the required res/values/version.xml which is not included in the .jar.

提交回复
热议问题