Android Build Error in task ':packageReleaseBundle' for module 'installTime'

Godot Version

3.6

Question

I switched from Godot 3.5.3 to 3.6 and had to update my JDK (from 11 to 17) and Android Build Template.

Now I’m getting this error when building the .aab:

Execution failed for task ‘:packageReleaseBundle’.

A failure occurred while executing com.android.build.gradle.internal.tasks.PackageBundleTask$BundleToolWorkAction

Both modules ‘base’ and ‘installTime’ contain asset entry ‘assets/Assets/Art/Background.png.import’.

Building the .apk doesn’t have any problems.

Has anyone any ideas how to fix this?