-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
com.google.code.gson.ane [META-INF/ANE/extension.xml]: error 102: Invalid namespace http://ns.adobe.com/air/extension/50.2 #31
Comments
Please update to AIR 50.2, this is required to support the latest features in the com.google.code.gson extension. |
I am using AIR SDK version 50.2.2.5. |
And have you set the namespace in your app descriptor to 50.2? |
After, i change namespace in descriptor to |
Are you certain you are using AIR 50.2 to package your app? |
Yes exactly. Is there any way to track the build of the application? Maybe there are some logs from the SDK? |
Yes you can enable debug logging in your |
I have reinstalled AIR SDK 50.2.2.5 and now i am getting a new error: ADT exception: aapt tool failed:C:\Users\work-04\AppData\Local\Temp\022caeb3-523a-41a4-8833-4972d608c393\savedstate-1.2.1-res\values\values.xml:3: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\022caeb3-523a-41a4-8833-4972d608c393\lifecycle-viewmodel-2.6.1-res\values\values.xml:3: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\022caeb3-523a-41a4-8833-4972d608c393\lifecycle-runtime-2.6.1-res\values\values.xml:3: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\022caeb3-523a-41a4-8833-4972d608c393\activity-1.7.0-res\values\values.xml:4: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\022caeb3-523a-41a4-8833-4972d608c393\constraintlayout-2.1.4-res\values\values.xml:1491: error: Attribute "android:translationX" has already been defined |
@vetaldnepr That indicates you are using the legacy build method. Make sure you have android studio or the android sdk installed and have set the path in your air config. There are a lot of discussions on resolving this issue on the air forum: airsdk/Adobe-Runtime-Support#1782 |
Hi. I read it, but I don't quite understand what to do:
but i still get an error on build. adt.log C:\Users\work-04\AppData\Local\Temp\eedd3c63-1cb8-42db-bdde-c55b3045f7c4\lifecycle-viewmodel-2.6.1-res\values\values.xml:3: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\eedd3c63-1cb8-42db-bdde-c55b3045f7c4\lifecycle-runtime-2.6.1-res\values\values.xml:3: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\eedd3c63-1cb8-42db-bdde-c55b3045f7c4\activity-1.7.0-res\values\values.xml:4: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\eedd3c63-1cb8-42db-bdde-c55b3045f7c4\constraintlayout-2.1.4-res\values\values.xml:1491: error: Attribute "android:translationX" has already been defined ` |
Have you installed the Android SDK? The error seems to indicate you haven't installed that? https://airsdk.dev/docs/basics/install/windows#install-android-studio |
The error at the top seems to indicate it can't find it:
Maybe check the settings you have in your adt.cfg (either manually or through the air sdk manager)? |
I think that the path to the SDK is correct, because if i set specify the wrong path in my adt.cfg, i get a different error text, like this: |
Very odd, that error message definitely indicates some issues. Could you try installing v33 of the build tools, perhaps something is amiss with your current version. |
I installed 33.0.0 but still the same error: `*** ADT Logging at 2023/06/06 20:15:44 *** C:\Users\work-04\AppData\Local\Temp\1aaa96b4-3ce0-4634-9ec4-5f97b6f4675a\lifecycle-viewmodel-2.6.1-res\values\values.xml:3: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\1aaa96b4-3ce0-4634-9ec4-5f97b6f4675a\lifecycle-runtime-2.6.1-res\values\values.xml:3: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\1aaa96b4-3ce0-4634-9ec4-5f97b6f4675a\activity-1.7.0-res\values\values.xml:4: error: Found tag id where item is expected C:\Users\work-04\AppData\Local\Temp\1aaa96b4-3ce0-4634-9ec4-5f97b6f4675a\constraintlayout-2.1.4-res\values\values.xml:1491: error: Attribute "android:translationX" has already been defined |
Maybe it's the java version then, are you using v11 of the JDK? |
I installed a new jdk (corretto-11.0.19 from Android Studio) and got new errors:
|
What extensions are you using, looks as though you have a conflict between kotlin versions. Are you using any that aren't from us? |
Yes, there are other extensions. But there are also your extensions that have expired subscriptions. I will try disabling other extensions to try and fix the cause. Tell me, this error cannot be due to the version of gradle? What version of gradle do you need to build? |
If you have installed android studio and are using the newer build method then the correct version of gradle should be downloaded as part of the build process and is specified by AIR. |
hi. can i know where gradle will be downloaded? I'm using custom build gradle plugin, and I suspect that the reason is that I separately installed the wrong version of gradle. |
Maybe check this discussion to set the version in your app descriptor airsdk/Adobe-Runtime-Support#2701 |
I removed the old ANE from the project and the project was built. But an error occurs when the application starts: Logs from Logcat:
|
@vetaldnepr Please remove all references to |
Thank you. That helped! Thank you very much for your help! |
I added a new com.google.code.gson.ane, and now I get an error when building apk.
Expected behaviour
Build apk successful
Actual behaviour
Build apk crashed
Environment
Logs
E:\work\*\ane\com.google.code.gson.ane [META-INF/ANE/extension.xml]: error 102: Invalid namespace http://ns.adobe.com/air/extension/50.2
The text was updated successfully, but these errors were encountered: