Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export to apk error:"'jarsigner' returned with error #1" #47

Closed
zhymin77 opened this issue Feb 12, 2014 · 3 comments
Closed

export to apk error:"'jarsigner' returned with error #1" #47

zhymin77 opened this issue Feb 12, 2014 · 3 comments

Comments

@zhymin77
Copy link

my env: jdk1.6.0_45, and generate keystore by 'keytool -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999'.
When i export apk occured " jarsigner' returned with error #1'", and the apk can be install, but the last step of the install occured 'app not install' .

export linux is good.

@reduz
Copy link
Member

reduz commented Feb 13, 2014

I think jarsigner only works from jdk 6. Do you know how to get it to work in other jarsigner versions?
exporter code is in platforms/android/export/export.cpp

@zhymin77
Copy link
Author

I found export.cpp command :./jarsigner -digestalg SHA1 -sigalg MD5withRSA -verbose -keystore $keystorepath -storepass $pass $apkpath $name.
The exception caused by param '-sigalg MD5withRSA'. After I removed the param(use default param value), everything is ok.

@ScyDev
Copy link
Contributor

ScyDev commented May 22, 2015

Workaround:
#1957

lawnjelly added a commit to lawnjelly/godot that referenced this issue Jun 10, 2023
MisterPuma80 pushed a commit to MisterPuma80/just_a_game_engine that referenced this issue Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants