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

Custom theme package error.

$
0
0

I have problem using custom theme in my application. I cannot understand what I am doing wrong. I have seen solutions for this but for some reason they are not working for me. Could anyone take a look and help me out?

  1. Application type: mobile
  2. Titanium SDK: 3.5.0.GA
  3. Platform & version: Android
  4. Device: Motorola moto g
  5. Host Operating System: windows 7
  6. Titanium Studio: Titanium Studio, build: 3.4.1.201410281727

mytheme.xml path %ProjectRoot%/platvorm/android/res/values/mytheme.xml

<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android"> 
    <style name="Theme.MyTheme" parent="Theme.AppCompat.Light">
        <item name="android:editTextStyle">@style/editText</item>
        <item name="android:spinnerItemStyle">@style/MySpinnerItem</item>
    </style>
 
    <style name="editText" parent="@android:style/Widget.EditText">
        <item name="android:textCursorDrawable">@null</item>
    </style>
 
    <style name="MySpinnerItem" parent="@android:style/Widget.TextView.SpinnerItem">
        <item name="android:textColor">#000000</item>
    </style>
</resources>
tiapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <id></id>
    <name></name>
    <version>1.0</version>
    <publisher></publisher>
    <url></url>
    <description></description>
    <copyright></copyright>
    <icon>appicon.png</icon>
    <fullscreen>false</fullscreen>
    <navbar-hidden>true</navbar-hidden>
    <analytics>false</analytics>
    <guid></guid>
    <property name="ti.ui.defaultunit" type="string">dp</property>
    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <tool-api-level>14</tool-api-level>
        <manifest android:installLocation="auto">
            <application android:theme="@style/Theme.MyTheme"/>
            <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="14"/>
            <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
            <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
            <uses-permission android:name="android.permission.INTERNET"/>
            <supports-screens android:anyDensity="true"
                android:largeScreens="true" android:normalScreens="true"
                android:smallScreens="true" android:xlargeScreens="true"/>
        </manifest>
    </android>
    <modules/>
    <deployment-targets>
        <target device="iphone">false</target>
        <target device="ipad">false</target>
        <target device="android">true</target>
        <target device="blackberry">false</target>
        <target device="mobileweb">false</target>
    </deployment-targets>
    <sdk-version>3.5.0.GA</sdk-version>
</ti:app>
This gives me error :"[ERROR] : Failed to package application: [ERROR] Application Installer abnormal process termination. Process exit value was 1"

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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