Git Product home page Git Product logo

maui-samples's Introduction

.NET MAUI Samples

Samples built with .NET Multi-platform App UI (.NET MAUI).

.NET MAUI is a cross-platform framework for creating mobile and desktop apps with C# and XAML. Using .NET MAUI, you can develop apps that can run on Android, iOS, iPadOS, macOS, and Windows from a single shared codebase.

Official Samples

Official samples can be accessed via the Samples browser.

Sample highlights include:

Community Samples

.NET MAUI Links

.NET Foundation

There are many .NET related projects on GitHub.

  • .NET home repo - links to hundreds of .NET projects, from Microsoft and the community.
  • ASP.NET Core home - the best place to start learning about ASP.NET Core.

This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.

License

.NET (including the maui-samples repo) is licensed under the MIT license.

maui-samples's People

Contributors

adegeo avatar chucker avatar davidbritch avatar davidortinau avatar dellis1972 avatar delneg avatar elliotone avatar jamesmontemagno avatar jfversluis avatar jonathanpeppers avatar jongalloway avatar lutzroeder avatar mattleibow avatar microsoftopensource avatar monke8555 avatar ncarandini avatar ncastle1 avatar nxtn avatar peterblazejewicz avatar pjcollins avatar pureween avatar rachelkang avatar radekdoulik avatar redth avatar rolfbjarne avatar spouliot avatar steveisok avatar sweekriti91 avatar tondat avatar vladislavantonyuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maui-samples's Issues

Build error with HelloMaui for Android

Hello,

I wanted to try the HelloMaui sample. After downloading and installing everything according to the readme i tried building it using

dotnet build HelloMaui -f net6.0-android

as described, but I get these errors

C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.win-x64\11.0.200-ci.main.148\tools\Xamarin.Android.Aapt2.targets(157,3): error APT2260: resource style/Theme.AppCompat.Light.DarkActionBar (aka com.microsoft.hellomaui:style/Theme.AppCompat.Light.DarkActionBar) not found. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]
Resources\values\styles.xml(2): error APT2260: style attribute 'attr/colorPrimary (aka com.microsoft.hellomaui:attr/colorPrimary)' not found. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]
Resources\values\styles.xml(2): error APT2260: style attribute 'attr/colorPrimaryDark (aka com.microsoft.hellomaui:attr/colorPrimaryDark)' not found. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]
Resources\values\styles.xml(2): error APT2260: style attribute 'attr/colorAccent (aka com.microsoft.hellomaui:attr/colorAccent)' not found. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.win-x64\11.0.200-ci.main.148\tools\Xamarin.Android.Aapt2.targets(157,3): error APT2260: resource style/ThemeOverlay.AppCompat.Dark.ActionBar (aka com.microsoft.hellomaui:style/ThemeOverlay.AppCompat.Dark.ActionBar) not found. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]
Resources\values\styles.xml(2): error APT2260: style attribute 'attr/windowActionBar (aka com.microsoft.hellomaui:attr/windowActionBar)' not found. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]
Resources\values\styles.xml(2): error APT2260: style attribute 'attr/windowNoTitle (aka com.microsoft.hellomaui:attr/windowNoTitle)' not found. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.win-x64\11.0.200-ci.main.148\tools\Xamarin.Android.Aapt2.targets(157,3): error APT2260: resource style/ThemeOverlay.AppCompat.Light (aka com.microsoft.hellomaui:style/ThemeOverlay.AppCompat.Light) not found. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.win-x64\11.0.200-ci.main.148\tools\Xamarin.Android.Aapt2.targets(157,3): error APT2062: failed linking references. [PATH\net6-mobile-samples\HelloMaui\HelloMaui.csproj]

for the build. As far as I can tell everything should be installed. Also, since restarting Visual Studio I can no longer select HelloMaui as the startup project.

Can't run from VS for Mac

Hi, I can run the MAUI sample from my MacBook Pro CLI with the dotnet build HelloMaui -t:Run -f net6.0-ios command:

image

but from VS for Mac I get errors:

image

Is something "On my Mac" or VS for Mac is still not ready to support MAUI in .NET 6 Preview 4 ?

Problem with building iOS samples

MacOS Catalina 10.15.5, XCode 11.5, .NET 5 Preview 7 (latest master):

dotnet build HelloiOS/HelloiOS.csproj

Microsoft (R) Build Engine version 16.7.0-preview-20270-03+bee129d1b for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore...
Restored /Users/marcinkruszynski/Projects/net6-samples-master/HelloiOS/HelloiOS.csproj (in 2.73 min).
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
HelloiOS -> /Users/marcinkruszynski/Projects/net6-samples-master/HelloiOS/bin/Debug/net5.0/ios-x64/HelloiOS.dll
Detected signing identity:

Bundle Id: com.microsoft.net5.helloios
App Id: com.microsoft.net5.helloios

[warnings]
Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
clang : error : linker command failed with exit code 1 (use -v to see invocation) [/Users/marcinkruszynski/Projects/net6-samples-master/HelloiOS/HelloiOS.csproj]

Build FAILED.

Any idea what is a problem? Newer Xcode 11.5 or .NET 5 version?

Does not run in Android emulator

Both HelloAndroid and HelloForms successfully build, but they don't attach to my android emulator. The output for dotnet build HelloForms/HelloForms.csproj -t:Run -p:TargetFramework=net6.0-android is

Microsoft (R) Build Engine version 16.9.0-preview-20561-01+56ab63409 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  Restored C:\Users\joshua\Documents\net6-samples\HelloForms\HelloForms.csproj (in 1.03 min).
  You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
  HelloForms -> C:\Users\joshua\Documents\net6-samples\HelloForms\bin\Debug\net6.0-android\HelloForms.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:02:14.82

Am I missing a step?

Missing samples for desktop

Reading docs related to MAUI and getting navigate to this samples repo. In the samples docs in this repo you mention Android and iOS. However most of us in the community are also interested on delivering of the MAUI application for desktop as a webassembly.
Looking for that kind of samples.

Thanks in advance.

An item with the same key has already been added. Key: microsoft-android-sdk-full

I update to .NET 6 preview 5 in MacBook .

but when I run dotnet tool update --global Redth.Net.Maui.Check
it show me this error:

/var/folders/rt/xqzgzfjd1bvcq4r7tw_vdpqc0000gn/T/bouisozj.tf5/restore.csproj(5,3): warning MSB4242: The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed to run. An item with the same key has already been added. Key: microsoft-android-sdk-full
/usr/local/share/dotnet/sdk/6.0.100-preview.5.21302.13/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props(14,3): warning MSB4242: The SDK resolver "Microsoft.DotNet.MSBuildWorkloadSdkResolver" failed to run. An item with the same key has already been added. Key: microsoft-android-sdk-full
/usr/local/share/dotnet/sdk/6.0.100-preview.5.21302.13/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props(14,38): error MSB4236: The SDK 'Microsoft.NET.SDK.WorkloadAutoImportPropsLocator' specified could not be found. [/var/folders/rt/xqzgzfjd1bvcq4r7tw_vdpqc0000gn/T/bouisozj.tf5/restore.csproj]
Tool 'redth.net.maui.check' failed to update due to the following:
The tool package could not be restored.
Tool 'redth.net.maui.check' failed to install. This failure may have been caused by:

  • You are attempting to install a preview release and did not use the --version option to specify the version.
  • A package by this name was found, but it was not a .NET tool.
  • The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
  • You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool

"System.Xml.XmlException: Root element is missing" when trying to run the application

Hi.

I just cloned the repo and followed the steps to run the HelloMaui project, but always ends up with the following error:

You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.osx-x64/11.0.200-ci.main.148/tools/Xamarin.Android.Tooling.targets(64,5): error XARSD7000: System.Xml.XmlException: Root element is missing.

My setup:

  • macOS Big Sur 11.2.1
  • Visual Studio Code 1.54.3
  • .NET Version 6.0.100-preview.2.21155.3

I´ve also installed the iOS and android workloads

Steps to reproduce:

  1. Clone the repository
  2. Open the workspace in VSCode code net6-mobile-samples.code-workspace
  3. Open the Command Palette for Run Build Task and select Build
  4. Select HelloMaui/HelloMaui.csproj
  5. Select Build
  6. Select Debug

This also occured when trying to build it from the terminal by writing:

dotnet build HelloMaui -t:Run -f net6.0-android --no-restore

Removing the --no-restore results in:

error MSB4057: The target "Run" does not exist in the project.

Any suggestions that might get this example up and running?

Add macOS sample?

What the title says. I only use Xamarin.Mac, so that technology is what I am most interested in.

Target framework is netcoreapp5.0 not net5.0

And it cannot work with the latest preview .NET SDK.

However, if I change the sample targetframework to net5.0 I get error. I know this should be temporary problem. What is the workaround?

C:\work\net5-samples\packages\microsoft.android.sdk\10.4.99.51\tools\Xamarin.Android.Tooling.targets(61,5): error XARSD7004: System.ArgumentException: `C:\work\net5-samples\packages\microsoft.android.ref\10.4.99.51\ref\net5.0` must be a directory! (Parameter 'frameworkDirectories') [C:\work\net5-samples\HelloAndroid\HelloAndroid.csproj]
C:\work\net5-samples\packages\microsoft.android.sdk\10.4.99.51\tools\Xamarin.Android.Tooling.targets(61,5): error XARSD7004:    at Xamarin.Android.Tools.AndroidVersions..ctor(IEnumerable`1 frameworkDirectories) in /Users/builder/azdo/_work/255/s/xamarin-android/external/monodroid/tools/msbuild/external/androidtools/external/xamarin-android-tools/src/Xamarin.Android.Tools.AndroidSdk/AndroidVersions.cs:line 30 [C:\work\net5-samples\HelloAndroid\HelloAndroid.csproj]
C:\work\net5-samples\packages\microsoft.android.sdk\10.4.99.51\tools\Xamarin.Android.Tooling.targets(61,5): error XARSD7004:    at Xamarin.Android.Tasks.MonoAndroidHelper.RefreshSupportedVersions(String[] referenceAssemblyPaths) [C:\work\net5-samples\HelloAndroid\HelloAndroid.csproj]
C:\work\net5-samples\packages\microsoft.android.sdk\10.4.99.51\tools\Xamarin.Android.Tooling.targets(61,5): error XARSD7004:    at Xamarin.Android.Tasks.ResolveSdks.RunTask() [C:\work\net5-samples\HelloAndroid\HelloAndroid.csproj]
C:\work\net5-samples\packages\microsoft.android.sdk\10.4.99.51\tools\Xamarin.Android.Tooling.targets(61,5): error XARSD7004:    at Xamarin.Android.Tasks.AndroidTask.Execute() [C:\work\net5-samples\HelloAndroid\HelloAndroid.csproj]

NETSDK1139 when restoring any macOS project

I have version 6.0.100-preview.3.21202.5 of the .NET SDK installed. I have created a sample project using the dotnet new macos -o macos_test command. But when I run dotnet restore on that project, I get the following error (wrapped for readability):

/usr/local/share/dotnet/sdk/6.0.100-preview.3.21202.5/Sdks/Microsoft.NET.Sdk/
targets/Microsoft.NET.TargetFrameworkInference.targets(109,5): error NETSDK1139:
The target platform identifier macos was not recognized.
[/Volumes/Sources/AvaloniaTest/AvaloniaTest/AvaloniaTest.csproj]

This occurs on any project using that TFM. What can be done about this?


msbuild.binlog

dotnet --info output:

.NET SDK (reflecting any global.json):
 Version:   6.0.100-preview.3.21202.5
 Commit:    aee38a6dd4

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  11.2
 OS Platform: Darwin
 RID:         osx.11.0-x64
 Base Path:   /usr/local/share/dotnet/sdk/6.0.100-preview.3.21202.5/

Host (useful for support):
  Version: 6.0.0-preview.3.21201.4
  Commit:  236cb21e3c

.NET SDKs installed:
  5.0.202 [/usr/local/share/dotnet/sdk]
  6.0.100-preview.3.21202.5 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 5.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.0-preview.3.21201.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 5.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0-preview.3.21201.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

HelloMaui build error

Hello Team,

I installed Preview1, now I installed Preview2. I was able to run iOS and Android project without any issue but everytime when I try to build HelloMaui project, dotnet is crashing. Here is a crash log,

Process: dotnet [45008]
Path: /usr/local/share/dotnet/dotnet
Identifier: dotnet
Version: 0
Code Type: X86-64 (Native)
Parent Process: dotnet [45006]
Responsible: Terminal [2397]
User ID: 501

Date/Time: 2021-03-17 15:43:21.008 -0700
OS Version: macOS 11.2.1 (20D74)
Report Version: 12
Anonymous UUID: 7AB70660-25A8-5B42-2565-6231F91B77B5

Sleep/Wake UUID: DBDCE2AC-AC5D-4CAF-A3CB-B4E8D57A4A6F

Time Awake Since Boot: 840000 seconds
Time Since Wake: 7800 seconds

System Integrity Protection: enabled

Crashed Thread: 17 .NET ThreadPool Worker

Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace CODESIGNING, Code 0x2

kernel messages:

VM Regions Near 0x10a3aed20 (cr2):
__LINKEDIT 10a00d000-10a034000 [ 156K] r--/rwx SM=COW /usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.0-preview.2.21154.6/libhostpolicy.dylib
--> __TEXT 10a034000-10a538000 [ 5136K] r-x/rwx SM=COW /usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.0-preview.2.21154.6/libcoreclr.dylib
__DATA 10a538000-10a53e000 [ 24K] rw-/rwx SM=COW /usr/local/share/dotnet/shared/Microsoft.NETCore.App/6.0.0-preview.2.21154.6/libcoreclr.dylib

Application Specific Information:
dyld: in dlopen()
/Users/bhavesh/development/MAUI/net6-mobile-samples-main/packages/microsoft.maui.resizetizer/6.0.100-preview.2.174/buildTransitive/libSkiaSharp.dylib

Samples Dead on Arrival VS For Mac 8.10 Build 1773 (.Net 6 Preview 4)

Hello:
I am VS for Mac Preview Channel. I have VS 4 Mac ver 8.10 1773. When i open up net6-samples.sln and build i only get:
uilding HelloiOS (Debug)

Build started 6/5/2021 5:59:18 PM.
/usr/local/share/dotnet/sdk/6.0.100-preview.4.21255.9/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.props(14,38): error MSB4236: The SDK 'Microsoft.NET.SDK.WorkloadAutoImportPropsLocator' specified could not be found.

Build succeeded.
0 Warning(s)
0 Error(s)

Time Elapsed 00:00:00.04

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Build: 1 error, 0 warnings

How to choose the iOS simulator?

Hi folks,
Is there a way to ask for a specific iOS simulator when using the CLI command to run the project?

As an example, when running the dotnet build HelloMaui -t:Run -f net6.0-ios command from the CLI, the iPad Pro simulator is started.

Is there a way to set it to a different model (i.e. iPhone 12) ?

HelloiOS sample does not build with dotnet 6.0.100-alpha

The iOS sample does not build on MacOS with 6.0.100-alpha.1.20479.7:

$ dotnet build HelloiOS/HelloiOS.csproj -t:Run
Microsoft (R) Build Engine version 16.8.0-preview-20473-01+250161603 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore...
All projects are up-to-date for restore.
The application to execute does not exist: '/Users/vadim/projects/net6-samples/HelloiOS/bin/Debug/net5.0-ios/ios-x64/HelloiOS.dll'
/usr/local/share/dotnet/sdk/6.0.100-alpha.1.20479.7/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(814,5): error MSB3073: The command "dotnet exec "/Users/vadim/projects/net6-samples/HelloiOS/bin/Debug/net5.0-ios/ios-x64/HelloiOS.dll"" exited with code 129. [/Users/vadim/projects/net6-samples/HelloiOS/HelloiOS.csproj]

Build FAILED.

/usr/local/share/dotnet/sdk/6.0.100-alpha.1.20479.7/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(814,5): error MSB3073: The command "dotnet exec "/Users/vadim/projects/net6-samples/HelloiOS/bin/Debug/net5.0-ios/ios-x64/HelloiOS.dll"" exited with code 129. [/Users/vadim/projects/net6-samples/HelloiOS/HelloiOS.csproj]
0 Warning(s)
1 Error(s)

NU1202 when restoring my project

@jonathanpeppers
I have version 6.0.100-preview.3.21215.22 of the .NET SDK installed. I have created a sample project using the dotnet new maui -n hello command. But when I run dotnet restore on that project, I get the following error (wrapped for readability):

msbuild.binlog
image

maui-check
image

occure error NU1202
image

System.Reflection.TargetInvocationException HResult=0x80131604

I have a freshly created Windows 10 VM and when I attempt to run the HelloWinUI3.sln I receive a System.Reflection.TargetInvocationException.

Windows 10 Version: Microsoft Windows [Version 10.0.19042.985]
Dotnet SDK version: 6.0.100-preview.3.21202.5 [C:\Program Files\dotnet\sdk]
Visual Studio Version: Microsoft Visual Studio Enterprise 2019 Preview Version 16.10.0 Preview 4.0
Maui-check response: Congratulations, everything looks great!

System.Reflection.TargetInvocationException
HResult=0x80131604
Message=Exception has been thrown by the target of an invocation.
Source=System.Private.CoreLib
StackTrace:
at System.RuntimeType.CreateInstanceOfT()
at System.Activator.CreateInstanceT
at WinRT.WeakLazy`1.get_Value()
at Microsoft.UI.Xaml.Application._IApplicationStatics.get_Instance()
at Microsoft.UI.Xaml.Application.Start(ApplicationInitializationCallback callback)
at HelloWinUI3.Program.Main(String[] args) in C:\Users\Bob\Documents\Code\net6-mobile-samples\HelloWinUI3\HelloWinUI3\obj\x64\Debug\net6.0-windows10.0.19041.0\App.g.i.cs:line 26

This exception was originally thrown at this call stack:
[External Code]

Inner Exception 1:
COMException: Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))

MSB4057: The target "Install" does not exist in the project

Im facing the issue mentioned in the title when deploying the "HelloForms" project in Android.

version: VS 2019 16.9 Preview 4.

Done all workarounds mentioned for deploying the sample.

am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.microsoft.net6.helloforms/crc6454ad0c421ff6d919.MainActivity"
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.microsoft.net6.helloforms/crc6454ad0c421ff6d919.MainActivity }
Error type 3
Error: Activity class {com.microsoft.net6.helloforms/crc6454ad0c421ff6d919.MainActivity} does not exist.
Failed to launch android application

Button text not centered in sample app

Not sure if this is the right repository to report but I ran the MAUI sample application in a Pixel XL Emulator and noticed that the text in the button is not centered (see image attached).
The issue seems to persist using other emulated devices.

Screenshot_1

Support for native-aot?

Could not find any reference or statement, but will Xamarin for .NET 6 support Native-AOT?

Add F# Sample ?

Currently, all the samples are only for C#. Can we see some F# samples ?

[MAUI] Crash when running on a simulator with Google Play Store enabled

Hi there,

I tried the MAUI sample on Android API29 and API30 with and without store. The crash happens only when MAUI is running on Android emulator with Google Play Store enabled. Without Google Play Store everything works as expected.

03-18 09:36:57.633  4982  4982 I MonoDroid:   --- End of managed Java.Lang.ArrayIndexOutOfBoundsException stack trace ---
03-18 09:36:57.633  4982  4982 I MonoDroid: java.lang.ArrayIndexOutOfBoundsException: length=23; index=-4
03-18 09:36:57.633  4982  4982 I MonoDroid:     at android.text.StaticLayout.getLineTop(StaticLayout.java:1213)

