This app won't run unless you update Google Play Services (via Bazaar)

后端 未结 12 1825
长情又很酷
长情又很酷 2020-11-22 03:58

I\'m testing out the new Google Maps API V2 for Android, and I\'m getting this message when the app launches:

\"

相关标签:
12条回答
  • 2020-11-22 04:21

    I have found a nice solution which let you test your app in the emulator and also doesn't require you to revert to the older version of the library. See an answer to Stack Overflow question Running Google Maps v2 on the Android emulator.

    0 讨论(0)
  • 2020-11-22 04:23

    I spent about one day to configure the new gmaps API (Google Maps Android API v2) on the Android emulator. None of the methods of those I found on the Internet was working correctly for me. But still I did it. Here is how:

    1. Create a new emulator with the following configuration:

    Enter image description here

    On the other versions I could not configure because of various errors when I installed the necessary applications.

    2) Start the emulator and install the following applications:

    • GoogleLoginService.apk
    • GoogleServicesFramework.apk
    • Phonesky.apk

    You can do this with following commands:

    2.1) adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
    2.2) adb shell chmod 777 /system/app
    2.3-2.5) adb push Each_of_the_3_apk_files.apk /system/app/

    Links to download APK files. I have copied them from my rooted Android device.

    • GoogleLoginService.apk
    • GoogleServicesFramework.apk
    • Phonesky.apk

    3) Install Google Play Services and Google Maps on the emulator. I have an error 491, if I install them from Google Play store. I uploaded the apps to the emulator and run the installation locally. (You can use adb to install this). Links to the apps:

    • Google Maps
    • Google Play services

    4) I successfully run a demo sample on the emulator after these steps. Here is a screenshot:

    Google Maps

    0 讨论(0)
  • 2020-11-22 04:28
     just change it to 
    
    compile 'com.google.android.gms:play-services-maps:9.6.0'
    compile 'com.google.android.gms:play-services-location:9.6.0'
    

    this works for me current version is 10.0.1

    0 讨论(0)
  • 2020-11-22 04:31

    This app won't run unless you update Google Play Services. I have tried it for such a long much time, but still I didn't get the map... Only a blank screen is appearing, even if I modified my Google Play Service given by the below comment..


    Check your play services manifest file and check the version code for the APK file com.google.android.gms. In the below, it is "3136110". Download these APK files and install from a DOS prompt, but before installation run your target emulator.

    package="com.google.android.gms"
    android:versionCode="3136110"
    android:versionName="3.1.36 (673201-10)
    

    I got these APK files from this link.

    0 讨论(0)
  • 2020-11-22 04:32

    I solved these problem by doing the following steps:

    • In Emulator:

      You have to use the latest API Google APIs(Google Inc.)-API Level 19.

      Do the rest of the things placed in the screenshot itself.

      enter image description here

    • API Key:

      Create New API Key and Check carefully about Google Map API key and SHA Key.

    • Google Play Services:

      You have to download the latest Google Play Services com.android.vending-4.8.20.apk.In that site if google play services wasn't working means you can find a lot of sites in internet named com.android.vending 4.8.20.apk.

      you can run the Google play Services by using the Command Prompt adb install com.android.vending 4.8.20.apk.

      Note: You have to download the latest Google play services because year by year latest version will be updated in internet.

      output:

      enter image description here

    0 讨论(0)
  • 2020-11-22 04:34

    After updating to ADT 22.0.1, due to Android private libraries, the Google Maps service was giving some error and the app crashed. So I found the solution finally and it worked for me.

    Just install the Google Play service library and then go to google-play-service/libproject/google-play-services_lib from https://www.dropbox.com/sh/2ok76ep7lmav0qf/9XVlv61D2b. Import that into your workspace. Clean your project where you want to use gogole-play-services-lib and then build it again and go to the Project -> Properties -> Java BuildPath -> select "Android Private Libraries, Android Dependencies, google-play-service"

    In Properties itself, go to Android and then choose any of the versions and then choose add and select google-play-service-lib and then press apply and finally OK.

    At last, go to the Project -> Android Tools -> Android Support Libraries. Accept the license and after installing then run your project.

    It will work fine.

    0 讨论(0)
提交回复
热议问题