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

Exception in "signing with testkey" #234

Open
kresoSoker opened this issue Feb 8, 2023 · 2 comments
Open

Exception in "signing with testkey" #234

kresoSoker opened this issue Feb 8, 2023 · 2 comments

Comments

@kresoSoker
Copy link

I have problem in signing stage of building apk. and cannot run instalation on phone because of this.
-: Signing with testkey...
Exception in thread "main" java.lang.IllegalAccessError: class com.android.apksig.internal.apk.v1.V1SchemeSigner (in unnamed module @0x7a46a697) cannot access class sun.security.x509.AlgorithmId (in module java.base) because module java.base does not export sun.security.x509 to unnamed module @0x7a46a697
at com.android.apksig.internal.apk.v1.V1SchemeSigner.getSupportedAlgorithmId(V1SchemeSigner.java:625)
at com.android.apksig.internal.apk.v1.V1SchemeSigner.(V1SchemeSigner.java:541)
at com.android.apksig.DefaultApkSignerEngine.(DefaultApkSignerEngine.java:149)
at com.android.apksig.DefaultApkSignerEngine.(DefaultApkSignerEngine.java:52)
at com.android.apksig.DefaultApkSignerEngine$Builder.build(DefaultApkSignerEngine.java:902)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:259)
at com.android.apksig.ApkSigner.sign(ApkSigner.java:178)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:277)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:89)
-: Cleaning up...

@up2smoke
Copy link

up2smoke commented Jun 4, 2023

+1

@up2smoke
Copy link

up2smoke commented Jun 4, 2023

This is, how it is working for me (Win10 & ParrotOS)
Install java 20 (Win10), run download_tools.bat and deinstall java 20
Install Java 8 {1.8.0} (Win10/Linux)
That's it's

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

2 participants