Bob_Gordon
(Bob Gordon)
January 19, 2025, 11:38pm
1
When attempting to Run get this message:
Type mismatch: actual type is ‘kotlin.long’, but ‘kotlin.int’ was expected.
Does not indicate where.
Analyze project is successful.
What I am doing: Moving part of an app originally created for iOS to Android.
First time playing with Android.
Martin_T
(Martin T)
January 20, 2025, 12:43am
2
Without seeing any code, it’s hard to say what’s going on. Do you use any declares? Android Design Extension? Which Xojo Version?
1 Like
MarkusR
(MarkusR)
January 20, 2025, 11:42am
3
Bob Gordon:
kotlin.
seems u use kotlin.long 64 bit but it need 32 bit kotlin.int
As Martin alludes to, this error usually indicates an improper Declare of some kind.
Bob_Gordon
(Bob Gordon)
January 20, 2025, 4:06pm
5
I seem to have found it (thanks Martin). It was a declare. I wanted to change the color of a button.
I copied the declare from the blog.
I have commented it out and gone on to other things.
Martin_T
(Martin T)
January 20, 2025, 4:23pm
6
Change the Integer parameter type to Int32 and your app should run again.