I am trying to recompile some ten-year-old AS3 code to build an apk using FlashDevelop. I used to do this all the time to build apks and ipas, but now when I try it only works to build the swf. Attempting this with a blank app yields identical results.
I run PackageApp.bat, which executes the following command (trying to build apk):
adt -package -target apk-captive-runtime -storetype pkcs12 -keystore "cert\AndroidTest2.p12" -storepass fd "dist\AndroidTest2-captive-runtime.apk" "application.xml" -C bin . -C "icons/android" .
Which produces the following error:
Exception in thread "main" java.lang.AbstractMethodError: org.apache.xerces.dom.DeferredDocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(Unknown Source)
at com.adobe.air.apk.APKOutputStream.writeAndroidManifest(APKOutputStream.java:2276)
at com.adobe.air.apk.APKOutputStream.editAndroidManifest(APKOutputStream.java:1923)
at com.adobe.air.apk.APKOutputStream.createAndroidManifestXml(APKOutputStream.java:601)
at com.adobe.air.apk.APKOutputStream.generateResourcesAndManifest(APKOutputStream.java:889)
at com.adobe.air.apk.APKOutputStream.addApplicationDescriptor(APKOutputStream.java:320)
at com.adobe.air.ApplicationPackager.addSpecialFiles(ApplicationPackager.java:301)
at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:66)
at com.adobe.air.ADT.parseArgsAndGo(ADT.java:604)
at com.adobe.air.ADT.run(ADT.java:446)
at com.adobe.air.ADT.main(ADT.java:496)
I vaguely remember this happening many years ago and the fix was very unintuituve and may have related to environment variables or java or something. If anyone can provide any assistance I would greatly appreciate it. It's very annoying having all these apps that can no longer be used 🙁