Comments (9)
Worth checking from the ADT logging to see what version of Java it's trying to run there .. if you have the AIR SDK Manager, run the "Troubleshooting" tab and re-build, it should show you. And from the SDK Manager you can also set the JAVA_HOME variable, not sure what you have that set to but it should be the JDK installation folder then something like /Contents/Home iirc..
thanks
from adobe-runtime-support.
Tried with Java 15, 17 and 21. all returned the same err.
Warning: packagedDependency okio-1.17.5.jar used by more than one ANE. Ignoring this entry Warning:
packagedDependency jsr305-3.0.2.jar used by more than one ANE. Ignoring this entry unexpected failure:
Cannot invoke "org.w3c.dom.Node.getNodeValue()" because " " is null java.lang.NullPointerException:
Cannot invoke "org.w3c.dom.Node.getNodeValue()" because " " is null at
com.adobe.air.apk.AABOutputStream.editAndroidManifest(AABOutputStream.java) at
com.adobe.air.apk.AABOutputStream.createAndroidManifestXml(AABOutputStream.java) at
com.adobe.air.apk.AABOutputStream.generateResourcesAndManifest(AABOutputStream.java) at
com.adobe.air.apk.AABOutputStream.addApplicationDescriptor(AABOutputStream.java) at
com.adobe.air.ApplicationPackager.addSpecialFiles(ApplicationPackager.java) at
com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java) at
com.adobe.air.apk.AABPackager.createPackage(AABPackager.java) at com.adobe.air.ADT.parseArgsAndGo(ADT.java) at
com.adobe.air.ADT.run(ADT.java) at com.adobe.air.ADT.main(ADT.java)
from adobe-runtime-support.
AIRSDKMANAGER logs:
ADT 50.2.4.3 called with: -version
ADT 50.2.4.3 called with:
-package -target apk-debug -listen 7936 -arch armv8 -storetype PKCS12
-keystore /.../app/cert/android.keystore -storepass xxxxxx
/.../app/out/xxx.apk
/.../app/out/application.xml
-extdir /.../app/ane
-C /.../app/out Main.swf
-C /.../app/assets icons
-C /.../app res
-C /.../app/assets img
-C /.../app/workers worker.swf
Target requested was apk-debug, but not using legacy APK so building via Android Studio
Creating device SDK handler - location passed in = /Users/hadi/Library/Android/sdk
Adding gradle dependency: implementation 'com.google.code.gson:gson:2.8.9'
Unexpected failure: Cannot invoke "org.w3c.dom.Node.getNodeValue()" because "<local36>" is null
from adobe-runtime-support.
@ajwfrost I could package an APK for a couple of times, and then it just started failing again.
Warning: packagedDependency okio-1.17.5.jar used by more than one ANE. Ignoring this entry NOTE: Multiple Android build-tools folders exist, choosing the latest version (30.0.3) for packaging unexpected failure: Unable to run java: com.adobe.air.ADTException: gradle tool failed: FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project ':app'. > Could not open cp_proj generic class cache for build file '/private/var/folders/9q/j1t5tgq17l31p6hvtzvkkjlc0000gn/T/509a82a7-f12e-43e8-bfcd-94b6b43b5890/app/build.gradle' (/Users/vardan/.gradle/caches/7.5/scripts/3q88kletlsrsz69uuqhj92qi7). > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65 Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. Get more help at https://help.gradle.org BUILD FAILED in 1m 59s java.io.IOException: Unable to run java: com.adobe.air.ADTException: gradle tool failed: FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project ':app'. > Could not open cp_proj generic class cache for build file '/private/var/folders/9q/j1t5tgq17l31p6hvtzvkkjlc0000gn/T/509a82a7-f12e-43e8-bfcd-94b6b43b5890/app/build.gradle' (/Users/vardan/.gradle/caches/7.5/scripts/3q88kletlsrsz69uuqhj92qi7). > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65 Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. Get more help at https://help.gradle.org BUILD FAILED in 1m 59s at com.adobe.air.apk.AABOutputStream.buildGradle(AABOutputStream.java) at com.adobe.air.apk.AABPackager.renameOutput(AABPackager.java) at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java) at com.adobe.air.apk.AABPackager.createPackage(AABPackager.java) at com.adobe.air.ADT.parseArgsAndGo(ADT.java) at com.adobe.air.ADT.run(ADT.java) at com.adobe.air.ADT.main(ADT.java)
ADT logging
/Applications/IntelliJ IDEA.app/Contents/jbr/Contents/Home/bin/java -Dapplication.home=/Users/vardan/projs/airsdk/AIRSDK_MacOS 50.2.4.3 -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar /Users/vardan/projs/airsdk/AIRSDK_MacOS 50.2.4.3/lib/adt.jar -package -target apk -arch armv8 -storetype PKCS12 -keystore /Users/vardan/projs/tuningAppAs/Certs/Android/upload_key/upload_certificate.p12 -storepass 123456 /Users/vardan/projs/tuningAppAs/bin/AppName.apk /Users/vardan/projs/tuningAppAs/bin/AppName-app.xml -extdir /Users/vardan/projs/tuningAppAs/libs/Ads -extdir /Users/vardan/projs/tuningAppAs/libs/distriqt -extdir /Users/vardan/projs/tuningAppAs/libs/playServices -extdir /Users/vardan/projs/tuningAppAs/libs/AndroidX -extdir /Users/vardan/projs/tuningAppAs/libs/ApplicationData -extdir /Users/vardan/projs/tuningAppAs/libs/Facebook -extdir /Users/vardan/projs/tuningAppAs/libs/inAppPurchase -extdir /Users/vardan/projs/tuningAppAs/libs/Firebase -extdir /Users/vardan/projs/tuningAppAs/libs/square -extdir /Users/vardan/projs/tuningAppAs/libs/Share -extdir /Users/vardan/projs/tuningAppAs/libs/AppleSignIn -extdir /Users/vardan/projs/tuningAppAs/libs/WebView -extdir /Users/vardan/projs/tuningAppAs/libs/applicationRater -extdir /Users/vardan/projs/tuningAppAs/libs/gameServices -extdir /Users/vardan/projs/tuningAppAs/libs/CameraRoll -extdir /Users/vardan/projs/tuningAppAs/libs/vibration -extdir /Users/vardan/projs/tuningAppAs/libs/media -C /Users/vardan/projs/tuningAppAs/bin AppName.swf -C /Users/vardan/projs/tuningAppAs/src .
from adobe-runtime-support.
Hi
It seems that it's trying to use a tool that is designed for too late a version of Java...
Unsupported class file major version 65
I'm not actually sure what the tool is...
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript'
but it looks like you will need to use Java 21 for this, which supported class file major version number 65.
thanks
from adobe-runtime-support.
@ajwfrost thanks for replying.
That's strange, because I'm actually using java 21.
Sometimes I try packaging and it goes without any errors with exactly the same settings and successfully packages the APK. Looks like some cache. I tried invalidating the IDE cache multiple times but It didn't work.
There are no issues with the SDK 50.2.3.1.
from adobe-runtime-support.
Strange, I tried upgrading to air 50.2.4.3 on windows and am also getting this:
unexpected failure: Cannot invoke "org.w3c.dom.Node.getNodeValue()" because "<local36>" is null
java.lang.NullPointerException: Cannot invoke "org.w3c.dom.Node.getNodeValue()" because "<local36>" is null
I've tried JDK 21 but it didn't help.
@Tuning3DT are you also using FlashDevelop on Windows? I'm wondering why this is happening to us but I haven't seen it reported by others yet.
from adobe-runtime-support.
Hi @Devin-Licastro - I'm wondering whether that's the same root cause as #3036
If you can check your application descriptor manifestAdditions
section to see if you have anything like:
<uses-feature android:name="android.hardware.camera" />
could you please explicitly include the 'required' value, i.e:
<uses-feature android:name="android.hardware.camera" android:required="true" />
thanks
from adobe-runtime-support.
Hey Andrew,
I did indeed have:
<uses-feature android:name="android.hardware.camera" />
I've updated it to:
<uses-feature android:name="android.hardware.camera" android:required="true" />
and so far so good... however it's hard to 100% confirm the fix because as Tuning mentioned it sometimes compiles fine on the newer air (seeming to be caching related.) But I'll let you know if I see the issue again.
from adobe-runtime-support.
Related Issues (20)
- armv HOT 1
- [Windows] Non-embedded fonts displayed without anti-aliasing (smoothing)
- TextField: Incorrect double-click behavior HOT 2
- adl quit unexpectedly HOT 8
- [AIR SDK 50.2.5.1][Linux] `Worker::start()` cause crash HOT 2
- Error on constructing XML from a file created by Visual Studio HOT 1
- AIR 50.2.5 Crashing in Debug Mode on Mac OS HOT 4
- i am using air sdk 50.2.25 , getting error while publish for android HOT 1
- i am using air sdk 50.2.2.5 , getting error while publishing for android HOT 2
- [Linux] `NativeWindow` creation cause crash without adl in some cases HOT 2
- [AIR 51.0.0.4][Linux] AIR applications doesn't work before Ubuntu 22.04 HOT 1
- After updating AIR SDK to version 50.2.4.5 Huge Spike in Crashes on iOS devices HOT 14
- [Issue] Context3d fail to initialize on Android
- ABB and armv7? HOT 2
- [ISSUE] Digest and Encryption not working on IOS HOT 2
- When using SDK 50.2.4.5, error #2004 occurs in NetStream.play(). HOT 6
- [Feature Request] Support for stageScaleMode and stageAlign in [SWF] metadata tag
- IOS Photo Library Access
- ANR extremely high on CPU: ARM Cortex-A53 (3,40%) HOT 2
- [ISSUE] TextField (input) issue on IOS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-runtime-support.