Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting Error JAR_SIG_NO_MANIFEST: Missing META-INF/MANIFEST.MF when pushing an apk file

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

like image 449
user3933509 Avatar asked Oct 27 '17 05:10

user3933509


1 Answers

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.

like image 114
DoronK Avatar answered Oct 17 '22 20:10

DoronK