Solution: accidentally delete the content in APP/SRC/main/RES/values/styles.xml and add one:
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">#A000</item> <!-- Set the color of the top header -->
<item name="colorPrimaryDark">#8000</item> <! -- Set the background color above the title -->
<item name="colorAccent">#00f</item> <! -- response color for input box and button radio box -->
</style>
By the way, add the contents of colors.xml and strings.xml.
string.xml:
<resources>
<string name="app_name">My Application</string>
</resources>
colors.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
Similar Posts:
- Angular5 Error: ngModel cannot be used to register form controls with a parent formGroup directive
- Warning: Each child in an array or iterator should have a unique “key” prop. Check the render method
- Error:This Activity already has an action bar supplied by the window decor.
- DOM style setting methods in the four components of react
- UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 0-1:
- How to Solve setSupportActionBar() Method Error
- [Solved] HttpClient HttpRequestHeaders.From Error: The specified value is not a valid ‘From’ header string.
- When vue3 introduces element plus, index.css cannot be found. Solve the problem
- El Form Verification Error: [XXX] is not a string [How to Solve]
- React uses antd to import error messages on demand