An exception occurred while compiling the flex 4.6 ADT tool.

Source: Internet
Author: User
Recently compiled flex Program When IPA is used, the following exception occurs:

 

EXception in thread "Main" Java. Lang. arrayindexoutofboundsexception: 24

At Adobe. ABC. globaloptimizer $ inputabc. readcode (globaloptimizer. Java: 1391 ) At Adobe. ABC. globaloptimizer $ inputabc. readbody (globaloptimizer. Java: 682)
At Adobe. ABC. globaloptimizer $ inputabc. readbodies (globaloptimizer. Java: 40 3) At Adobe. ABC. llvmemitter. generatebitcode (llvmemitter. Java: 331) At com. Adobe. Air. IPA. aotcompiler. convertabctollvmbitcodeimpl (aotcompiler . Java: 512) At com. Adobe. Air. IPA. bitcodegenerator. Main (bitcodegenerator. Java: 80) Compilation failed while executing: ADT
This is an exception that occurs when the ADT command line is compiled as IPA, but it does not appear in the simulator. The operation is OK. Finally, there is no way. I can export a previous version from the svn library and compile it when I find it. So I can only locate the problem in this way. Possible errors: 1. Forced type conversion error Code :
VaR configstring: String =; VaR configcount: Int = int (
Modellocator. getinstance (). systemconfig. rcunumber

);

Modellocator. getinstance (). systemconfig is an object of the full Singleton class and its type is object. Real code:
VaR configstring: String = modellocator. getinstance (). systemconfig. rcunumber;
VaR configcount: Int = int (configstring); 2. Class XML variable initialization:
The error code is private var currentselectitem: XML. The correct code is private var currentselectitem: xml = New XML (); 3. There are also some alerts in Flash builder, I should have changed it. 4. Use eembed with caution because someone has proposed it online. This may be the reason. [Embed (Source = "assets/gpsa.png")]
Private var m_gpsa: class;
[Embed (Source = "assets/gpsb.png")]
Private var m_gpsb: Class; so I deleted all the unused values.

5. There is really no way: compile it into IPA-test-interpreter. In this way, you can compile it into IPA to run the program on the iPad. If there is any error, write the log there.

Locate the problem.

 

 

Last Com. Adobe. Air. IPA. bitcodegenerator. Java does not existSource code, There is no way to debug, so there is no exact location for the problem. Hope the cool people can solve the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.