Android: Sugar.Url() fails

The following swift code works on Windows, but not on Android:

        var U: Sugar.Url!

        U = Sugar.Url("http://www.remobjects.com")

I’m using Elements 8.3.93.1987 with Visual Studio 2015 in Windows.
The line “U = Sugar.Url(…)” fails on Android with the following message:

“An exception of type: java.lang.NoClassDefFoundError occurred”

More info: The message box shows an “Interrupt” button. If I press this button, the IDE asks me to locate the source code of “ZygoteInit.java”

Curious.

Thanks, logged as bugs://75539

Could it be that you ar simply missing the copy-local flag on sugar.jar and thus the futile does;t get deployed in your app? I cannot reproduce any problems with Sugar.Url on plain Java or Android…

bugs://75539 got closed with status testcaseerr.

The flag “Copy local” of sugar.jar is set to “true”. I tried to set to “false”, but still getting the same error.

I’m using with two different devices: a 4’’ phone with Android 4.4.2, and a 7’’ tablet with Android 4.4.4 (API level 19 in both cases).

I also tried to reinstall Elements, but the same error gets generated…

Can you send me a full project that shows the issue? Are you using the beta, alpha or the latest official release?

Sorry for the long delay to reply, but my computer crashed…

Now I’m using a new laptop, with Windows 7 Pro, Microsoft Visual Studio 2015 Update 3, and RemObjects Elements 8.3.93.1987 (latest official release, I think).

Here is a sample project, with the minimum code needed to generate the error:

com.idasi.fitos.zip (979.6 KB)

Thanks in advance.

I’ve just installed version 8.3.95.2031. Now the code compiles and executes with no errors.

Good work!

Curious, given that nothing has been changed :wink:

Nothing? Version installed? From 8.3.93 to 8.3.95?

Well. Sugar.Url() was not changed :wink:

I think you should change:

To:

bugs://75539 got closed with status “automagically corrected”.

:smirk:

1 Like

Logged as bugs://i63509.

bugs://i63509 was closed as fixed.