Reputation: 211
I am a new developer, I was built an application Android and pushing to google play and appear an error when I pushing a APK file. It takes 5 days, but not fix this error. I use visual studio 2017 (xamarin).
Error:
You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner: ERROR: JAR_SIG_NO_MANIFEST: Missing META-INF/MANIFEST.MF
Upvotes: 20
Views: 16356
Reputation: 4837
Make sure you mark both v1(jar Signature) and V2(full APK signature)
EDIT: By the way, the reason for it to fail if you sign with v2 only, is that v2 was introduced in Android 7.0 (sdk 24) and you are probably targeting an older minSdkVersion
.
Therefore, if you target minSdkVersion 23
or below, you need to use signing schemes v1 AND v2 (or only v1), because if the app is installed on Android 6.0 or older, it can only be verified through v1 scheme.
If you target minSdkVersion 24
or above, then you can use v2 on its own, since the app won't be installed on older versions.
You can also check this poorly noted on Android Docs, third paragraph.
Upvotes: 61
Reputation: 461
Follow this process.
select the menu option Build > Package YourAppName.apk
This will create two .apk files in the bin/Release folder.
1.mono.samples.YourAppName-Signed.APK // Deploy this APK in Playstore. 2.mono.samples.YourAppName.APK
Upvotes: 0