jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected 463 but got 465 bytes)
You are trying to sign an already signed .apk
.
You need to export an unsigned .apk
file and then sign it with jarsigner
.
Android Signing application on Windows
You don't need to do it with commands. In Eclipse, right click on your project->Android Tools->Export Signed Application Package.
Follow the wizard and you will have an signed apk without pain.
Edit:
After a quick search about the new error, this thread seems to contain possible fix for you. At instance, please try to clean your project and build it again. If it does not fix your problem, also try the fix mentioned in the link.
Export unsigned apk from a Gradle Project in Android Studio
Use
Build > Make Project
to build an apk file from Android Studio.
You can get your unsigned apk under the below path
$YOUR_PROJECT/$YOUR_MODULE/build/apk
unsigned apk files will have "unsigned" text in their names.
[ UPDATE ] :
In Recent release of Android Studio you will not get apk file on sysncing or Make Project. There are two other methods in order to get the apk file
- Run the app
- Execute assemble Task from Gradle panel present in right hand side of Studio window or from embedded terminal window on bottom(in project Root)
gradlew assembleDebug(or whatever build varient you want a build for)
and the update new apk path will be
$YOUR_PROJECT/$YOUR_MODULE/build/outputs/apk
This has been done by Android Tools team to improve the Android Studio performance.
Related Topics
How to Make a Dialog Slide from Bottom to Middle of Screen in Android
Cordova "Hello World" App Won't Display
Android Studio - Cannot Resolve Symbol 'Firebase'
Android/View/View$Onunhandledkeyeventlistener (Onmeasure Error)
How to Download Xml File from Server and Save It in Sd Card
Android-Textview Settext in HTML.Fromhtml to Display Image and Text
Phonegap & Android - How to Use The New Select List Style
Flutter: Upgrade The Version Code for Play Store
Picture Taken with Camera Intent Is Low Quality on Imageview (7.0+)
When Do I Use Setstate in Flutter
Receive Audio via Bluetooth in Android
Onpagefinished() Never Called (Webview)!
Save Webview Content to Android Storage and Load It
Gradle Dsl Method Not Found: 'Implementation()'
How to Detect If Device Support Notch Display
How to Change The Navigationview's Item Text Size
Could Not Resolve All Dependencies for Configuration ':App:Debugapkcopy'