Android Question Obfuscation error

gvoulg

Member
Licensed User
Longtime User
I am getting this error trying to obfuscate a big project.
There are two service modules in the project and the error shows the second's Service_start sub which
is actually empty.
This Is the error

Parsing code. Error
Error parsing program.
Error description: Unexpected variable name.
Occurred on line: 58
Sub Service_Start (StartingIntent As Intent)

The program compiles and runs OK in Release mode

Best Regards
George

PS If I add a new empty service module with nothing in it the error goes there .
May be a bug in obfuscate command?
Something for Erel?
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
I am getting this error trying to obfuscate a big project.
There are two service modules in the project and the error shows the second's Service_start sub which
is actually empty.
This Is the error

Parsing code. Error
Error parsing program.
Error description: Unexpected variable name.
Occurred on line: 58
Sub Service_Start (StartingIntent As Intent)

The program compiles and runs OK in Release mode

Best Regards
George


If I remember well, you should not use variable names that contain the underscore char.


[P.S. Forget it. Those variables will be not obfuscated, but should not generate errors]
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Thank you.

The error message in this case is not helpful at all. It is a bug and it is fixed for the next update.

The error happens because of the get_srid sub in one of the classes. The compiler treats it as a property and then throws an error about the invalid identifier. You need to change it to Get_srid to fix this issue.
 
Upvote 0
Top