Android Question How to fix this issus Duplicate declarations of permission android.permission.WRITE_EXTERNAL_STORAGE

M.LAZ

Active Member
Licensed User
Longtime User
hi every one..
i've uploaded my app to Google Play with targetSdkVersion 25 and of course i cannot downgrade the target version back.

so i used the Runtime Permissions for sdk > 23
every thing is ok now ,, my app works fine
but when i trying upload to google store give me this error message :

Upload failed
Duplicate declarations of permission android.permission.WRITE_EXTERNAL_STORAGE with different maxSdkVersions.

my manifest file :


Thank u so much..
 

M.LAZ

Active Member
Licensed User
Longtime User
i solved this with uncomment the lines in Manifest Editor :
B4X:
'AddManifestText(
'<uses-permission
'  android:name="android.permission.WRITE_EXTERNAL_STORAGE"
'  android:maxSdkVersion="18" />
')
because when i check AndroidManifest.xml file i found declaration for
B4X:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
may be belongs for a certain lib maybe for runtime permision lib.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…