Deploy onto Android (13)

Eduard Kaufmann 311 Reputation points
2022-11-27T07:45:38.717+00:00

Hi,
I’m a beginner on MAUI. I started with the ‘MS Beginners guide (James M
264457-maui-vsandroid.png264388-maui-s21-open.jpg264437-maui-s21-enteradd.jpg)’.
I ran into an issue when deploying the App to my S21 ultra (android LEVEL 13).

All works fine in VS 2022 Community (see screenshot ‘Maui_VSandroid.png’). And, of course, with using
‘Windows machine’!

However, when deploying the app onto my S21: I see the App ok. But when I enter ‘text’ and ‘Add’; the ‘field’
is coming up correctly BUT without the entered ‘text’! (see screenshots MAUI_open.jpg and Maui _EnterAdd.jpg).
Emulator: ”Pixel 5 – API-33 (Android 13.0- API 33)”

As I’m not familiar with ‘Android Emulators’ I’m lost. Because it works just fine on my VS2022,
I imagine it has something to do with the Android Emulator …!
PS: again I use the original code the ‘MS Beginners guide’ is using!
Thanks for your time and help, any help is appreciated!
Ed k

Developer technologies | .NET | .NET MAUI
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Matthew Leibowitz 1 Reputation point Microsoft Employee
    2022-12-08T11:13:21.24+00:00

    I replied on the maui issue: https://github.com/dotnet/maui/issues/11848

    There is maybe an issue with XamlC for release, but in your specific case you have a DataType on the ItemTemplate, but that is incorrect. The DataType should be of the item on the DataTemplate, or <DataTemplate x:DataType="{x:Type x:String}">

    See: https://github.com/edikaufmann/MauiApp1/blob/master/MainPage.xaml#L31

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.