This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hey! I'm getting this error when trying to generate Android templates.

PS D:\Projects\Godot builds\godot-3.4.4-stable\platform\android\java> .\gradlew generateGodotTemplates --stacktrace

> Configure project :lib
Looking for scons executable path
Checking scons.bat
Found executable path for scons: C:\Python310\Scripts\scons.exe
Looking for scons executable path
Checking scons.bat
Found executable path for scons: C:\Python310\Scripts\scons.exe

> Configure project :
No native shared libs for target release. Skipping build.
No native shared libs for target release. Skipping build.

FAILURE: Build failed with an exception. 

* Where:
Build file 'D:\Projects\Godot builds\godot-3.4.4-stable\platform\android\java\build.gradle' line: 208

* What went wrong:
A problem occurred evaluating root project 'Godot'.
> A problem occurred configuring project ':nativeSrcsConfigs'.
   > java.lang.NullPointerException (no error message)

Everything works fine when I try to export my project from the editor with Use custom build enabled.

Godot version 3.4.4
in Engine by (34 points)

Did you follow the steps for exporting for Android and creating custom builds for Android?

1 Answer

0 votes

After uninstalling and then reinstalling SCons, Python, the JDK, Android Studio (including the SDK) it now works.
The only thing that I did differently this time is that I uninstalled all versions of the Android SDK Platform and Build tools that weren't listed here

by (34 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.