Compile obfuscated error

765 views Asked by At

when I 'm compiling my project in B4A using the obfuscated option, I get the below error:

Compiling generated Java code.          Error
B4A line: 6
Dim ActivityResponse As String: ActivityResponse=\
javac 1.6.0_26
src\adamioan\cinemattica\com\actmovie.java:1192: array dimension missing
_vvvvv3 = BA.__b (new byte[] }, 680010);
                             ^
1 error

This error occures only with the obfuscated option; debug and simple compilation work great. Why is this happening?

2

There are 2 answers

0
Erel On BEST ANSWER

Seems like a bug in the obfuscation feature related to empty strings. It will be fixed for the next update. Note that there is no need to assign empty strings as this is the default value. So for now just remove the assignment.

1
adamioan On

Thank you both, it was my mistake. In the Process Globals I declared the variable ActivityResponse and in the same line I set this to "".

Dim ActivityResponse as String: ActivityResponse = ""

That was the problem. Thanks again.