LeoCV
June 30, 2016, 4:01pm
1
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”
Thanks, logged as bugs://75539
mh
(marc hoffman)
July 11, 2016, 1:13pm
4
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.
LeoCV
July 12, 2016, 4:39pm
6
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…
mh
(marc hoffman)
July 12, 2016, 9:32pm
7
Can you send me a full project that shows the issue? Are you using the beta, alpha or the latest official release?
LeoCV
August 10, 2016, 9:25pm
8
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.
LeoCV
August 22, 2016, 7:30pm
9
I’ve just installed version 8.3.95.2031. Now the code compiles and executes with no errors.
Good work!
mh
(marc hoffman)
August 22, 2016, 8:17pm
10
Curious, given that nothing has been changed
LeoCV
August 22, 2016, 8:20pm
11
Nothing? Version installed? From 8.3.93 to 8.3.95 ?
mh
(marc hoffman)
August 22, 2016, 8:32pm
12
Well. Sugar.Url()
was not changed
LeoCV
August 23, 2016, 3:57pm
13
I think you should change:
To:
bugs://75539 got closed with status “automagically corrected”.
1 Like
bugs://i63509 was closed as fixed.