Problem Description:
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.
Attached:
When you encounter problems in your study, you should follow the warning of your predecessors that “if you don’t know, check yourself first, but if you really can’t, then look for your predecessors”. The quickest way to check is to go online. This article will be one of your network experiences.
Tools / raw materials
Android Studio
Cause of the problem
one
For Android version upgrade, actionbar is not recommended and will be replaced by toolbar.
END
Solution 1: parent=“ Base.Theme.AppCompat . Light.DarkActionBar ”
one
Find the project directory RES / values/ sttyles.xml , ready to modify the apptheme settings.
two
Property parent found=“ Theme.AppCompat.Light .DarkActionBar”
three
Change to parent=“ Base.Theme.AppCompat . Light.DarkActionBar “, that is, the prefix” base. “Is added to the original parent attribute value.
four
Save the changes and go back to the question prompt. Is it not available now?
END
Solution 2: parent=“ Theme.AppCompat.Light .NoActionBar”
one
Also in styles.xml File, modify the value of the parent property to“ Theme.AppCompat.Light .NoActionBar”
END
Solution 3: change to a lower version of the API
one
On the question prompt page, find the API selection button in the upper right corner to see the list of optional APIs. Choose a lower version, such as 4.2.2
two
After the API switch is successful, you can see that the problem is no longer displayed.
However, this method is not recommended.
END
matters needing attention
It is recommended to use toolbar instead of actionbar
Read More:
- android studio:Error inflating class android.support.v4.widget.SwipeRefreshLayout
- Error inflating class android.support.v7.widget.SearchView
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- Module not found: Error: Can’t resolve ‘./$$_gendir/app/app.module.ngfactory’
- [error log] 27.1.0 series of errors Error:Failed to resolve: com.android.support :support-an notations:27.1.0
- Error: package android.support.annotation Does not exist
- ADT:v22.6.2-1085508 Creating Android project and creating appcompat automatically_ V7 solution
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Android Error:AAPT: error: resource android:attr/colorError not found
- When Android Studio runs the app, it prompts Error: Please select Android SDK
- Error running app: Default Activity Not Found
- Android 9.0 APP Install Android 4.4 Error: classnotfoundexception
- Android studio AAPT: error: attribute android:requestLegacyExternalStorage not found.
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Error resource Android datalogcornerradius not found
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- Import Android project Error:Internal error : org.gradle.tooling .BuildException: Could not execute build…
- Apache Groovy——java.lang.NoSuchMethodError: x.x.x: method <init>()V not found