I generate an unsigned released apk, follow this Ashley's tutorial ( https://www.construct.net/tutorials/bui ... truct-3-19 ) and successfully generate the key and align the apk.
However, when I try to sign the apk, using the following
C:\Users\Wai\AppData\Local\Android\sdk\build-tools\27.0.1\apksigner sign --ks release-key.jks --out signed.apk aligned.apk
I got the error:
-Djava.ext.dirs=C:\Users\Wai\AppData\Local\Android\Sdk\build-tools\27.0.1\lib is not supported. Use -classpath instead
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Anyone encounter the same error? What should I do? Thanks in advance.