Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Export fails with "Transient parent has another exclusive child" when "Use Gradle Build" is on #82760

Open
markeel opened this issue Oct 4, 2023 · 6 comments

Comments

@markeel
Copy link

markeel commented Oct 4, 2023

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Godot v4.1.1.stable - Ubuntu 22.04.3 LTS 22.04 - Vulkan (Compatibility) - Mesa Intel(R) UHD Graphics 770 (ADL-S GT1) () - 12th Gen Intel(R) Core(TM) i7-12700K (20 Threads)

Issue description

When attempting to do an export of a minimal project for Android, received

Set gradle_build/use_gradle_build
  Attempting to parent and popup a dialog that already has a parent.
0 param: --xr_mode_regular
1 param: --use_immersive
  editor/export/editor_export_platform.h:178 - Export: Building of Android project failed, check output for the error. Alternatively visit docs.godotengine.org for Android build documentation.

I initiated the export by doing:

  • Project -> Export...
  • Selecting "Android (Runnable)"
  • Clicking "Export Project..." button

When I unchecked "Use Gradle Build" the problem went away

Steps to reproduce

Load the attached minimal reproduction project.
Do Project->Export...
Click "Export Project.." button

Minimal reproduction project

android.zip

@cike556677
Copy link

I also encountered this problem

@coinight
Copy link

I also encountered this problem.Reinstalled android studio,Reinstalled jdk11. changed jdk11 to jdk17,Resetted JAVA_HOME,Noting works

@YuriSizov
Copy link
Contributor

To be clear, the message has nothing to do with why the export fails. It's just an editor bug where we fail to display the error message.

See these issues for potential solutions to why the export actually failes:

@coinight
Copy link

As YuriSizov's says,because of nothing displayed the error message,it's hard to find out what's going wrong.
I tried to uninstall all the environment and reinstall again twice,the first time just jdk11 sdk android studio,the second time jdk11 sdk android studio and unity(?!), in the second time i tried,everything fixed.
So weird.
To solve this,just uninstall everything,and reinstall,then it may fixed

@YuriSizov
Copy link
Contributor

I'm looking into the issue with the editor dialog, and while I can reproduce it and I know the cause for it, I also get the entire error printed in the output log regardless. Maybe try running the editor with the --verbose flag? It shouldn't be needed, but maybe it will help?

@akien-mga
Copy link
Member

akien-mga commented Nov 16, 2023

I'm looking into the issue with the editor dialog, and while I can reproduce it and I know the cause for it, I also get the entire error printed in the output log regardless. Maybe try running the editor with the --verbose flag? It shouldn't be needed, but maybe it will help?

Note that the lack of showing the real error was solved recently by #84779.

Edit: Didn't mean to close, misclick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants