Gradle error: A problem occurred configuring project ':nativeSrcsConfigs'.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pattlebass

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.

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

Ertain | 2022-04-21 05:09

:bust_in_silhouette: Reply From: pattlebass

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