Programmer algorithm practice must read, common Java API skills to share>>>
The students who just entered the studio have encountered many problems . This is the problem I once encountered. I hope I can help you. If it helps, please remember to praise it
Rendering Problems
The following classes could not be found: – android.support.v7.internal.app.WindowDecorActionBar (Fix Build Path, Create Class)
Tip: Try to build the project.
solutions:
The reason for this problem is that in the growth of studio, the actionbar has been out, and it recommends that you use the toolbar
Solution 1:
Find the project directory RES/values/ststyles.xml, and prepare to modify the apptheme settings
to find the property parent = “theme. Appcompat. Light. Darkactionbar” and change it to parent = “base. Theme. Appcompat. Light. Darkactionbar” is to add the prefix “base.” to the original parent property value
Modified screenshot:
OK, when you return your layout file, it’s OK
Solution 2: change the API version as shown in the figure, and change to a lower version of the API
Solution 3: similar to method 1, only change the value of parent to something else, and change it to theme. Appcompat. Light. Noactionbar
Similar Posts:
- Actionbar expiration problem
- [Solved] Android Studio Warning: Failed to load AppCompat ActionBar with unknown error
- 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
- Can’t find it“ android:Theme.Holo.Light.DarkActionBar ” [How to Solove]
- How to Solve setSupportActionBar() Method Error
- [Solved] Theme Error retrieving parent for item: No resource found that matche
- AndroidStudio Error:Failed to resolve: com.android.support:appcompat-v7:29
- How to Solve intelliJ IDEA 13 error: please select Android SDK