The error encountered is shown below:
The solution
Open theFile
Find — – >Sync Project with Gradle Files
Click to get out
If the Layout view is still not blank
Go to the RES, that’s right, the res in the resources folder, go to the styles.xml file and double-click to open it
将Theme.AppCompat.Light.DarkActionBar
Instead ofBase.Theme.AppCompat.Light.NoActionBar
Then open the layout. XML file to see if there is a preview view. Here’s how I solved it
Share with you
I want to work my way up
Fly forward on the blades at the highest point
Let the wind blow dry tears and sweat
I want to work my way up
Waiting for the sun to watch its face
Little days have big dreams
I have my day
Let the wind blow dry tears and sweat
One day I will have my day