Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android Theming Error

$
0
0

I'm having a problem getting my application to build when I try and apply an android theme.

I followed the example from the docs but I am not sure what I am doing wrong.

The android section of my tiapp.xml

<android xmlns:android="http://schemas.android.com/apk/res/android">
        <tool-api-level>22</tool-api-level>
        <manifest>
             <!-- Allows the API to download data from Google Map servers -->
            <uses-permission android:name="android.permission.INTERNET"/>
            <!-- Allows the API to cache data -->
            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>   
            <!-- Use GPS for device location -->
            <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
            <!-- Use Wi-Fi or mobile connection for device location -->
            <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
            <!-- Allows the API to access Google web-based services -->
            <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
            <!-- Specify OpenGL ES 2.0 as a requirement -->
            <uses-permission android:name="com.companyname.appname.permission.MAPS_RECEIVE"/>
            <uses-feature android:glEsVersion="0x00020000" android:required="true"/>
            <permission android:name="com.companyname.appname.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
            <application android:theme="@style/LightDarkBar">
                <meta-data
                    android:name="com.google.android.maps.v2.API_KEY" android:value="MAP_KEY"/>
            </application>
            <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22"/>
        </manifest>
    </android>
<project-name>/platform/android/res/values/builtin_themes.xml
<!-- Works for Titanium SDK 3.3.0 and later -->
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android">
  <style name="LightDarkBar" parent="Theme.AppCompat.Light.DarkActionBar"/>
  <style name="Light" parent="Theme.AppCompat.Light"/>
  <style name="Dark" parent="Theme.AppCompat"/>
</resources>
This is the error I get when I try and run. [ERROR] : Failed to package application: [ERROR] Application Installer abnormal process termination. Process exit value was 1

I'm using SDK 3.5.1

Thank you for the help.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>