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.
Which JDK do you have? I just went through this process on Sunday, installing JDK9 - it doesn't work! (Can't remember if that was the same error, but it always fails). Had to go back to jdk1.8.0_152, then it worked.
Develop games in your browser. Powerful, performant & highly capable.
Thanks for the prompt reply.
Yes, I am using jdk9 and hopefully I can sign my apk once I go back to jdk1.8.0_152. Thanks again.