-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
apksigner: no File.toPath() error #7132
Comments
why are old versions not available in repository if the "improved" code is apt to such hangups? |
what's your android version ? |
7 |
yes then error makes sense now , as it will not work in Android < 8 |
is there a repository with previous versions? it used to work fine on this phone |
Why no old versions? Server disk space optimization. Our hosting capabilities are limited. We are not Debian. Current apksigner is entirely different program than was before. We have switched from custom implementation (which is not developed anymore) to official one from SDK. |
We can provide |
|
thanks. works great with the old style java keystore, but the new style wasn't recognized. sufficient for what's at hand here. thanks again |
@xeffyr I just noticed the new |
You really don't have extra 11MB for cups? Most of space is taken by JDK which takes 300 MB when installed. |
I ended up upgrading - but still, I'm kind of curious about why |
libcups is listed as a build dependency in archlinux, so maybe the dependency can be moved to TERMUX_PKG_BUILD_DEPENDS? (I have not tested the build yet) |
This is already done in latest rebuild (based on actual linking and built-in termux-packages/packages/openjdk-17/build.sh Lines 9 to 11 in ed2f924
OpenJDK uses it internally for some functions even in headless build (PrintService API). So |
~/.../build/output $ apksigner sign --ks-type PKCS12 --ks /storage/emulated/0/canandlamp-release-key.keystore.new --in app-unsigned-debug.apk --out test-signed.apk
Keystore password for signer #1:
Exception in thread "main" java.lang.NoSuchMethodError: No virtual method toPath()Ljava/nio/file/Path; in class Ljava/io/File; or its super classes (declaration of 'java.io.File' appears in /system/framework/core-oj.jar)
at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:362)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:88)
Originally posted by @canandlamp in #5747 (comment)
The text was updated successfully, but these errors were encountered: