java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. titanium

后端 未结 7 1754
北荒
北荒 2021-01-06 11:35

I\'m creating a custom theme for my Titanium application using this theme generator. But when I run my application it\'s crashing and my log says that I need appCompac

7条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-06 11:53

    It's a bit embarrassing to admit how I've encountered this error, but in a hope to save someone an hour or hair pulling - for me it was a stray ">" that I mistakenly copied into my AndroidManifest:

       
        android:hardwareAccelerated="true"
        android:icon="@mipmap/icon_l"
        android:label="@string/app_name"
        android:requiredForAllUsers="true"
        android:supportsRtl="true"
        android:theme="@style/MyAppTheme">
    

    Too easy to miss if you have a very large manifest - the compiler doesn't complain.

提交回复
热议问题