distriqt / airnativeextensions

DEPRECATED: Original repository of the distriqt native extensions and is no longer maintained. Please see our site for the latest ANEs
https://airnativeextensions.com
2 stars 0 forks source link

Cannot build APK with Theme.Translucent.NoTitleBar.Fullscreen #301

Closed shamruk closed 9 years ago

shamruk commented 9 years ago

Apache 4.13 + AIR 15 gives me this error

Failed to package AIR application Clockmaker.apk:
            Warning: Resource values-es/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
            Warning: Resource values-he/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
            Warning: Resource values-iw/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
            aapt tool failed:Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
            Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
            Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
            Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
            /var/folders/_8/_7tg9q0d6lnfz7gk9w79559m0000gp/T/aaba4046-b056-4e67-88fb-35e5d1061674/AndroidManifest.xml:61: error: Error: String types not allowed (at 'theme' with value 'Theme.Translucent.NoTitleBar.FullScreen').
            /var/folders/_8/_7tg9q0d6lnfz7gk9w79559m0000gp/T/aaba4046-b056-4e67-88fb-35e5d1061674/AndroidManifest.xml:65: error: Error: String types not allowed (at 'theme' with value 'Theme.Translucent.NoTitleBar.Fullscreen').
            /var/folders/_8/_7tg9q0d6lnfz7gk9w79559m0000gp/T/aaba4046-b056-4e67-88fb-35e5d1061674/AndroidManifest.xml:69: error: Error: String types not allowed (at 'theme' with value 'Theme.Translucent.NoTitleBar').

Manifest:

<manifestAdditions>
            <![CDATA[
                <manifest android:installLocation="auto">
                    <!--<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="13">-->
                    <supports-gl-texture android:name="GL_OES_compressed_ETC1_RGB8_texture"/>
                    <uses-permission android:name="android.permission.INTERNET"/>
                    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
                    <uses-permission android:name="com.android.vending.BILLING" />
                    <!--<uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/>-->
                    <application android:enabled="true">
                        <activity android:name="com.facebook.LoginActivity"/>
                        <activity android:name="com.distriqt.extension.facebookapi.FacebookAPILoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.FullScreen"></activity>
                        <activity android:name="com.distriqt.extension.facebookapi.FacebookAPIDialogActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"></activity>
                        <activity android:name="com.distriqt.extension.inappbilling.activities.PurchaseActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
                        <intent-filter>
                            <action android:name="android.intent.action.MAIN"/>
                            <category android:name="android.intent.category.LAUNCHER"/>
                        </intent-filter>
                        <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\ 419084148198473"/>
                        <provider android:authorities="com.facebook.app.NativeAppCallContentProvider419084148198473" android:name="com.facebook.NativeAppCallContentProvider" />
                    </application>
                    <supports-screens android:resizeable="true" android:anyDensity="true" android:smallScreens="false" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true"/>
                </manifest>
            ]]>
        </manifestAdditions>
marchbold commented 9 years ago

How are you building this. That theme is a default included with the Android SDK so getting errors about it indicates something is missing from your build process.

shamruk commented 9 years ago

Here is the command I use. Should I add anything like platformsdk option?

java -jar /Applications/FlexSDK/apache-flex-4_13-15/lib/adt.jar
-package
-target apk
-storetype JKS -keystore certificates/MCM.keystore -storepass ******
out/app/mcm.apk out/app/MCM.xml
-extdir MobileBilling/ane
-extdir MobileDevice/ane
-extdir MobileFacebookManager/ane
-extdir MobileMessageManager/ane
-extdir MobileNotifications/ane
-extdir MobileRateApp/ane
-C out/app MCM_App.swf
-C Static icons
shamruk commented 9 years ago

Found the problem: "FullScreen" -> "Fullscreen" (capital letter) Please correct https://gist.github.com/distriqt-developer/9676435

koriner commented 9 years ago

Thanks for the correction - I'll close this one for now.