

– Tools > ANDROID > SYSTEM PROJECT WITH GREEN SURFACES The problem could be the import link, try changing it. I had the same problem, but when I chose the Invalid Cache/Restart option, it worked for me.ĭoesn’t work. And this problem not only affects the Android component classes, but also the libraries, both of which have the same error. It worked for me, and that’s usually a problem when working with VCS. , so use your final project with your arms closed, go to the project directory and delete If that doesn’t work, use your other weapon.īut the real problem starts when all the above options don’t work Then go back to your adle and change it to what it was and click Sync Now.Įverything should be fine, assuming you have the latest version of everything or almost everything. All red scribbles should disappear if everything else in your code is correct. Then click Sync Now in the upper right corner of the editor. Solution: Go to your adle file and look for appcompat in the dependencies, for example compiling :appcompat-v7:XX.X.Įdit it to compile :appcompat-v7:XX.X.+. Okay, for anyone who might be tripping over this issue right now: Android Studio is really, really, really weird.

The project was created successfully, but I can’t use syntax highlighting.

Since today, Android Studio can’t find the AppCompat themes in styles.After renaming the application package, Android Studio displayed the following error: The AppCompatActivity symbol cannot be resolved.īut nothing helped. Cannot resolve symbol 'Theme' in styles.xml (Android Studio) - IT …Ĭannot resolve symbol ‘Theme’ in styles.xml (Android Studio) by IT Nursery.

ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Ĭompile fileTree(include:, dir: 'libs')Ĭompile ':support-v4:23.+'Ĭompile ':support-v13:23.+'Ĭompile ':appcompat-v7:23.+'Ĭompile ':design:23.+'Ĭompile ':cardview-v7:23.+'Ĭompile ':constraint-layout:1.0.0-beta4'Ĭompile plugin: '' android TestInstrumentationRunner ".AndroidJUnitRunner" but it didn't fix the problem.Īt the moment I have installed the following (from sdk manager):Īnd a few others, that shouldn't be necessary to list here.ĪpplicationId "" //not the real applicationId I already tried upgrading to the latest build tools, compile sdk (25) version etc. Since today, Android Studio can't find the AppCompat themes in styles.xml, but for example AppCompatActivity in code does get recognized.
