Strong problem description:
In the preview of the xml corresponding to the activity in Android Studio, the layout design is not displayed properly, which gives an error.
The following classes cannot be instantiated:
– android.support.v7.widgetActionBarContainer (Open Class, Show Exception, Clear Cache)
– android.support.v7.widgetActionBarContextView (Open Class, Show Exception, Clear Cache)
– android.support.v7.appWindowDecorActionBar(open class, show exception, clear cache)
Tip: Use View.isInEditMode() in a custom view to skip code or display sample data in the IDE.
If this is an unexpected error, you can also try building the project and then manually refreshing the layout
Forced Modification Method:
In the style resource file, the
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
</style>
is changed to:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
</style>
then the test will show the corresponding layout!
Read More:
- [Solved] Resource style/Theme.AppCompat.Light.NoActionBar failed linking
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- Failed to resolve: com.android.support:appcompat-v7:27.
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- AppCompat does not support the current theme features
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- PHP error Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error:
- An error occurred when running ROCR: Failed to load the package ‘caTools’, package or namespace load failed
- failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error
- Failed to load platform rendering library
- Solve the Google Chrome Failed to load resource: net::ERR_FAILED problem
- Failed to load resource: net::ERR_CONNECTION_RESET
- ADT:v22.6.2-1085508 Creating Android project and creating appcompat automatically_ V7 solution
- Rendering Problems :Failed to load platform rendering library
- Failed to load resource: net::ERR_ CACHE_ READ_ Failure solution
- Spring boot running appears java.lang.IllegalStateException : Failed to load ApplicationContext
- Altium designer20 failed to add class member: XXX and unknown pin
- Failed to load unit ‘HGCM’ (VERR_INVALID_PARAMETER)
- Failed to load resource: net::ERR_CONNECTION_REFUSED
- Error: failed to find conversion function from unknown to text