Stride: Cannot create android project

Created on 15 Aug 2020  路  7Comments  路  Source: stride3d/stride

Release Type: Official Release

Version: 4.0.0.1-beta04-1265

Platform(s): Windows

Describe the bug
New project cannot be created.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new empty project for .net core 3.1

Expected behavior
I expect the project to be created.

Log and callstacks
Verbose: Restore NuGet packages for MyGame4.Android...

bug platform-Android priority-high work-estimate-S

Most helpful comment

This is the same as I get.

I wish this was being actively developed. It looks such an exciting proposition apposed to Unity but if the tutorial/demo projects can't work out of the box then a lot of users are going to ditch it.

All 7 comments

Does it work better with .NET Framework version of Stride ?

I cannot create .NET Framework android project. The error looks just like this one:
https://github.com/stride3d/stride/issues/780
Unfortunately, there is no working way to create an android project. So, the engine is a no-go for me.

I fixed it temporary for me by removing the MSBuildExtensionsPath variable in the project import of the Xamarin.Android.CSharp.targets.

So I replaced in the *.Android.csproj file
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
by
<Import Project="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.CSharp.targets" />.

I was able to create a project after applying the workaround you've mentioned. As soon as I launch it, I get the following exception:

'Value cannot be null.
Parameter name: path1'

In the Game.Run(GameContext); line.

This is the same as I get.

I wish this was being actively developed. It looks such an exciting proposition apposed to Unity but if the tutorial/demo projects can't work out of the box then a lot of users are going to ditch it.

image

From issue #780

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xen2 picture xen2  路  4Comments

Eideren picture Eideren  路  3Comments

aunpyz picture aunpyz  路  5Comments

Domvel picture Domvel  路  4Comments

CharlesWoodhill picture CharlesWoodhill  路  3Comments