When trying out Android on Xojo 2024R2, I keep running into all kind of weird compiler errors.
The latest one I’m getting is;
Android Compiler: Uknown reference: n
It has no link to the source that triggers it.
I don’t have anything named n in the project
Is it me, or is Xojo Android more in Alpha stage than Beta?
That’s a fair question, but due to an NDA, I can’t share the project publicly.
What I’m trying now is to re-build the project by copying objects and code from the same project in iOS, and then see when I start to get strange errors. And yes, I am aware these are two different beasts, but I’m only using controls and code that should also work on Android, or at least give clear errors when not. My question was more intended to see if more users are experiencing strange compiler errors unique to Android compilation.
If you open a bug report on issues system you can then attach a project as a private item and link to it. That would mean only Xojo staff would have access to it. They will delete it once it is solved. I know that may still be an issue but it is at least a possible way forward.
Thanks, you’re right; If I want to see progress, I should share a project that fails.
I’m just not used to seeing strange compiler errors. As I have no clue what causes it, sharing the project to Xojo staff only is probably acceptable.
Android is still in beta so some things aren’t quite right. Issues like this will only improve the product in the long run.
You will need to create the issue as private to keep the project private. Alternatively you would need to create a public issue, upload the project in a different private issue and then add the link to the public issue. Issues don’t currently allow a private item within a public issue, which is a shame.
Although I now have a project that fails compilation with the non descriptive error listed above, I did report a bug in DrawPicture on Android, which fails when you use all parameters including source x,y,width and height. Instead of drawing the correct image, it distorts in a very weird way.
To me this confirms that Xojo for Android is not really in beta stage but should be called alpha.
Attached project should make the enlarged preview change x and y position when the slider is changed.
Instead, it does some sort of scaling.
The attached Mac version of the same app works correctly using the same code
can you upload the sample projects for Xojo to review?
I can answer you positively. Android in Xojo is the only platform among the supported ones where arbitrarily anything you didn’t expect can create weird compiler errors (that’s my experience). It has to be said that many language keywords/functions aren’t [yet] supported there, and at other times, a combination of just two things together are unexpectedly unsupported.
ByRef, Ptr, Delegates are some examples of what produced weird errors on my side.
Glad to see it isn’t just me. Having to create a new project type is one thing, but the added frustration of code not working that works on all other platforms on top of unexplainable compiler errors doesn’t help. Hopefully R3 will fix more Android bugs