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

Add C# support for Android in Godot 4.x #68153

Closed
tjacobhi opened this issue Nov 2, 2022 · 26 comments
Closed

Add C# support for Android in Godot 4.x #68153

tjacobhi opened this issue Nov 2, 2022 · 26 comments

Comments

@tjacobhi
Copy link

tjacobhi commented Nov 2, 2022

Godot version

4.0.beta1

System information

Windows 11

Issue description

In Godot 4.0.beta1 mono version, I am unable to export projects to android due to a missing export template for android. On all download sources, it shows windows and linux templates, but no android templates.

When I compare this to the non-mono version, I see android templates.

I have looked at all iterations of godot 4.0 beta here and see later beta versions also don't have android templates for the mono build.

I searched for an issue tracking this, but I was only able to find a closed issue for when godot originally added C# support for android #20267.

Is C# support for android planned for godot 4.0? If so, is there a different issue I should reference for this issue?

Steps to reproduce

  1. Open Godot 4.0.beta1
  2. Select Project -> Install Android Build Template
  3. Select Manage Templates
  4. Select Download and Install
  5. Close Template Manager
  6. Select Project -> Export
  7. Select Add -> Android
  8. Observe error message No export template found at the expected path:

Minimal reproduction project

Not including minimal reproduction project as this should be reproducible in an empty project. Let me know if you need one anyways.

@akien-mga
Copy link
Member

akien-mga commented Nov 2, 2022

C# support for Android, iOS and Web is not planned for 4.0, it will be worked later on for 4.x releases (as soon as possible, but for 4.0 we focus on the desktop platform and the overall feature set and UX).

We should add info about it in the export presets like I did for the lack of UWP support in 3.x in #64778.

@redthing1
Copy link

redthing1 commented Dec 8, 2022

What are the blockers for net6 on Android? I would be interested in trying

@Zireael07

This comment was marked as off-topic.

@Calinou Calinou modified the milestones: 4.0, 4.x Feb 6, 2023
@Calinou Calinou changed the title Mono/C# support for android godot 4.0 Add C# support for Android in Godot 4.x Feb 6, 2023
@Jonak-Adipta-Kalita

This comment was marked as off-topic.

@AThousandShips

This comment was marked as off-topic.

@Jonak-Adipta-Kalita

This comment was marked as off-topic.

@LutherShaw8888

This comment was marked as off-topic.

@akien-mga
Copy link
Member

Please don't comment if you don't have meaningful information to add. We know that C# support for Android is missing, we don't need reminders.

If you want to show your support of the issue, add a 👍 reaction to the first post.

@Racso
Copy link

Racso commented May 22, 2023

Hi. Regarding this: is there an estimate of when will Godot 4.x support C# for Android and iOS? Even a rough estimate would be appreciated. Are we talking about ~2 months? ~6 months? ~1 year?

Thanks!

@redthing1
Copy link

I wouldn't expect any less than 6 months to a year.

@Zireael07
Copy link
Contributor

@behroozbc Adding C# support in Android is a VERY complex task - not a first issue definitely.

Look for things tagged good first issue

@azimuthdeveloper
Copy link

Just a heads up, the Godot site is currently wrong until this issue is resolved. It shows you can use C# for your Godot games. While you can, this lacks an important asterix advising of this problem, and should possibly be updated until this issue is resolved.

image

The square below it advertises cross-platform ability, which is not possible when using C# in 4.0. The website should probably be updated.

image

@Calinou
Copy link
Member

Calinou commented Jul 11, 2023

Just a heads up, the Godot site is currently wrong until this issue is resolved. It shows you can use C# for your Godot games. While you can, this lacks an important asterix advising of this problem, and should possibly be updated until this issue is resolved.

This is being addressed by godotengine/godot-website#671.

@emmauss
Copy link

emmauss commented Jul 17, 2023

There has been quite a lot of changes to make bionic support on dotnet functional in the last couple months, and as of the current dailies, the linux bionic target is supported on dotnet and would be publicly available in the next preview release, which could be this week. Has there been any attempt at building godot using the native aot bionic target?

@jolexxa
Copy link
Contributor

jolexxa commented Aug 11, 2023

If I understand correctly, this issue has become a catch-all for C# mobile export support in Godot 4. Now that preliminary support for exporting to Android was merged in #73257, are there dedicated issues for tracking C# iOS and web export support for Godot?

I looked around, but I could not find specific issues for the other platforms.

@Goldman13
Copy link

For 4.0.* works. Download the templates for non-mono, go to the downloaded template folder and copy all the android files to the mono templates folder

@akien-mga
Copy link
Member

For 4.0.* works. Download the templates for non-mono, go to the downloaded template folder and copy all the android files to the mono templates folder

That's not going to work, unless you're not using any C# code, in which case there's no reason to use the Mono version.

@Zamir7
Copy link

Zamir7 commented Aug 12, 2023

Download the templates for non-mono

where can i download this template?

@Goldman13
Copy link

People, I'm sorry. I was wrong, it won't work.

For 4.0.* works. Download the templates for non-mono, go to the downloaded template folder and copy all the android files to the mono templates folder

That's not going to work, unless you're not using any C# code, in which case there's no reason to use the Mono version.

People, I'm sorry. I was wrong, it won't work.

@akien-mga akien-mga modified the milestones: 4.x, 4.2 Sep 15, 2023
@akien-mga
Copy link
Member

C# support for Android was implemented by #73257 and will be available in Godot 4.2, due for release in November 2023.

You can already test it in the latest dev snapshots (the current one, and first one with the Android export template, is 4.2 dev 4).

There might still be bugs with the implementation, so if you run into any issue when testing, please open a dedicated bug report, so we can make sure to iron out problems before the 4.2 release.

No ETA yet for iOS and Web support, but this is a top priority, we're currently assessing what it will take to get those.

@gtk2k
Copy link

gtk2k commented Sep 16, 2023

4.2 Do I need to configure anything to be able to select C# in dev 4?
C# cannot be select.
image

@saierXP
Copy link

saierXP commented Sep 17, 2023

@gtk2k
https://godotengine.org/article/dev-snapshot-godot-4-2-dev-4/#downloads
You need to download the mono version (it's not renamed yet, it's actually .net)
msedge_u1OoVr6H72
Yours is the standard version.
You can ask questions on other platforms first next time, and if it might be a bug then report it on GitHub.
msedge_l1WOA5yjAH

@gtk2k
Copy link

gtk2k commented Sep 17, 2023

Thanks

@Jonak-Adipta-Kalita
Copy link

Amazing stuff guys! Thanks!!

@geekley
Copy link

geekley commented Oct 27, 2023

No ETA yet for iOS and Web support, but this is a top priority, we're currently assessing what it will take to get those.

Is there an open issue that we can follow just so we can get notified whenever these are available on Godot 4? I couldn't find any. If not, is it okay to open one just for tracking that?

EDIT: Ah sorry, duplicate question 😆 just noticed #68153 (comment)

@akien-mga
Copy link
Member

iOS support was implemented already in #82729.

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