I've attached two logs which I got via catlog.

MAUI_crash_api30_withstore_pixel3a.log
MAUI_crash_api29_withstore_pixel.log

Any idea?

PS: The native Xamarin.Android project doesn't crash at all.

  • Eddy

ios sample depends on VS for Mac settings

I have multiple Xcode versions installed:

-rw-r--r--@  1 alklig  admin  836 Feb  8 15:06 Xcode
lrwxr-xr-x   1 root    admin   28 Feb  8 15:08 Xcode.app -> /Applications/Xcode_12.4.app
drwxr-xr-x   3 alklig  staff   96 Jun  4  2018 Xcode94.app
drwxr-xr-x   3 alklig  staff   96 Oct  8  2020 Xcode_12.1.app
drwxr-xr-x   4 alklig  staff  128 Feb  8 15:07 Xcode_12.4.app

dotnet build HelloiOS produces

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/14.4.100-ci.main.1192/tools/msbuild/iOS/Xamarin.Shared.targets(891,3): error : Could not find a valid Xcode app bundle at '/Applications/Xcode_12.3.app'. Please update your Apple SDK location in Visual Studio's preferences (Projects > SDK Locations > Apple > Apple SDK). [/Users/alklig/work/net6-mobile-samples/HelloiOS/HelloiOS.csproj]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/14.4.100-ci.main.1192/tools/msbuild/iOS/Xamarin.Shared.targets(891,3): error :          [/Users/alklig/work/net6-mobile-samples/HelloiOS/HelloiOS.csproj]

Build FAILED.

because in VS for Mac I had the Apple SDK setting pointing to /Applications/Xcode_12.3.app (which I deleted).

the CLI builds should use the result of xcode-select -p for the SDK, not the VS for Mac setting.

Android workload for Linux

So, there isn't an Android workload for Linux?

I understand that it may be difficult to bring iOS support to Linux, but what prevents you from bringing an Android workload?

Is that in the plans? Should I wait for the next releases?

Thanks in advance.

Build Issue with Samples

