Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
error 102: Invalid namespace http://ns.adobe.com/air/application/51.0
Using FlashDevelop, I updated to AIR SDK 51.0.1.1.
I updated my namespace
When I try to compile, I get this error regarding the namespace.
You'll need to get FlashDevelop to use the right compiler.. can you use the "Manage SDKs" feature to get AIR 51 as an option, and then select this for the project itself?
Here's my setup:
SetupSDK points to the right path as well.
Am I missing something?
Just to check:
When I try to compile, I get this error regarding the namespace.
I think this would more be, when you try to run it? So in the FlashDevelop project, do you have files in the "bat" folder called "RunApp.bat" and "SetupSDK.bat"? In the setup file, it has a couple of lines:
:: Static path to Flex SDK
set FLEX_SDK=path_that_should_match_your_sdk_selection
:: Use FD supplied SDK path if executed from FD
if exist "%FD_CUR_SDK%" set FLEX_SDK=%FD_CUR_SDK%
The first thing is to check that the first FLEX_SDK
definition is that correct one that you have with Flex 4.6 + AIR 51.0.
Otherwise .. it may be worth seeing if there's a FD_CUR_SDK
setting (you can edit the .bat file and add echo prompts etc...)
thanks
The path in setupSDK was the right one. In the end, after doing multiple tries, it seems that it was an environment variable in Windows called AIR_HOME that needed to point to this SDK. I can compile / run using this SDK version now. Can I remove this global variable? I don't remember about that one beforehand.
That one might be used for APM I think? Best to have it pointing to your latest SDK instead perhaps (or you could edit your apm batch file to change how that finds the SDK and then remove it)?
Yes indeed, it is used by APM. You're right, I'll try to check how APM gets the reference to the SDK to remove it. I have several issues with this SDK version:
- I can't build the swf file (Error: Missing builtin type float)
- I can build a debug AIR version, but it has a lot of graphical glitches and crashes
Should I create multiple posts for these errors? Or do I put them in here?
Ah, so this one is interesting:
I can't build the swf file (Error: Missing builtin type float)
You mentioned your SDK is Flex SDK 4.6 plus AIR SDK 51.0 .. but if you're using Flex then you're still using the Flex compiler, and that means that you won't have the ability to build with the 'float' support.
Probably what we'll need to do is to use a different version of the builtin libraries that excludes the float set-up, and publish those with the Flex-compatible AIR SDKs. We'll need to check how to do that...
What platform are you running on where you're seeing these glitches? We're just investigating some other errors that someone found with some maths-intensive functionality, and it looks like there are some JIT issues in the arm64 code that don't fully support float yet (or perhaps, it seems, where some other change has kicked the type inference out of line...)
thanks
Actually, I think the Flex thing is just a copy paste thing when downloading / renaming folders where I put the SDK. I use "Full AIR SDK with new ActionScript Compiler" from the harman website.
The glitches are on my phone, a Samsung A52s, so the compilation is made with ARM8. I use the GPU render mode and some tweens regarding visual effects. Here are some video comparison.
https://github.com/airsdk/Adobe-Runtime-Support/assets/9771151/7a607fe9-9f45-40ad-ac1f-87914ff6a8e0
https://github.com/airsdk/Adobe-Runtime-Support/assets/9771151/397905ce-dee1-48f3-9a5c-65096eec82ed
As you can see, the castle tween to become lighter makes the castle black on the main screen. On the deck screen, the cards are not aligned correctly, neither is the background of the buttons. Also, there was a weird flickering of the Harman screen at the beginning, not sure if it comes from the capture, I'll doucle check it. When I launch a battle, it freezes the phone. I didn't get a log yet but I can get one if needed.
Thanks - just to double-check then, are you still getting an error about not finding 'float' from the compiler, when using just the AIR SDK that has lib/compiler.jar in it? If that's only in certain build types, please clarify your command-line?
For those glitches .. what we'd seen are calculations (involving subtraction, division and multiplication) where the type inference went wrong and a Number value ended up incorrect as a result of the calculation. Typically (because of how floating points are represented) it would result in a miniscule value being shown. So that may well be causing some of those issues...
We have a version of the Runtime.apk for armv8 which (a) fixes the ones we know about, (b) logs anything we don't know about, and (c) tries to recover from any issue. Can you try this file please - from link below, copy it into the 51.0.1.1 sdk under runtimes/air/android/device/arm8/Runtime.apk https://transfer.harman.com/link/Ym7XXNIuFdiL9NsQhHEUBZ
If you can get a logcat dump of it, that would be very useful, you can filter for "NANOJIT" and "AdobeAIR" to get the information we'd need (well, primarily the "NANOJIT" output will highlight any paths that may have issues).
thanks
Thanks for the feedback, I'll try to use the file that you shared. I'll upload the logs later on. Regarding the float issue, I don't have it when running directly the AIR build to the phone, only when I try to run the swf file on the computer. Here's the complete error I get:
Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Projects\DominationWars\dominationNAPE-SWF-DEBUG.as3proj" -ipc d6461ef8-7afb-40e9-a8d5-adca03227e97 -version "51.0.1" -compiler "C:\Users\Yvan\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+51.0.1.1" -library "C:\Program Files (x86)\FlashDevelop\Library" -target ""
Building dominationNAPE-SWF-DEBUG
mxmlc-cli -load-config="C:\Users\Yvan\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+51.0.1.1/frameworks/flex-config.xml" -load-config+=obj\dominationNAPE-SWF-DEBUGConfig.xml -debug=true -default-script-limits 1000 30 -swf-version=51 -o obj\dominationNAPE-SWF-DEBUG638513890149478622
Running java as: C:\Program Files\Java\jdk-11\bin\java
Loading configuration: C:\Users\Yvan\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+51.0.1.1\frameworks\flex-config.xml
Loading configuration: C:\Projects\DominationWars\obj\dominationNAPE-SWF-DEBUGConfig.xml
Error: Missing builtin type float
Error: Unable to build SWF C:\Projects\DominationWars\obj\dominationNAPE-SWF-DEBUG638513890149478622
Build halted with errors (mxmlc-cli).
- AIR build: I tested the game using this Runtime.apk and it's working fine so far, I didn't see the glitches mentionned in the video.
- SWF build: I still have the same issues. What can I do?
Great - if it's possible to get at the logcat output whilst the test is running, or if you can search for 'NANOJIT' in that, it would be good.
For the build .. can you confirm you have a file called C:\Users\Yvan\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+51.0.1.1\lib\compiler.jar
thanks
Oh ok I didn't understand you needed the logs even if it's working. I'll provide that. Yes I do have a compiler.jar file at this path.
If you go to the Project Properties in Flash Develop, what's the "Platform" type there? You mentioned this is for Android, but the configuration it's loading is "flex-config.xml"... I've just changed a project from the initial platform (AIR Mobile) to "Flash Player", and now it also loads "flex-config.xml" and also has the same error regarding float.
So: "Flash Player" -> "flex-config.xml" fails "AIR Mobile" -> "airmobile-config.xml" works "AIR" -> "air-config.xml" also works...
thanks
I wasn't clear: I was having graphical glitches with the AIR/Android build, but I was able to build, whereas the SWF version doesn't build at all. With the SWF version, the Platform is Flash Player indeed, and I still have the float error.
Okay so if you're compiling for the Flash Player, then you would be loading in the "playerglobal.swc" library and yes there's no support for 'float' types there... I would say that you shouldn't be using the AIR compiler to try to build a Flash Player binary, but theoretically it should still be possible, and unless you actually had a 'float' reference in your code, it should cope with it. (Although if you have "-swf-version" above 32, the SWF won't run in the Flash Player, or version 34 I think is the max in China).
For me, with flex-config and therefore playerglobal.swc, even with -swf-version=32, it still fails with the same issue. We can look into it but you may just be better sticking with an earlier version of the SDK for Flash Player builds.
thanks
Similar issue here with Invalid namespace 51
error on IDEA with pure AIR 51.0.1.2, if I use namespace 50.2
instead it works fine, but then there is texture problem from #3271.