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.