MacOS
After updating VS, XCode, downloading and installing all the packages from this list (https://github.com/dotnet/net6-mobile-samples), and rebooting, I get the following error following the readme instructions:

dotnet build HelloMaui -t:Run -f net6.0-maccatalyst
Microsoft (R) Build Engine version 16.10.0-preview-21126-01+6819f7ab0 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore...
All projects are up-to-date for restore.
/Users/Projects/Microsoft/net6-mobile-samples/HelloMaui/HelloMaui.csproj : error MSB4057: The target "Run" does not exist in the project.

The target platform identifier ios was not recognized

I try to build net6-samples ,but it shows:

/usr/local/share/dotnet/sdk/6.0.100-alpha.1.20562.2/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(109,5): error NETSDK1139: The target platform identifier ios was not recognized. [/Users/lokinfey/Downloads/net6-samples-main/HelloiOS/HelloiOS.csproj]

The target platform identifier android was not recognized

I've cloned the latest from main, installed all the prereq's, rebooted my PC, yet when I run dotnet build HelloAndroid I get the following error...

C:\Users\andre\Documents\GitHub\net6-mobile-samples>dotnet build HelloAndroid

Microsoft (R) Build Engine version 16.10.0-preview-21126-01+6819f7ab0 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(109,5): error NETSDK1139: The target platform identifier android was not recognized. [C:\Users\andre\Documents\GitHub\net6-mobile-samples\HelloAndroid\HelloAndroid.csproj]

I'm running Windows 10, here's what appears from dotnet --info

.NET SDK (reflecting any global.json):
 Version:   6.0.100-preview.2.21155.3
 Commit:    1a9103db2d

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19042
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\

Host (useful for support):
  Version: 6.0.0-preview.2.21154.6
  Commit:  3eaf1f316b

.NET SDKs installed:
  2.1.801 [C:\Program Files\dotnet\sdk]
  5.0.201 [C:\Program Files\dotnet\sdk]
  6.0.100-preview.2.21155.3 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.0-preview.2.21154.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0-preview.2.21154.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.0-preview.2.21154.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issue building sample solution/projects

Issue:

I am having issues with building anything in the solution for the sample projects.

Reproduce Steps:

  1. Checkout tag 6.0.1xx-preview2
  2. Open solution with Visual Studio Preview
  3. Build Solution
  4. Observe the results below:

Errors In Error List:
image

Error Message:
image


Other Info:

Visual Studio Version: v16.10.0 Preview v1.0
.NET SDK: Installed .NET SDK 6.0.100-preview.2.21155.3(x64)
Windows Version: v20H2 (OS Build 19042.868)

error MSB4057 on Maui build

Executing the "dotnet build HelloMaui -t:Run -f net6.0-android" command results in the following error: "error MSB4057: The target "Run" does not exist in the project."

https://i.imgur.com/SG96wBr.png

.NET SDK (reflecting any global.json):
Version: 6.0.100-preview.2.21155.3
Commit: 1a9103db2d

Runtime Environment:
OS Name: Windows
OS Version: 10.0.21327
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.100-preview.2.21155.3\

Host (useful for support):
Version: 6.0.0-preview.2.21154.6
Commit: 3eaf1f316b

.NET SDKs installed:
5.0.200-preview.21077.7 [C:\Program Files\dotnet\sdk]
6.0.100-preview.2.21155.3 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0-preview.2.21154.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0-preview.2.21154.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0-preview.2.21154.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Issues launching HelloMaui on iOS

Issue

Description

The goal is to run the iOS sample on a physical iOS device. Unfortunately, it is not deploying on the connected device and is instead launching an iPad Pro 12.9" iOS 14.4 simulator, from which the app also fails to deploy.

Reproduction

  1. Connect physical iPhone device to MacBook
  2. Open terminal and run dotnet build HelloMaui -t:Run -f net6.0-ios
  3. Build runs, launches iPad Pro 12.9" iOS 14.4 simulator, attempts to launch app and fails

Link

https://gist.github.com/rachelkang/35017258c7f04a0a64fce4f20cf08c4f

Environment/Setup:

Working from:

MacBook Pro (16-inch, 2019)
macOS Big Sur version 11.2.3

Connected physical device:

iPhone 7
iOS 14.5 developer beta

Documentation and other learning materials

Hi,

I would like to know if there is any learning material available for maui. I know it's only a preview, so I'm not expecting much, but everything I could find so far basically just showed the sample files. I would like to know if there is anything more that can help experimenting with the preview and describe the differences to Xamarin.

Regards

Thorsten

How to config Remote Mac connection for build and debug on VSCode

I am using command :
dotnet build -t:Run -f net6.0-ios -v 5
the build failed with the output log:


 _SayHello:
         Executing SayHello Task to establish a connection to a Remote Server. 
                                Properties:
                                        SessionId=7cad9bf7ca52f5b0a773315268fdac9a558a08fdad80d446fc993167d3ae587a,
                                        ServerPort=,
                                        ServerAddress=,
                                        ServerUser=,
                                        ServerPassword=,
                                        SSHKey=,
                                        SSHPassPhrase=,
                                        AppName=FirstMAUIApp,
                                        VisualStudioProcessId=,
                                        ContinueOnDisconnected=true
         Connection Information for App 'FirstMAUIApp'. Address: , Port: 0, User: 

and I guess I will have to configure the ssh connection.

Reference errors in xaml

Hi everyone,
I can successfully build the HelloWinUI3 in VisualStudio and HelloAndroid but I get this errors in the xaml. The project runs, but since I do not see the proper assembly I cannot try some other things or have to guess but still get error after wards.
I cloned the latest version of the solution and ran the maui check (that gives me green light ;))

MAUI_Xaml_ReferenceError

MAUI_Xaml_ReferenceError1

MAUI_Xaml_ReferenceError2

MAUI_Xaml_ReferenceError3

Does anyone have this problem or/and know how to solve it?

Thanks!
Dani

Sample MacOS console app

Hi, I'd like to run the MacOS application as headless - without UI, pretty much as described here.

Would it be possible to provide a working PoC of how to do that using dotnet SDK 6.0, or at least list steps required to achieve that?

(macOS pkg for) iOS workload doesn't include sentinel

