Search code examples
androidtitaniumtitanium-mobiletitanium-alloy

Android app crashes/fails when using Titanium Studio 3.3.0.GA


I keep getting this error:

Error: No resource found that matches the given name (at 'theme' with value '@android:style/Theme.AppCompat.Light').

Here's what my tiap.xml looks like:

<android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <application android:theme="@android:style/Theme.AppCompat.Light"/>
            <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
            <supports-screens android:anyDensity="false"/>
        </manifest>
</android>

When ever I change it back to what I had previously, which was "@android:style/Theme.Holo.Light", the app will crash and I'll get this error:

You need to use a Theme.AppCompat theme (or descendant) with this activity.

Note: I want it to be HoloLight theme.


Solution

  • I figured it out

    This is incorrect (when using 3.3.0):

    <application android:theme="@android:style/Theme.AppCompat.Light"/>
    

    This is correct:

    <application android:theme="@style/Theme.AppCompat.Light"/>
    

    You don't need the "android" part after the @ symbol.