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

Cannot build Android ToDoApp #1

Open
ttustonic opened this issue Apr 20, 2022 · 3 comments
Open

Cannot build Android ToDoApp #1

ttustonic opened this issue Apr 20, 2022 · 3 comments

Comments

@ttustonic
Copy link

Hello
I'm trying to build Todo app sample, but it doesn't work. I get multiple errors, all in Swimlane.xaml.cs and in generated Swimlane.g.cs code.
I tried with VS 2019 and VS 2022, both on the same machine.
Does Android app work? UWP works fine, and I didn't try others.
Errors are attached.

Thanks, Tom

errors.txt

@linkdotnet
Copy link
Owner

Hmmm. I could partially reproduce the behavior. To be honest, I did not try it on Android, but the Drag and Drop capabilities should work anyway according to the Uno Platform page.

What happens if you rebuild the whole solution? That worked for me at least. But I have to dive a bit deeper to understand what is the exact problem. Might be an issue with the source code generator shipped with Uno.

@ttustonic
Copy link
Author

Hello
I can build Droid app when I set full name for DragEventArgs:
private async void DropItem(object sender, Windows.UI.Xaml.DragEventArgs e)
and
private void SetDragOverIcon(object sender, Windows.UI.Xaml.DragEventArgs e)

However, Add todo button doesn't work with Android emulator. It might be related to this:
unoplatform/uno#1776

@linkdotnet
Copy link
Owner

Hmm that seems really weird, but thanks for investigating.
It is especially weird because the Swimlane defines it already as namespace. I feel like something wrong with the source code generators they are using.
One could try the code with the newer dotnet6 template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants