Unable to build any Android project

Hello. I can’t compile any Android code with Silver, even the default Android template. I get two errors:

Error 1: (AP1) Error while running Android tool: dx.bat
Error 2:() EXCEPTION FROM SIMULATION:
bad range: 6…7; actual size 6
…at bytecode offset 00000006
…while working on method assertionFailure:(Lcom/remobjects/elements/system/Func1;Ljava/lang/String;I)V
…while processing assertionFailure (Lcom/remobjects/elements/system/Func1;Ljava/lang/String;I)V
…while processing swift/__Global.class

It is probably not because of my SDK or JDK installation, because RemObjects C# and Oxygene compile to Android without any errors. Oh, and other Swift templates work. (Non-Android ones, such as the .Net ones)
I also seem to get some warnings. All seem to be from the file RemObjects.Oxygene.Cooper.Android.targets. One of the warnings, for example, is Task ‘AndroidPack’ is not defined. Almost every part of the file which is like that (<…) has the same error. Either that or “does not have a child member ‘xxxxx’”

Thanks.

Hi Sadra,

this is already logged as an issue here: [70754 Open] Default Android Application Template Issues.

Bug fix will be released soon. You just have to remove your swift.jar reference to be able to build your project.

2 Likes

Thank you for your swift (:D) reply.
I apologize for not finding it earlier. The problem is solved.

Your welcome, I just pass the ball :wink: