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

[Issue] Cannot start Avalonia app on android simulator #91

Open
orrest opened this issue Aug 9, 2023 · 2 comments
Open

[Issue] Cannot start Avalonia app on android simulator #91

orrest opened this issue Aug 9, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@orrest
Copy link

orrest commented Aug 9, 2023

Description

Cannot start avalnoia app on android simulator, however, the application can be started on Windows desktop.

Environment

  • OS: Windows11 22H2
  • IDE: Visual Studio 2022 17.7.0
  • Project Template: Avalonia Cross Platform Application
  • Android Simulator: Pixel 5 - API 33 Android 13.0
  • Prism.Avalonia Version: Prism.DryIoc.Avalonia 8.1.97.11000
  • Avalonia Version: 11.0.2

Steps To Reproduce

Set App this way, then run the application:

    public partial class App : PrismApplication
    {
        public override void Initialize()
        {
            AvaloniaXamlLoader.Load(this);
            base.Initialize();
        }

        protected override AvaloniaObject CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
        }
    }
<Window
    x:Class="AvaloniaApplication3.Views.MainWindow"
    xmlns="https://github.com/avaloniaui"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:views="clr-namespace:AvaloniaApplication3.Views"
    Title="AvaloniaApplication3"
    d:DesignHeight="450"
    d:DesignWidth="800"
    Icon="/Assets/avalonia-logo.ico"
    mc:Ignorable="d">
    <StackPanel>
        <TextBlock Text="I'm Main Window" />
    </StackPanel>
</Window>

Expected Behavior

After the avalonia splash, there will be a line : I'm Main Window.

Screenshots

An error occured:

Prism.Ioc.ContainerResolutionException: 'An unexpected error occurred while resolving 'AvaloniaApplication3.Views.MainWindow''

@orrest orrest added the enhancement New feature or request label Aug 9, 2023
@DamianSuess
Copy link
Collaborator

DamianSuess commented Aug 15, 2023

At this time, only Desktop applications are supported. This is something that I would like to support, however, to accomplish this goal a lot quicker, I will need assistance from the community - especially iOS.

Going to keep this item opened for whomever wants to pick this up.

@DamianSuess DamianSuess added the help wanted Extra attention is needed label Apr 8, 2024
@DamianSuess DamianSuess changed the title [Issue] Cannot start avalnoia app on android simulator [Issue] Cannot start Avalonia app on android simulator Apr 12, 2024
@DamianSuess
Copy link
Collaborator

Currently, the migration to Prism v9.0 is underway. Though the Desktop is the primary target, we can still sandbox Android.

@DamianSuess DamianSuess added this to the vNext milestone Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants