Harman AIR SDK Flex Compiler Problem In Intellij IDEA
Hello
Altough i added new AIR FLEX SDK (Harman Air 33.0) to My Mobile Project in Intellij SDK Section , i am getting this error during debug period..
Information:[napeProject]: Compilation failed
Information:16.09.2019 10:01 - Build completed with 3 errors and 0 warnings in 11 s 373 ms
Error:[napeProject]: Exception in thread "main"
Error:[napeProject]: java.net.SocketTimeoutException: Accept timed out
Error:[napeProject]: java.lang.NoClassDefFoundError: flex2/tools/VersionInfo
at com.intellij.flex.compiler.FlexCompiler.<clinit>(FlexCompiler.java:19)
Caused by: java.lang.ClassNotFoundException: flex2.tools.VersionInfo
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
**In my previous mobile application everything was fine about the SDK (Air 32.0) .
**My OS --> Win 7
** Intellij IDEA Ver = 2019.2.2 (Ultimate)
Thanx for your help
Please sign in to leave a comment.
Hello,
Please check related issue: https://youtrack.jetbrains.com/issue/IDEA-132506. Seems you added SDK without compiler.
Thanx for the link , as you say i added the compiler SDK to intellij and now everything is fine except than this error :
*** I get this error when i validate descriptor.xml file in application !!!
C:\Program Files\JetBrains\IntelliJ IDEA 2019.2.2\plugins\flex\lib\FlexSupport.jar!\schemas\AIR_Descriptor.32.0.xsd
Error:(408, 60) src-resolve.4.2: Error resolving component 'xml:lang'. It was detected that 'xml:lang' is in namespace 'http://www.w3.org/XML/1998/namespace', but components from this namespace are not referenceable from schema document 'jar:file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202019.2.2/plugins/flex/lib/FlexSupport.jar!/schemas/AIR_Descriptor.32.0.xsd'. If this is the incorrect namespace, perhaps the prefix of 'xml:lang' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'jar:file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202019.2.2/plugins/flex/lib/FlexSupport.jar!/schemas/AIR_Descriptor.32.0.xsd'.
Error:(408, 60) src-resolve: Cannot resolve the name 'xml:lang' to a(n) 'attribute declaration' component.
Thanx
Is it possible to share sample project for investigation or at least "AIR_Descriptor.32.0.xsd" and "descriptor.xml" files?
hi this is my descriptor file content
************
Normally air version is 33.0.2 but because of getting error i changed it to "32.0" , but when i validate i am getting error ...
and this is the content of 32.0.xsd file...
********
<?xml version="1.0"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://ns.adobe.com/air/application/32.0"
xmlns="http://ns.adobe.com/air/application/32.0"
elementFormDefault="qualified"
>
<xs:element name="application">
<xs:complexType>
<xs:all>
<!-- About this application -->
<xs:element name="id">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[A-Za-z0-9\-\.]{1,212}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="publisherID" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[A-Fa-f0-9]{40}\.1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="name" type="LocalizableType" minOccurs="0"/>
<xs:element name="versionLabel" type="xs:string" minOccurs="0"/>
<xs:element name="versionNumber">
<xs:simpleType>
<xs:restriction base="xs:string">
<!-- has to be of format <0-999>.<0-999>.<0-999> -->
<xs:pattern value='[0-9]{1,3}(\.[0-9]{1,3}){0,2}'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="filename">
<xs:simpleType>
<xs:restriction base="xs:string">
<!-- name cannot begin with a ' ' (space), have any of these characters: *"/:<>?\|, and end with a . (dot) or ' ' (space) -->
<xs:pattern value='[^\*"/:><\?\\\|\. ]|[^\*"/:><\?\\\| ][^\*"/:><\?\\\|]*[^\*"/:><\?\\\|\. ]'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="description" type="LocalizableType" minOccurs="0"/>
<xs:element name="copyright" type="xs:string" minOccurs="0"/>
<xs:element name="icon" type="IconType" minOccurs="0"/>
<!-- How to start this application -->
<xs:element name="initialWindow">
<xs:complexType>
<xs:all>
<xs:element name="content" type="xs:anyURI" minOccurs="1"/>
<xs:element name="title" type="xs:string" minOccurs="0"/>
<xs:element name="systemChrome" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="none"/>
<xs:enumeration value="standard"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="transparent" type="xs:boolean" minOccurs="0"/>
<xs:element name="visible" type="xs:boolean" minOccurs="0"/>
<xs:element name="minimizable" type="xs:boolean" minOccurs="0"/>
<xs:element name="maximizable" type="xs:boolean" minOccurs="0"/>
<xs:element name="resizable" type="xs:boolean" minOccurs="0"/>
<xs:element name="x" type="xs:int" minOccurs="0"/>
<xs:element name="y" type="xs:int" minOccurs="0"/>
<xs:element name="width" type="xs:unsignedInt" minOccurs="0"/>
<xs:element name="height" type="xs:unsignedInt" minOccurs="0"/>
<xs:element name="minSize" type="BoundsSizeType" minOccurs="0"/>
<xs:element name="maxSize" type="BoundsSizeType" minOccurs="0"/>
<!-- default is 'pan'-->
<xs:element name="softKeyboardBehavior" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="pan"/>
<xs:enumeration value="none"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- Mobile only -->
<xs:element name="aspectRatio" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="portrait"/>
<xs:enumeration value="landscape"/>
<xs:enumeration value="any"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- Mobile only; default is false -->
<xs:element name="autoOrients" type="xs:boolean" minOccurs="0"/>
<!-- Mobile only; default is false -->
<xs:element name="fullScreen" type="xs:boolean" minOccurs="0"/>
<!-- Default is auto -->
<xs:element name="renderMode" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="auto"/>
<xs:enumeration value="cpu"/>
<xs:enumeration value="gpu"/>
<xs:enumeration value="direct"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- Default is false -->
<xs:element name="depthAndStencil" type="xs:boolean" minOccurs="0"/>
<!-- OSX only -->
<xs:element name="requestedDisplayResolution" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="standard"/>
<xs:enumeration value="high"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<!-- About installing this application -->
<xs:element name="supportedProfiles" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="profileList">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="supportedLanguages" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="languageList">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="installFolder" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<!-- installFolder cannot begin with a / (forward-slash) or a ' ' (space), have any of these characters: *":<>?\|, and end with a . (dot), ' ' (space), or / (forward slash) -->
<xs:pattern value='[^\*"/:><\?\\\|\. ]|[^\*"/:><\?\\\| ][^\*":><\?\\\|]*[^\*":><\?\\\|\. /]'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="programMenuFolder" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<!-- programMenuFolder cannot begin with a / (forward-slash) or a ' ' (space), have any of these characters: *":<>?\|, and end with a . (dot), ' ' (space), or / (forward slash) -->
<xs:pattern value='[^\*"/:><\?\\\|\. ]|[^\*"/:><\?\\\| ][^\*":><\?\\\|]*[^\*":><\?\\\|\. /]'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- Features this application can opt in to -->
<xs:element name="customUpdateUI" type="xs:boolean" minOccurs="0"/>
<xs:element name="allowBrowserInvocation" type="xs:boolean" minOccurs="0"/>
<xs:element name="fileTypes" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="fileType" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="name">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value='[A-Za-z]'/>
<xs:pattern value='[A-Za-z][A-Za-z0-9\.]{0,36}[A-Za-z]'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="extension">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value='[A-Za-z0-9]{1,38}'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="contentType">
<xs:simpleType>
<xs:restriction base="xs:string">
<!-- See RFC2045 for a more detailed grammar for valid content types -->
<xs:pattern value='.+'/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="icon" type="IconType" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="gpuPreference" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="discrete"/>
<xs:enumeration value="integrated"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- Flash Runtime Extension Support -->
<xs:element name="extensions" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="extensionID" minOccurs="0" maxOccurs="unbounded">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[A-Za-z0-9\-\.]{1,212}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- iPhone-specific capabilities -->
<xs:element name="iPhone" minOccurs="0">
<xs:complexType>
<xs:all>
<!-- A list of plist key/value pairs to be added to the application Info.plist -->
<xs:element name="InfoAdditions" type="xs:string" minOccurs="0"/>
<xs:element name="Entitlements" type="xs:string" minOccurs="0"/>
<!-- Forcing CPU Render Mode for the mentioned devices -->
<xs:element name="forceCPURenderModeForDevices" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="requestedDisplayResolution" minOccurs="0">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="excludeDevices" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- In standard packaging mode, this tag prevents external swfs to be packaged
inside the application and outputs the stripped swfs to externalStrippedSwfs folder-->
<xs:element name="externalSwfs" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<!-- android-specific capabilities -->
<xs:element name="android" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:all>
<xs:element name="manifestAdditions" type="xs:string" minOccurs="0" maxOccurs="1"/>
<!-- Prior to AIR 3, 16-bit color is always used on Android.
In AIR 3, 32-bit color is used by default.-->
<xs:element name="colorDepth" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="16bit"/>
<xs:enumeration value="32bit"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- default is false -->
<xs:element name="containsVideo" type="xs:boolean" minOccurs="0"/>
<!-- default is false -->
<xs:element name="webContentsDebuggingEnabled" type="xs:boolean" minOccurs="0"/>
<!-- default is false -->
<xs:element name="disableMediaCodec" type="xs:boolean" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:all>
<!-- About the runtime version required -->
<xs:attribute name="minimumPatchLevel" type="xs:unsignedInt"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="profileList">
<xs:list itemType="profileNameType"/>
</xs:simpleType>
<xs:simpleType name="profileNameType">
<xs:restriction base="xs:string">
<xs:enumeration value="desktop"/>
<xs:enumeration value="extendedDesktop"/>
<xs:enumeration value="mobileDevice"/>
<xs:enumeration value="extendedMobileDevice"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="languageList">
<xs:list itemType="languageNameType"/>
</xs:simpleType>
<xs:simpleType name="languageNameType">
<xs:restriction base="xs:string">
<xs:enumeration value="cs"/>
<xs:enumeration value="da"/>
<xs:enumeration value="de"/>
<xs:enumeration value="el"/>
<xs:enumeration value="en"/>
<xs:enumeration value="es"/>
<xs:enumeration value="fi"/>
<xs:enumeration value="fr"/>
<xs:enumeration value="in"/>
<xs:enumeration value="it"/>
<xs:enumeration value="iw"/>
<xs:enumeration value="ja"/>
<xs:enumeration value="ko"/>
<xs:enumeration value="ms"/>
<xs:enumeration value="nb"/>
<xs:enumeration value="nl"/>
<xs:enumeration value="pl"/>
<xs:enumeration value="pt"/>
<xs:enumeration value="ru"/>
<xs:enumeration value="sv"/>
<xs:enumeration value="th"/>
<xs:enumeration value="tr"/>
<xs:enumeration value="vi"/>
<xs:enumeration value="zh"/>
</xs:restriction>
</xs:simpleType>
<!-- Type definitions -->
<xs:complexType name="IconType">
<xs:all>
<xs:element name="image16x16" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image29x29" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image32x32" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image36x36" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image40x40" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image44x44" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image48x48" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image50x50" type="xs:anyURI" minOccurs="0"/>
<!-- 57x57 is never used by file icons -->
<xs:element name="image57x57" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image58x58" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image60x60" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image66x66" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image72x72" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image75x75" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image76x76" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image80x80" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image87x87" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image96x96" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image100x100" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image114x114" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image120x120" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image128x128" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image144x144" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image152x152" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image167x167" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image180x180" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image192x192" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image512x512" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image732x412" type="xs:anyURI" minOccurs="0"/>
<xs:element name="image1024x1024" type="xs:anyURI" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:simpleType name="UnsignedIntListType">
<xs:list itemType="xs:unsignedInt"/>
</xs:simpleType>
<xs:simpleType name="BoundsSizeType">
<xs:restriction base="UnsignedIntListType">
<xs:length value="2"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="LocalizableType" mixed="true">
<xs:sequence>
<xs:element name="text" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
this is the debug screen results ....
Copyright (c) 2004-2007 Adobe, Inc. All rights reserved.
Waiting for Player to connect
"C:\Users\myPC\Desktop\actionscript full sdk compiler 64 Bit\bin\adl.exe" -profile extendedMobileDevice -screensize NexusOne -XscreenDPI 252 -XversionPlatform AND C:\Users\myPC\Desktop\work\out\production\work\Main-android-descriptor.xml C:\Users\myPC\Desktop\work\out\production\work
[AIR Debug Launcher]: error while loading initial content
Player connected; session starting.
Player session terminated
[AIR Debug Launcher]: Process finished with exit code 1
Could you please try to comment "<xs:attribute ref="xml:lang" use="required"/>" in your schema file?
its in .jar file and altough i can open 32.0.xsd in intellij , it can not be changed ...
but after creating custom ApplicationDescriptor file in modules section , with 32.0 version of air , now it works fine ...
thanx for your help