(Related: #47)

I'm not sure if this is by design, but the Android workload adds a .sentinel file to ./sdk/, and the iOS one doesn't:

image

Consequently, only installing the SDK and the iOS workload will result in the "The target platform identifier ios was not recognized" error.

If this is intended, the README should make it clearer that building the iOS sample on macOS will fail unless you also install the Android workload.

BUILD Error NETSDK1147 on Apple M1

Hello I get the following errors with this command
dotnet build HelloMaui -t:Run -f net6.0-ios

Error:
/usr/local/share/dotnet/sdk/6.0.100-preview.2.21155.3/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.ImportWorkloads.targets(24,5): error NETSDK1147: Die folgenden Workloadpakete wurden nicht installiert: Microsoft.Android.Sdk [/Users//Downloads/net6-mobile-samples-main/HelloMaui/HelloMaui.csproj]

Installed:
SDK 6.0.100-preview.2 (Arm64)
macOS: Microsoft.NET.Workload.Android-11.0.200.148.pkg
macOS: Microsoft.iOS.Bundle.14.4.100-ci.main.1192.pkg
macOS: Microsoft.MacCatalyst.Bundle.14.3.100-ci.main.337.pkg

System:
MacBook Pro 2020 (M1)
Visual Studio 2019
Xcode 12.4

MAUI: Add multi page sample

It would be really helpful if the HelloMaui sample could be extended to have multiple pages.

I was testing out the HellMaui sample and everything works fine so far. I can run the project on iOS, Android and Mac, I can create ViewModels, bind them to my ContentPage (Basically everything that I'm used to from Xamarin.Forms.) and so on.

However I'm having trouble when it comes to the navigation between pages. The workflow seems to have changed quiet a bit, now that Windows are used. In Xamarin.Forms I could just set the MainPage to be a NavigationPage and I was good to go. Now I'm a bit lost on how to implement similar behavior. Simply changing the IPage during runtime in the Window that is being created on startup does not seem to have any effect.

Would be nice if someone could help me out and point me in the right direction or give me a small example on how I should approach the navigation in MAUI.

Best Regards

MAUI Blazor project doesn't run on the profile Android Emulator

I have a fresh install of Visual Studio 2019 16.11.0 Preview 1.0
maui-check reports everything looks good

I created a new MAUI Blasor app.

The app builds ok, but I get the following error:

image

The following is my build output:

Build started...
Starting emulator pixel_3a_xl_r_11_0_-api_30 ...
1>------ Build started: Project: MauiBlazorApp, Configuration: Debug Any CPU ------
C:\Program Files (x86)\Android\android-sdk\emulator\emulator.EXE -no-boot-anim -avd pixel_3a_xl_r_11_0
-api_30 -prop monodroid.avdname=pixel_3a_xl_r_11_0-api_30
1>You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
1>Executing SayHello Task to establish a connection to a Remote Server.
1> Properties:
1> SessionId=c135e47bb1a154a39597340e670832779022756061a3269c117c0d6d1c51bde9,
1> ServerPort=,
1> ServerAddress=,
1> ServerUser=,
1> ServerPassword=,
1> SSHKey=,
1> SSHPassPhrase=,
1> AppName=MauiBlazorApp,
1> VisualStudioProcessId=3920,
1> ContinueOnDisconnected=true
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\14.5.100-preview.4.638\tools\msbuild\iOS\Xamarin.Messaging.Build.targets(107,3): warning VSX1000: Not enough information has been provided to MSBuild in order to establish a connection to a Remote Server. The project 'MauiBlazorApp' will continue building offline
1>You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
1>You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
1>C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\11.0.200-preview.4.245\tools\Xamarin.Android.Common.targets(424,3): warning XA0119: Using fast deployment and AOT at the same time is not recommended. Use fast deployment for Debug configurations and AOT for Release configurations.
1>wwwroot\css\app.css : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\bootstrap\bootstrap.min.css : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\bootstrap\bootstrap.min.css.map : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\FONT-LICENSE : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\font\css\open-iconic-bootstrap.min.css : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\font\fonts\open-iconic.eot : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\font\fonts\open-iconic.otf : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\font\fonts\open-iconic.svg : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\font\fonts\open-iconic.ttf : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\font\fonts\open-iconic.woff : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\ICON-LICENSE : warning XA0101: @(Content) build action is not supported
1>wwwroot\css\open-iconic\README.md : warning XA0101: @(Content) build action is not supported
1>wwwroot\index.html : warning XA0101: @(Content) build action is not supported
1>MauiBlazorApp -> C:\srcMAUI\MauiBlazorApp\MauiBlazorApp\MauiBlazorApp\bin\Debug\net6.0-maccatalyst\maccatalyst-x64\MauiBlazorApp.dll
1>MauiBlazorApp -> C:\srcMAUI\MauiBlazorApp\MauiBlazorApp\MauiBlazorApp\bin\Debug\net6.0-android\MauiBlazorApp.dll
1>Done building project "MauiBlazorApp.csproj".
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\14.5.100-preview.4.638\tools\msbuild\iOS\Xamarin.Messaging.Build.targets(107,3): warning VSX1000: The connection to the Mac Server with Address='' and User='' couldn't be established. The project 'MauiBlazorApp' will continue building offline
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\14.5.100-preview.4.638\tools\msbuild\iOS\Xamarin.Messaging.Apple.targets(31,3): warning : There is no available connection to the Mac. Task 'VerifyXcodeVersion' will not be executed
1>MauiBlazorApp -> C:\srcMAUI\MauiBlazorApp\MauiBlazorApp\MauiBlazorApp\bin\Debug\net6.0-ios\iossimulator-x64\MauiBlazorApp.dll
1>Done building project "MauiBlazorApp.csproj".
2>------ Deploy started: Project: MauiBlazorApp, Configuration: Debug Any CPU ------
2>Waiting for the emulator is ready...
Emulator pixel_3a_xl_r_11_0
-api_30 is running.
2>Starting deployment to pixel_3a_xl_r_11_0
-api_30 ...
2>Deploying to pixel_3a_xl_r_11_0
-_api_30 ...
Build started.
Project "MauiBlazorApp.csproj" (Install target(s)):
You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
There is no application host available for the specified RuntimeIdentifier 'android-x86'.
Found Java SDK version 1.8.0.
Found Java SDK version 1.8.0.
Dex Fast Deployment Enabled: False
MonoAndroid Tools: C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\11.0.200-preview.4.245\tools
Android Platform API level: 30
TargetFrameworkVersion: v6.0
Android NDK:
Android SDK: C:\Program Files (x86)\Android\android-sdk
Android SDK Build Tools: C:\Program Files (x86)\Android\android-sdk\build-tools\30.0.2
Java SDK: C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25
Application Java class: android.app.Application
Skipping target "ProcessMauiSplashScreens" because all output files are up-to-date with respect to the input files.
Skipping target "ProcessMauiFonts" because all output files are up-to-date with respect to the input files.
Skipping target "ResizetizeImages" because all output files are up-to-date with respect to the input files.
Skipping target "_ResolveLibraryProjectImports" because all output files are up-to-date with respect to the input files.
Skipping target "_BuildLibraryImportsCache" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateAndroidResourceDir" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateLayoutBindings" because it has no outputs.
Skipping target "_ConvertResourcesCases" because all output files are up-to-date with respect to the input files.
Skipping target "_CompileResources" because all output files are up-to-date with respect to the input files.
Skipping target "_PrepareUpdateAndroidResgen" because all output files are up-to-date with respect to the input files.
Skipping target "_UpdateAndroidResgen" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateEmbeddedFilesManifest" because all output files are up-to-date with respect to the input files.
Project "MauiBlazorApp.csproj" (_ComputeFilesToPublishForRuntimeIdentifiers target(s)):
Done building project "MauiBlazorApp.csproj".
Project "MauiBlazorApp.csproj" (_ComputeFilesToPublishForRuntimeIdentifiers target(s)):
Done building project "MauiBlazorApp.csproj".
Skipping target "_LinkAssembliesNoShrink" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateJavaStubs" because all output files are up-to-date with respect to the input files.
Skipping target "_ManifestMerger" because all output files are up-to-date with respect to the input files.
Skipping target "_ConvertCustomView" because all output files are up-to-date with respect to the input files.
Skipping target "_AddStaticResources" because all output files are up-to-date with respect to the input files.
Skipping target "_GeneratePackageManagerJava" because all output files are up-to-date with respect to the input files.
Skipping target "_GenerateAndroidAssetsDir" because all output files are up-to-date with respect to the input files.
Skipping target "_PrepareCreateBaseApk" because all output files are up-to-date with respect to the input files.
Skipping target "_CreateBaseApk" because all output files are up-to-date with respect to the input files.
Skipping target "_CompileJava" because all output files are up-to-date with respect to the input files.
Skipping target "_CompileNativeAssemblySources" because all output files are up-to-date with respect to the input files.
Skipping target "_CreateApplicationSharedLibraries" because all output files are up-to-date with respect to the input files.
Skipping target "_CompileToDalvik" because all output files are up-to-date with respect to the input files.
Skipping target "_BuildApkFastDev" because all output files are up-to-date with respect to the input files.
Skipping target "_CopyPackage" because all output files are up-to-date with respect to the input files.
Touching "obj\Debug
et6.0-android\android_debug_keystore.flag".
Skipping target "_Sign" because all output files are up-to-date with respect to the input files.
Skipping target "Upload" because all output files are up-to-date with respect to the input files.
Done building project "MauiBlazorApp.csproj".
Build succeeded.
2>Deployment was successful to pixel_3a_xl_r_11_0
-_api_30.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========

I also had the following warning output:

Severity Code Description Project File Line Suppression State
Warning XA0119 Using fast deployment and AOT at the same time is not recommended. Use fast deployment for Debug configurations and AOT for Release configurations. MauiBlazorApp C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\11.0.200-preview.4.245\tools\Xamarin.Android.Common.targets 424

Any ideas on this issue and a way to resolve it?

Maui-check fails on Android Emulator Setup

running maui-check multiple times. Windows 10 fresh build.

Other reports here: Redth/dotnet-maui-check#36

Output:

Android Emulator Checkup...
x Android Emulator - x86 - API30 - Google API's not created.

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
☼ Recommendation: Create an Android Emulator
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

! Attempt to fix? [y/n] (y): y
» Attempting to fix: Android Emulator
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
at com.android.repository.api.SchemaModule$SchemaModuleVersion.(SchemaModule.java:156)
at com.android.repository.api.SchemaModule.(SchemaModule.java:75)
at com.android.sdklib.repository.AndroidSdkHandler.(AndroidSdkHandler.java:81)
at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 5 more
Fix applied. Checking again...

Android Emulator Checkup...
x Android Emulator - x86 - API30 - Google API's not created

Android Sample Fails To Deploy

I tried the android sample. When I try to deploy, I get the error that says "The package does not support the CPU architecture of this device. I was using an Android 10 device. I would be disappointed if maui does not work on most android devices. The device I tried on is only 2 years old or so.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.