Android Question Duplicate declarations of permission android.permission.WRITE_EXTERNAL_STORAGE

tsteward

Well-Known Member
Licensed User
Longtime User
Duplicate declarations of permission android.permission.WRITE_EXTERNAL_STORAGE with different maxSdkVersions.

I don't know why I'm suddenly getting this error when I try to upload new apk to play store.
Here is my manifest.
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:theme, "@android:style/Theme")
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission(android.permission.READ_PHONE_STATE)
AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
)
'End of default text.
'********* TabStrip ***********************
CreateResource(drawable, background_tab.xml,
<selector xmlns:android="http://schemas.android.com/apk/res/android"
    android:exitFadeDuration="@android:integer/config_shortAnimTime">
    <item android:state_pressed="true" android:drawable="@color/background_tab_pressed" />
    <item android:state_focused="true" android:drawable="@color/background_tab_pressed"/>
    <item android:drawable="@android:color/transparent"/>
</selector>)
CreateResource(values, colors.xml,
<resources>
    <color name="background_tab_pressed">#6633B5E5</color>
</resources>)
'******************************************
'************ Google Play Services Base ************
AddApplicationText(
   <activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
  android:theme="@android:style/Theme.Translucent.NoTitleBar"
  android:exported="false"/>
    <meta-data
  android:name="com.google.android.gms.version"
  android:value="@integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************
'AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)
SetActivityAttribute(keyview, android:windowSoftInputMode, adjustResize|stateHidden)
SetActivityAttribute(vehicleonly, android:windowSoftInputMode, adjustResize|stateHidden)
AddApplicationText(<activity android:name="de.amberhome.objects.preferenceactivity"/>) 
AddApplicationText(<activity android:name="anywheresoftware.b4a.objects.preferenceactivity"/>)
AddPermission(android.permission.GET_ACCOUNTS)
AddApplicationText(
AddApplicationText(<activity
android:name="com.dropbox.core.android.AuthActivity"
android:configChanges="orientation|keyboard"
android:launchMode="singleTask" >
<intent-filter>
<data android:scheme="db-slpb7bvrule9j5n" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>)
 

tsteward

Well-Known Member
Licensed User
Longtime User
Click on the List Permissions button in the Logs tab. It will show you where the other permission comes from.

My guess is that you are using File.DirRootExternal or File.DirDefaultExternal. They shouldn't be used once you switch to targetSdkVersion 23+.
Your the MAN!!
Thank you you were correct as usual.
 
Upvote 0
Top