Closed ramsestom closed 2 years ago
OK. I found the solution.
In dependencies/admobex/AndroidManifest.xml,
you need to add:
<uses-sdk android:minSdkVersion="4" />
inside the manifest tag.
The same apply to your libs using google play games (like extension-googleplaygames).
I think it would be worth to add this line to the AndroidManifest.xml of each of your libs as I doubt any one want to use them in android < 1.6 anyway (SdKVersion 4 = android 1.6)
Huh, got the same problem by extension adding the following permissions: `
`
And I don't want them in my app, so thank you @ramsestom for posting this solution! I think the same problem with extension-facebookads.
Should be fixed with new update.
Just saw this extension is adding
android.permission.READ_PHONE_STATE
to the AndroidManifest.xml file. Is it really necessary as, as a result, the generated apk needs aPrivacy Policy
URL to be published on the playstore...?I thought admob only needs
android.permission.INTERNET
permission to works. So do you know why you also add theandroid.permission.READ_PHONE_STATE
permission? Did you experience any issue without it?EDIT: looks like this permission is added because:
reason: com.admobex has a targetSdkVersion < 4
I set
<android target-sdk-version="23" if="android" />
in my project.xml file, as stated in the readme. So how can I have com.admobex with targetSdkVersion>=4, so that this lib do not addandroid.permission.READ_PHONE_STATE
to my final AndroidManifest.xml file?