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

When exporting to Android with net6.0 as target framework, it proceeds with no errors but game crashes #85843

Open
MohammadAlkurd opened this issue Dec 6, 2023 · 1 comment

Comments

@MohammadAlkurd
Copy link

MohammadAlkurd commented Dec 6, 2023

Tested versions

4.2.stable official and 4.3.dev

System information

linux pop os 22.04LTS

Issue description

when opening a godot project made in 4.1 or earlier there is no override for the targetframework for the android build here is an image as an example
of a brand new project made on 4.2
Screenshot from 2023-12-06 15-25-54

here is an example of an old project updated to 4.3 and previously updated to 4.2
Screenshot from 2023-12-06 15-25-26
the error is as descriped in this image of adb logcat on an emulator

Screenshot from 2023-12-06 15-44-29
after that the game just crashes

i suggest adding a warning or an error when building dotnet android games with dotnet version 6.0 or older i might try adding that myself as a practice one enough people agree but if its possible that another solution is present then i cant really help

Steps to reproduce

opening a project made in godot 4.1 and updating it to 4.2 does not change target framework for android so if u had dotnet 6 installed it wont warn you to update to .net 7 for android

Minimal reproduction project (MRP)

any project with a single c# script attached to node should do the trick with .net 6 in target framework

@akien-mga akien-mga changed the title When building to android apk on .Net 6 building procceds with no errors but game crashes When exporting to Android with net6.0 as target framework, it proceeds with no errors but game crashes Dec 6, 2023
@raulsntos
Copy link
Member

We were discussing upgrading the TFM automatically for existing projects opened with a newer Godot version (like we already do for the Godot SDK).

Checking that the TFM is supported when exporting to Android is something that was suggested during the 4.2 development. I thought that #82762 and godotengine/godot-docs#8227 would be enough for now, since the export is marked experimental anyway.

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

3 participants