Facing very strange error in ComponentTranslation !! Need a help ???

60 views
Skip to first unread message

MRKY 4M

unread,
Aug 9, 2019, 9:54:44 AM8/9/19
to App Inventor Open Source Development
Actually I am facing error when i did ant , and the error is this 
 C:\appinventor-sources\appinventor\build\components\ComponentTransla
tion\src\com\google\appinventor\client\ComponentsTranslation.java:58: error: cod
e too large                                                                     
    [javac]   public static HashMap map() {                     
    [javac]                                         ^                           
    [javac] Note: Some input files use or override a deprecated API.            
    [javac] Note: Recompile with -Xlint:deprecation for details.                
    [javac] 1 error                                                             
                                                                                
BUILD FAILED                                                                    
E:\appinventor-sources\appinventor\build.xml:16: The following error occurred wh
ile executing this line:                                                        
E:\appinventor-sources\appinventor\appengine\build.xml:429: The following error 
occurred while executing this line:                                             
E:\appinventor-sources\appinventor\build-common.xml:125: Compile failed; see the
 compiler error output for details.                                             
                                                                                
Total time: 30 seconds                                                          
Picked up _JAVA_OPTIONS:  -Xmx1024m                                             

How to solve this error ??? can someone help ??
Expertise ??
Thanks

Evan Patton

unread,
Sep 18, 2019, 4:26:55 PM9/18/19
to App Inventor Open Source Development
It's possible that you have too many translations depending on how many components you've added to the system. There is a maximum limit on the size of various parts of a single Java class (number of strings, number of methods, number of statements, etc.), so you're likely bumping up against that. We haven't run into that issue yet so I'm not sure what the appropriate solution is in your case.

Regards,
Evan
Reply all
Reply to author
Forward
0 new messages