Closed LennardFi closed 1 year ago
Hi @LennardFi
It is a cryptic error that is unfortunately very common with Android. It's basically saying you have an issue with your Android SDK.
Make sure you follow the getting started documentation.
Also the templates target Android API level 30. Could you try installing this version and try again?
I uninstalled all existing Android devices in Device Manager, removed all installed Android-SDKs and installed a new one with Android R 11.0 (API version 30). Even after restarting Visual Studio and reinstalling the template, as well as recreating the project, the project cannot be built.
EDIT: I forgot to mention, that I followed the getting started doc: I'm using Visual Studio 22 with .NET 6.0.107, 6.0.203 and 6.0.302 installed. F# tools are installed too.
Sorry @TimLariviere , I overlooked to create the project with fabulous-xf-vswin
instead of fabulous-xf
. After recreating the project with fabulous-xf-vswin
I got another error about missing resources. But another issue here helped me: Build the app again after this error. Then it works.
Maybe sombody could change the doc to present the little note about using fabulous-xf-vswin
better. For example by adding a section header like Visual Studio and Windows
. Later today I could create a PR for this. I think that fix could prevent issues like mine ^^
I created a new project with the official template:
After running the lines above, I opened the project in VS and wanted to build it. The build process fails with the following error message. I haven't changed anything in the code yet. Did I forget something or why does it not compile? Is the template broken?