i'm having issues getting manifest correct v2 google maps. error log cat @ run time i'm receiving is:
`java.lang.securityexception: maps api requires additional following permissions set in androidmanifest.xml ensure correct behaviour: <uses-permission android:name="android.permission.access_network_state"/> <uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.write_external_storage"/>`
now i've tried multitude of different things working, far i've been unsuccessful. if take @ manifest , me out appreciated.
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.examples.test.night" > <application android:allowbackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <!-- open gl google maps --> <meta-data android:name="com.google.android.geo.api_key" android:value="***********************"/> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <uses-feature android:glesversion="0x00020000" android:required="true"/> <!-- creating permission receive google maps --> <permission android:name="com.examples.test.night.maps_receive" android:protectionlevel="signature" /> <uses-permission android:name="com.examples.test.night.permission.maps_receive" /> <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.access_wifi_state" /> <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" /> <uses-permission android:name="android.permission.call_phone" /> <uses-permission android:name="android.permission.read_phone_state" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.read_phone_state" /> <activity android:name=".mainactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name=".mainactivity2activity" android:label="@string/title_activity_main_activity2" > </activity> </application> </manifest>
thanks again can help.
<uses-permission>
tags must outside <application>
tag.
Comments
Post a Comment