當我改變了我的minSdkVersion然後我收到此錯誤:更改的minSdkVersion 15至16
android.view.InflateException:二進制XML文件行#43:錯誤充氣類的TextView
早期的教它工作在我做出改變之前罰款。
這是我的風格:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<style name="AppTheme.Dark" parent="Theme.AppCompat.NoActionBar">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorAccent">@color/white</item>
<item name="colorControlNormal">@color/greyDark</item>
<item name="colorControlActivated">@color/off_white</item>
<item name="android:windowBackground">@color/pink</item>
<item name="android:fontFamily">sans-serif-light</item>
<item name="android:textStyle">normal</item>
<item name="android:windowContentTransitions" tools:targetApi="lollipop">true</item>
<item name="android:windowAllowEnterTransitionOverlap" tools:targetApi="lollipop">true</item>
<item name="android:windowAllowReturnTransitionOverlap" tools:targetApi="lollipop">true</item>
<item name="android:windowSharedElementEnterTransition" tools:targetApi="lollipop">@android:transition/move</item>
<item name="android:windowSharedElementExitTransition" tools:targetApi="lollipop">@android:transition/move</item>
</style>
<style name="AlertDialogCustom" parent="@android:style/Theme.Dialog">
<item name="android:textColor">@color/pink</item>
<item name="android:typeface">normal</item>
<item name="android:height">5dp</item>
<item name="android:textSize">20sp</item>
<item name="android:textStyle">bold</item>
<item name="android:background">@color/white</item>
</style>
我想有一些錯誤風格的parent屬性。
再次更改misSDKVersion並檢查它是否正常工作? –
@ReadyAndroid不工作我已經檢查了幾次Pratik答案沒有幫助我,因爲我已經appcompact版本24.2.1 – SamH67
我問在任何minSDKVersion它工作檢查與那一個,如果它不工作然後請添加您的XML文件的錯誤。 –