Android Question Upload to Play Store failed

Tjitte Dijkstra

Member
Licensed User
Longtime User
My topography app is ready and I want to upload the free version to the Google Play store.
I get an error:

Upload failed

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

What did I wrong?
To quote my MANIFEST:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
AddManifestText(<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="28" />)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.DarkTheme)
AddPermission(android.permission.MANAGE_DOCUMENTS)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Tjitte Dijkstra

Member
Licensed User
Longtime User
DonManfred,
Thnx so far.
After following your advice the next error came.
I named my apk-file td.freeversion.atlas9.apk and the Play Store said:

Upload failed

Your APK or Android App Bundle's package name must be in the following format "com.example.myapp". It may contain letters (a-z), numbers, and underscores (_). It must start with a lowercase character. It must be 150 characters or fewer.

What next?
 
Upvote 0

ac9ts

Active Member
Licensed User
Longtime User
It's not the actual file name that's blocking it. Change the package name in Project -> Build Configurations.
 
Upvote 0

Tjitte Dijkstra

Member
Licensed User
Longtime User
I followed your advice and Project-> Build Cofigurations (shotcut Ctrl+B) gave the option to rename the Package.
Google wanted a format in three parts, so I named the package td.fullversion.atlas10
Within a week or so, you can find my apps (both ATLAS9 and ATLAS10) in the Play Store
 
Upvote 0
Top