Compile AIR apps against Android SDK 3.0+ to enable hardware acceleration
Hi at all,
i'd like to compile my AIR "Tablet" App against Android SDK 3.0+ to enable hardware acceleration.
I know that AIR only compiles against the Android 2.2 SDK.
In my ANT Build file:
<target name="package.android">
<echo message="Packaging for Android"/>
<java jar="${ADT.JAR}" fork="true" dir="${build.dir}" failonerror="true">
<arg value="-package"/>
<arg line="-target apk-emulator"/>
<arg line="-storetype pkcs12"/>
<arg line="-keystore ${cert}" />
<arg line="-storepass ${cert.password}" />
<arg value="${app.name}"/>
<arg value="${app.name}-app.xml"/>
<arg value="${app.name}.swf"/>
<arg line="-platformsdk ${ANDROID_SDK_HOME}"/>
</java>
</target>
ANDROID_SDK_HOME points to directory C:/android-sdk_r16-windows/, downloaded from http://developer.android.com/sdk/index.html, android-sdk_r16-windows.zip for Windows.
In my settings.properties file:
ANDROID_SDK_HOME = C:/android-sdk_r16-windows/
In my descriptior file:
<android>
<manifestAdditions>
<![CDATA[
<manifest>
<application android:hardwareAccelerated="true"/>
</manifest>
]]>
</manifestAdditions>
</android>
BUT when run my ANT build.xml file, JAVA shows me this error: [java] sdk must refer to a valid directory path.
From the Adode docs: First, download the Android 3 SDK: Android Developers: Installing the SDK . When packaging, set the -platformsdk option to the path containing the appropriate Android SDK (set the path to the directory containing the Android tools folder).
Where is the error!! Help me!
Thanks.
Francesco_C
