检查AndroidManifest.xml中的主题的属性
<application
android:name=".BaseApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:preserveLegacyExternalStorage="true"
android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme.Launcher">
如果style中对应主题设置为MaterialComponents系列,改为AppCompat即可
比如 <style name="AppTheme.Launcher" parent="@style/Theme.MaterialComponents.Light.NoActionBar">
修改为 <style name="AppTheme.Launcher" parent="@style/Theme.AppCompat.Light.NoActionBar">标签:xml,style,button,shape,ic,true,android From: https://www.cnblogs.com/hjysama/p/18563231