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

Can't create new game for Android platform #1562

Open
Feralnex opened this issue Nov 18, 2022 · 2 comments
Open

Can't create new game for Android platform #1562

Feralnex opened this issue Nov 18, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Feralnex
Copy link

Feralnex commented Nov 18, 2022

Release Type: Official Release/GitHub (please choose appropriate option)
Official Release

Version: Version number and/or git branch
4.1.0.1734

Platform(s): Does the problem occur on Windows, Android...?
Windows

Describe the bug
Tried to create New game (from template) and i've got some errors indicating to use dotnet workload restore command, which i did by opening project via Visual Studio and executing command. Android SDK's were installed but the problem persists and error inidicating to use dotnet workload restore command still occurs (used google translate to translate some of the lines).

StrideLog.txt

When trying to build Android project via Visual Studio there was an error.

VisualStudioLog.txt

It was pointing at Resources/values/strings.xml inside project:

<resources>
  <string name="app_name"><#= Properties.PackageGameDisplayName #></string>
</resources>

So i just changed value to MyGame2 (name of the project) and new errors occurred.

VisualStudioLog2.txt

Changing android:text="@string/app_text" is easy, but to fix other errors is a hard one and i still don't know what's wrong. Project opens inside Stride but it's empty (blank screen when running on Windows).

To Reproduce
Steps to reproduce the behavior:

  1. Clean installation of Visual Studio 2022 Version 17.4.1 + Xamarin as Single component
  2. Clean installation of Stride Version 4.1.0.1734 + Visual Extension
  3. Try to create New game (from template) for Android platform

Expected behavior
Create New game (from template) in Stride for Android platform.

@Feralnex Feralnex added the bug Something isn't working label Nov 18, 2022
@Feralnex
Copy link
Author

After changing android:text="@string/app_text" to android:text="@string/app_name" (temporarily) in Resources/layout/activity_main.xml and changing all variables from const to static in Resource.designer.cs project builds in Visual Studio but still fails to properly run inside Stride (still the same errors as in StrideLog.txt)

@ykafia
Copy link
Contributor

ykafia commented Nov 18, 2022

There's a PR for that, still unfinished. Needs some help for the xamarin issue

#1456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants