I started building an Android app with Adobe Air so I needed a .p12 key for building the release version .apk
Next I ported the app to Unity3d so I converted the .p12 to .keystore. Up to this point there was no problem uploading new versions to the Developer Console.
Now I rewrote and redesigned the app with Android Studio. When I upload the release version build with Android Studio I’m not able to publish it because of different fingerprints.
I tried to sign the release build in Android Studio with v1, v2 and both.
Any idea on how to solve the issue?
On Unity apk fingerprints creating like “com.companyname.apkname” but On Android Studio fingerprints as default creating like “com.company.name.apkname” and these are diffrent fingerprints as you can see 🙂
It probably solve your problem, try this out and inform me please 🙂
After months of troubleshooting I found the solution.
- In Android Studio choose “Generate Signed Apk”
- Choose “Using v1 (Jar Signature)”
- Build the app
- Rename your appname.apk to appname.zip
- Open the zip file and delete the META-INF Folder
- Rename the appname.zip back to appname.apk
open cmd and use the following command:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore C:\PATH_TO_YOUR_KEYSTORE_FILE\yourkeyname.keystore appname.apk 1
After that run one last command:
C:\PATH_TO_YOUR_ANDROID_BUNDLE_INSTALLATION\Android\adt-bundle-windows-x86_64-20140702\sdk\build-tools\YOUR_CURRENT_BUILD_TOOLS_VERSION\zipalign -p 4 appname.apk newcompletelycorrectsignedapp.apk
Hopefully that was helpful!