我正在安卓上的termux编译马里奥64,但是我遇到了无法完成的问题。
这是发生的错误,请问我哪里出错了? 谢谢!
apksigner sign --cert certificate.pem --key key.pk8 build/us_pc/sm64.us.f3dex2e.apk
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:353)
at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:83) make: *** [Makefile:887: build/us_pc/sm64.us.f3dex2e.apk] Error 1
$ ls -al build/us_pc/sm64.us.f3dex2e.apk
$ cp sm64.us.f3dex2e.apk storage/emulated/Download
cp: cannot stat 'sm64.us.f3dex2e.apk': No such file or directory
jarsigner
而不是apksigner
(在zipalign
之后)找到了一个解决方法,如此处所述:https://dev59.com/zGgu5IYBdhLWcg3w_L7J#40064149 - Maciek Godek