Android's type mismatch mistery…

hi!

i have a game on Desktop. it’s working. i did the job to make it work on iOS. worked just fine. i did the same on Android, but i’m stuck on this error and i don’t know what / where to fix…

(Class: c_game) type mismatch: actual type ay<xojoarray<Boolean»>’ was expected.

all help will be great!

Alex

Very vague question/example
could you maybe show more code or best upload sample project showing the error?

i can’t upload the project, sorry. and this is the only message error i got. it’s frustrating read this error and can’t do anything about to fix!

How can anyone help if you don’t show any code or IDE screenshot?

Which Xojo version do you use? Create a private issue if you can’t share your project in public.

Why ask in public if we cannot help with supplied code/project/screenshots?

a compiler error?
differentiate boolean and Boolean
maybe a typo

i’m creating a version only with the minimal code to publish here.

Archive.zip (11.8 KB)

desktop and ios works
android don’t

Version 2026 Release 2.1
MacOS Golden Gate 27.0.1

android fixed.
this seems a bug in xojo android compiler
a 2d boolean array is returned as xojoarray<Boolean> in kotlin
worth reporting an issue.
exampleAndroid.zip (7.7 KB)

hi. i’m sorry, but where exaclty was the bug?

where / how did you do to fix?

oh… ok. found it. thanks

another error… maybe the same bug…

Android Compiler
(Class: c_game) type mismatch: actual type is ‘xojoarray’, but ‘xojonumber’ was expected.

@Alexandre_Cunha - Please create issues!

yep seems the android compiler has problems with arrays and more specifically 2d arrays

Android Compiler
(Class: globals) type mismatch: actual type is ‘xojovariant’, but ‘picture’ was expected.

i’m not sure exaclty how to describe the error, but i’ll try.

Just create a private issue and add your project. The engineers should be able to track down.

no, i can’t send my project, but i’m creating the issue.

the small project you sent earlier and that i fixed should be enough