Android Question Solved - Uploaded APK does not have the required token file

RichardN

Well-Known Member
Licensed User
Longtime User
I have been selling apps on the Google Play Store for some time and as such I am a fully verified Google Developer.

I also have a number of private apps that I have written purely for my own use. These now require registering on the developer console to enable me to continue modifying and installing them. When I enter the package name the console (mysteriously) recognises it and offers up a single option of a public key. This public key appears to correspond to the keystore that the app was previously compiled with. So far so good....

It then asks me to upload a release APK compiled with this keystore. This is APK is rejected with the message 'Uploaded APK does not have the required token file'.

What am I doing wrong?
 

RichardN

Well-Known Member
Licensed User
Longtime User
After much searching I found the solution. A missing file from the compilation.... Search on adi-registration.properties
 
Upvote 0

RichardN

Well-Known Member
Licensed User
Longtime User
1. In developer console add your private package name
2. It seems to have 'seen' this package before so it offers you a single SHA256 signature - check it against the Keystore
3. It asks you to upload an APK. In the same dialog there is a 'Snippet' string. Copy this string to a text file called adi-registration.properties in the assets (files) folder.
4. Compile a release version
5. Upload the resulting APK
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…