Refer here: http://blog.csdn.net/dong19870625/article/details/50833433
Original text:
In the development project, the XML file suddenly appears
couldn’t resolve resource @ color / title_ The color (58 similar errors not show) problem caught people off guard. It’s no problem to write the color and other resource files directly, but it’s not the fundamental solution to the problem
Android Studio just gets crazy. But a restart ain’t always enough.
Invalidate your caches and restart.
File -> Invalidate Caches / Restart… -> Invalidate and Restart
According to the above practice, the effect is good, solved my problem, the original as itself also has cache
reference resources: http://stackoverflow.com/questions/8390733/relativelayout-couldnt-resolve-resource-android
———————————————
I also met similar, but I can’t find the relevant style. It can’t be displayed normally in the preview, but it runs normally. No matter refresh or rebuild, it can’t be eliminated. Just follow the above procedure
Read More:
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Android Studio Series: after Android studio is opened, the project window will not be displayed.
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- Android studio failed to resolve: com.github.CymChad :BaseRecyclerViewAdap terHelper:2.9.46
- Android studio failed to resolve: junit:junit : 4.12 solutions
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- Android Error:AAPT: error: resource android:attr/colorError not found
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- Android studio AAPT: error: attribute android:requestLegacyExternalStorage not found.
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- AAPT: error: resource android:attr/dialogCornerRadius not found.
- Error resource Android datalogcornerradius not found
- Prompt “namespace ‘app’ not bound” when compiling Android studio
- AAPT: error: resource android:attr/colorError not found.
- Android Studio – add configuration for Android studio
- error: resource android:style/TextAppearance.Material.Widget.Button.Borderless.Colored not
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Android Studio Error: Invoke-customs are only supported starting with Android O (–min-api 26)
- When Android Studio runs the app, it prompts Error: Please select Android SDK