Google Play Services update

后端 未结 6 800
情深已故
情深已故 2020-11-27 16:09

Yesterday API 19 came out so I upgraded SDK and other (including Google Play Services) now this method:

private boolean isGooglePlayInstalled(){
    int stat         


        
6条回答
  •  [愿得一人]
    2020-11-27 16:44

    Package contents comparison

    The "google_play_services_froyo" lib project contains these com.google.android.gms packages:

    • appstate
    • auth
    • common
    • dynamic
    • games
    • gcm
    • internal
    • location
    • maps
    • panorama
    • plus

    On the other hand, the new (rev. 13) "google_play_services" lib project has some additional packages within com.google.android.gms:

    • ads
    • appstate
    • auth
    • common
    • dynamic
    • games
    • gcm
    • internal
    • location
    • maps
    • panorama
    • plus
    • wallet

    Plus, this package is found in the new (rev. 13) "google_play_services": com.google.ads!

    AndroidManifext.xml comparison

    The old (rev. 12) "google_play_services" had:

    
    
    
        
    
     
    

    The newly introduced "google_play_services_froyo" lib project has:

    
    
    
        
    
    
    

    Conclusion

    The "google_play_services_froyo" is functionally the same as the old (rev. 12) "google_play_services" lib project, so if you just want to keep your app compatible and don't care about the new APIs, just import the "google_play_services_froyo" in your project and you're good to go.

    On the other hand, if you wanted to use the new (rev. 13) "google_play_services" lib project, once you import it, you have to add this to your apps manifest:

    
    
    

    Hope this helped :)

提交回复
热议问题