This app won't run unless you update Google Play services error

后端 未结 10 1998
半阙折子戏
半阙折子戏 2020-12-03 04:39

I\'m kind of lost right now. I\'m implementing an Android application using Google maps.

In order to make it work I followed some tutorials which were pretty efficie

10条回答
  •  無奈伤痛
    2020-12-03 05:18

    To save yourself the trouble of configuring an emulator that does not have google play support,always use an emulator with the playicon

    as depicted in the image:The play icon present under the Playstore row.

    After installing the google play compatible emulator...run your app in the emulator again...and when you get the notification"App wont run unless......"click on the notification and follow the screen prompts:"Signing In using a gmail account...email and password etc",as soon as you agree to the google licence youl get the google play update screen:

    update your google play and launch your app again. Also make sure you have the google dependencies in your app level gradle and gradle:

    App level gradle build.gradle(Module:app)

    dependencies {
    
    }
    
        apply plugin: 'com.google.gms.google-services'
    

    Project level Gradle "build,gradle(Project:AppName)"

    dependencies {

        classpath 'com.google.gms:google-services:3.2.1'
    }
    

提交回复
热议问题