Unresolved reference 'raiseresult'

Hi,

While trying to debug an Android app, which I left unused for around one year, I’m getting this error:

(Declares) Unresolved reference ‘raiseresult’

So I tried to comment out the declares in the project, and got another one:

(Class ModExt) Unresolved reference ‘raiseresult’

ModExt is a module containing a bunch of methods; I can’t try to remove them without making other errors.

I just wanted to know if this already happened to someone (or as a reference if someone else gets it too). Or possibly what is raiseresult?

The error indicates somewhere in your code you use „return result“. I‘m curious to see the method.

What’s your Xojo version?

Thanks for your answer.

I’m using Xojo 2025 release 2.1.

Actually, I was able to find the issue, in the meantime (not a fast thing to do, commenting methods one by one, etc., though).

In my code, I had this:

Var Result As CConnectionResult=PerformRequestSync(Cmd) //Execute an URLConnection request and return a CConnectionResult object.
if Result<>nil and Result.ResultException<>nil then Raise Result.ResultException //If the PerformRequestSync method gets an exception, it is stored in the CConnectionResult object in that method. It’s then re-raised here.

It turns out the Xojo compiler doesn’t like this syntax for Android (it was fine for other platforms). I’ve not yet managed to work around this, just returning false if ResultException is not nil.

So the original error I got (raiseresult) looks to be “Raise Result” from the code quoted above, condensed.

1 Like

File this as a bug. Xojo is just a transpiler for Android.

almost same error here I can’t find a workaround

Unresolved reference 'False'

is there a way to have the intermediate kotlin source code xojo android generate ?
the error is somewhere in this transpiled file
@Paul_Lefebvre ?
thanks.

What code results into this error? Hard to say without seen your code.

trying to port vns fpdf library to android…
you get a linking error, so almost not related to any code only the class is named
and it’s almost impossible to find where it comes from
it would easier to find using the kotlin transpiled code I’m pretty sure
this is a kotlin error, not a xojo one. the same code works fine on ios.