Android Studio - Cannot resolve symbol themes, colorprimary, - android-appcompat

I am seeing in Android Studio 3.1.2 an error for AppCompat themes and colors attributes like attr/colorPrimary.
But only in Android Studio. Compile and run does work.
For example:
My app.gradle:
supportLibVersion is 27.1.1!

This helped in the similar problem. Maybe this help you:
Close the project from the File menu. Then open the project again as existing Android Studio project.

I posted my answer on link mentioned by V.March. Basicly Invalidate Caches / Restart solved my problem

Related

Could not find a JavaToKotlinConversionProvider

I'm not able to create a new project in the android studio. I am getting a warning message
java.lang.RuntimeException: Could not find a
JavaToKotlinConversionProvider, even though one should be bundled with
Studio at
com.android.tools.idea.npw.model.JavaToKotlinHandler.getJavaToKotlinConversionProvider(JavaToKotlinHandler.java:56)
at
com.android.tools.idea.npw.template.TemplateValueInjector.addKotlinVersion(TemplateValueInjector.java:410)
Go to Preferences -> Plugins -> Kotlin and update the Kotlin plugin to the last version even though you don't write your code in Kotlin.
I have the same error, I've juste disabled the kotlin plugin and after restarting the IDE, just re-enable it. After that final restart, every thing works fine.
Go to file and the plugin in android studio and update your Kotlin plugin...
I opened an old project (by old I mean another project) and did everything Android Studio said to give me a successful build (I faced some errors when I tried to build the project that I could build couple weeks ago and actually I fixed them, updating gradle and stuff like that, not code issues of course).
After that I could create new project same as before.
Update seems like in order to keep Android Studio happy we have to keep Kotlin plugin enabled, interesting.
I solved this problem by doing this:
File->Settings->Plugins
Click the Installed tab at the top.
Search "kotlin" and click the result that shows up.
Click Enable at the top right
settings>plugins>check Kotlin >Apply then Ok solved it for me.
It occurred due to migration from Android Studio 3.2 to 3.3
Goto File-->Invalidate Caches/Restart
This will solve the problem.

How to update Android Studio binding generated class

After update of Android Studio to 3.1.1 I have the following problem: when I add any item to my layout.xml in my java file Android Studio does not recognize it.
Only solution I found is close and open Android Studio. Do you know any appropriate solutions for this?
did you tried build -> rebuild project ? that should refresh all the generated code.

Project build.gradle file won't open, Android Studio

This is the first time I've encountered this issue with Studio. For both the project and app level files, when I double click to open build.gradle I get the following problems:
Android Studio 2.3 - File opens, but displays "Loading" indefinitely.
Android Studio 3.0 - File doesn't even open at all. Clicking on them does nothing.
Has anyone else seen this behavior before? And solutions? Advice would be appreciated.
I had the same problem. This plugin was causing it: 'Android Method Count'.
I deleted the plugin, and it worked
delete xxx.iml file, if that still doesn`t work, restart Android studio more.

Android Studio is being stuck on preparing the plugin

I am currently facing a serious problem while installing a new plugin on Android Studio. The IDE cannot be installing the plugin and being stuck on it. Can you please tell me how to fix this or delete the plugin before running Android Studio? Thanks in advance.
I faced the same problem.. Just go to C://users/YOURUSER/.AndrodiStudio1.5/config/plugin/ and then delete the folder of importer plugin. now restart your Android Studio IDE I hope it works. in my case it worked. For more information here is the link. https://youtu.be/be_P-yHpVvo

Importing project in android studio

While importing projects in android studio ,this window comes and never disappear. please help. I am new to android studio
Looks like one of your dependencies that Android Studio is trying to download is offline. Check out this related SO post:
Android Studio stuck on "Gradle: resolve dependancies '_debugCompile'" or 'detachedConfiguration1'

Resources