sorry but I also have the same problem as this. But with shorter log.
I set the JAVA_HOME,JDKLIB during runtime.
For reference Below is my batch file content:
set EXE4J_JAVA_HOME=%cd%\jdk-14.0.0.36-openj9less\bin*
** set JAVA_HOME=%cd%\jdk-14.0.0.36-openj9less*
** set ANDROID_HOME=E:\androidplatformtools\andrdstd\sdk**
** set JDKLIB="%cd%\jdk-14.0.0.36-openj9less\lib"**
** set PATH_TO_FX="%cd%\javafx-sdk-14\lib"**
** set APACHE_COMMON_MATHS="%cd%\common_maths\commons-math3-3.6.1.jar"**
** set APACHE_COMMON_MATHS_up="%cd%\common_maths"**
** set Fast_Utils="%cd%Fastutils\dsiutils-2.6.5.jar"**
** set Fast_Utils_up="%cd%\Fastutils"**
** set APACHE_COMMON_IO="%cd%\commons-io-2.6\commons-io-2.6.jar"**
** set GRADLE=“E:\Coding\androidstdcode\legacy\gradle-6.3\bin”**
** PATH = %EXE4J_JAVA_HOME%;%PATH%;%GRADLE%**
** set CLASSPATH= .%PATH_TO_FX%;%APACHE_COMMON_IO%;%APACHE_COMMON_MATHS%;%Fast_Utils_up%;%cd%**
** cmd /k**
Then I type gradlew android which produces
Exception in thread “main” java.lang.NullPointerException
-
at org.gradle.wrapper.PathAssembler.getDistName(PathAssembler.java:74)*
-
at org.gradle.wrapper.PathAssembler.getDistribution(PathAssembler.java:40)*
-
at org.gradle.wrapper.Install.createDist(Install.java:40)*
-
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)*
-
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:58)*
which is shorter than op but, still an error.
The local directory at where batch start:
gradle (file not the one used in path because inside have the wrapper folder instead of gradle(versionno))
src
my bat
build.gradle
gradlew
gradlew.bat
Thank you it’'s my first time building an apk originally built desktop app,since now most people are forced to stay at home decided to burn my time.
Any help is welcomed.^^