Friday, August 23, 2013

application.android is an unexpected element/attribute - AIR android application with IntelliJ

application.android is an unexpected element/attribute - AIR android
application with IntelliJ

I have just installed Flex and AIR SDK. Then I followed the instructions
for developing AIR mobile applications on IntelliJ Idea. I let IntelliJ
create sample app. Then I tried to run the application on Android device.
But after building the project, IntelliJ gives the following error:
c:\projects\cinar-agaci-01\ari-kovani-01\flash\hello02\out\production\hello01\Hello01-android-descriptor.xml(217):
error 103: application.android is an unexpected element/attribute
ADT command line:
d:\program files\jetbrains\intellij idea 12.1.3\jre\jre\bin\java.exe
-Dapplication.home=C:\java\flex -Dfile.encoding=UTF-8
-Djava.awt.headless=true -Duser.language=en -Duser.region=en -Xmx512m -jar
C:\java\flex\lib\adt.jar -package -target apk -storetype PKCS12 -keystore
D:\Program Files\JetBrains\IntelliJ IDEA
12.1.3\plugins\flex\lib\temp_keystore.p12 -storepass keystore_password
c:\projects\cinar-agaci-01\ari-kovani-01\flash\hello01\out\production\hello01\Hello01.apk
c:\projects\cinar-agaci-01\ari-kovani-01\flash\hello01\out\production\hello01\Hello01-android-descriptor.xml
-C
c:\projects\cinar-agaci-01\ari-kovani-01\flash\hello01\out\production\hello01
Hello01.swf
There is only one file in the project which is automatically created by
Intellij. Its name is Hello02.mxml. Here is its content:
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<s:navigationContent>
<s:Button label="Home" click="navigator.popToFirstView()"/>
</s:navigationContent>
</s:ViewNavigatorApplication>
Unfortunately, I cannot try to run this application in Android Emulator
because somehow the ADB emulators don't work properly in my computer. But
I can build and install java based Android applications.

No comments:

Post a Comment