Android Question Too Many Constants" error

Rick Harris

Well-Known Member
Licensed User
In Debug (Legacy) mode I still get a "Too Many Constants" error.
I have understood that the maximum number of constants is 65365.
Can someone please explain how to count the constants?
Better still: can B4A do a constants count?
Why does this problem not occur in Release mode? I.e. how many constants does the Debugger add to the total count?
 

Rick Harris

Well-Known Member
Licensed User
Can you post the exact error message from the compilation window?
Can you please comment on thread #19.

Here is the error message in Debug-Legacy mode:
Parsing code. 1.27
Compiling code. 1.11
Compiling layouts code. 0.00
Generating R file. 0.59
Compiling generated Java code. Error
javac 1.7.0_03
src\myeyes1\dsh\main.java:16: error: too many constants
public class main extends Activity implements B4AActivity{
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error


I have no idea what the four "Notes" mean.

In Debug-Rapid mode, surprisingly enough there was no error message today.
However the app executes extremely slow and speech recognition (critical for my app) does not work at all.
Debugging is impossible.

There are no problems in Release mode.
 
Upvote 0
Top