Android Studio 3.1.4
Problem: when a new project is created, render problem – failed to load appcompat actionbar with unknown error appears in the XML project under layout
Solution:
1. Find the app/values/styles.xml file in the project directory and double-click to open it
2. Add the code segment under the file as follows:
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
Change to:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
3. Reopen the XML layout interface, and the problem has been solved
Similar Posts:
- Actionbar expiration problem
- classes could not be found: – android.support.v7.i
- Error:This Activity already has an action bar supplied by the window decor.
- The Android studio preview interface reports an error render problem
- [Solved] error: resource style/AppTheme (aka com.example.myapplication:style/AppTheme
- How to Solve setSupportActionBar() Method Error
- Can’t find it“ android:Theme.Holo.Light.DarkActionBar ” [How to Solove]
- [Solved] Theme Error retrieving parent for item: No resource found that matche
- [Solved] Java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout
- [Solved] Android Studio: Failed to load AppCompat ActionBar with unknown error