Android Question Google error Duplicate declarations of permission android.permission.WRITE_EXTERNAL_STORAGE with different maxSdkVersions.

saeediqkw

Member
Licensed User
Longtime User
Dear Sir When I upload the application to google store it gives me the message

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

and failed to publish
please help thanks in advance
<code>
'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: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="19" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>

)
'============================short cut copied========
AddActivityText(main, <meta-data android:name="android.app.shortcuts"
android:resource="@xml/shortcuts" />
)

CreateResource(xml, shortcuts.xml,
<shortcuts xmlns:android="http://schemas.android.com/apk/res/android">
<shortcut
android:shortcutId="compose"
android:enabled="true"
android:icon="@drawable/icon"
android:shortcutShortLabel="@string/compose_shortcut_short_label1"
android:shortcutLongLabel="@string/compose_shortcut_long_label1"
android:shortcutDisabledMessage="@string/compose_disabled_message1">
<intent
android:action="b4a.shortcut.item1"
android:targetPackage="naza.food1"
android:targetClass="naza.food1.main" />
<categories android:name="android.shortcut.conversation" />
</shortcut>
<!-- Specify more shortcuts here. -->
</shortcuts>
)

CreateResource(values, strings.xml,
<resources>
<string name="compose_shortcut_short_label1">short label</string>
<string name="compose_shortcut_long_label1">long label</string>
<string name="compose_disabled_message1">disabled</string>
</resources>
)

'=======================end of short cuts
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'CreateResourceFromFile(Macro, Themes.DarkTheme)
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
'End of default text.
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">#0098FF</item>
<item name="colorPrimaryDark">#007CF5</item>
<item name="colorAccent">#AAAA00</item>
<item name="windowNoTitle">true</item>
<item name="windowActionBar">false</item>
<item name="android:windowTranslucentNavigation">false</item>
<item name="android:windowTranslucentStatus">true</item>
</style>
</resources>
)
</code>
I am not using screen short cut any functions because they are not working Later will explore them
 
Last edited:

JohnC

Expert
Licensed User
Longtime User
Please paste a copy of the contents of your manifest file using the <CODE> tags.
 
Upvote 0

drgottjr

Expert
Licensed User
Longtime User
have you checked your manifest?
 
Upvote 0

saeediqkw

Member
Licensed User
Longtime User
Thanks a lot, Sorry I did not use and much forums so I think I have to write the code word to code now I see here thanks a lot for your help
 
Upvote 0
Top