Google places shows blank

后端 未结 1 1290
梦如初夏
梦如初夏 2020-12-12 05:15

I want to use google places api but this is now working shows me Request_denied in android app and also in browser . please help

following this tutorial for google p

相关标签:
1条回答
  • 2020-12-12 06:01

    Create a new project in google api provide the details like name and you package name and your sha1 key then click android in that. After that it show new key there you find generate new keys(browser,server,android) you can create the keys for both browser and android.

    First enable the following services in google Api console

    1.Google Maps API v2

    2.Places API

    3.Analytics API

    <uses-permission android:name="(YourPackageName).permission.MAPS_RECEIVE"/>
    
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    

    add this also

        <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true"/>  
    

    Any problem to this let me know.

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