Android Studio 3.1 Cannot Resolve Symbol (Themes, Widget, attr, etc.)
Close the project and import it again. Worked for me today.
In android studio 3.1 stable gives error on Theme and ?attr/actionBarSize attribute?
close project -> import gradle project.
It's a stupid solution but somehow worked for me.
It's solution from other question btw, but i can't find it right now, Ill update if i find it.
Update
found it:
Original issue with this solution
Update 2
It addresses only issue with ?attr/actionBarSize
Android Studio: Unresolved symbol Theme in styles.xml
Did you try to update the compileSDK
Version? According to this post the reason can be both in the compileSDK or that the library is out of sync, or even you have to cancel .idea, or the google repository that is not set.
Cannot resolve symbol '?attr/actionBarSize' after updating Android Studio from 2.3 to 3.0 for buildToolsVersion '26.0.2'
Nothing helped, but changing:
?attr/actionBarSize
to ?android:attr/actionBarSize
did the job.
That's actually a bug in few versions. Even if you won't fix it, Android will automatically fix it at runtime.
Cannot resolve symbol 'Theme' Validates resource references inside Android XML files
Close the project from the File menu and open the project again as existing Android Studio project. This worked for me.
android studio 3.1 always getting error about unable to resolve dependency
Failed to resolve: com.github.florent37:android-slidr:1.0.4
Make sure you added below in your Project Level build.gradle
section.
allprojects {
repositories {
.........
maven {
url "http://dl.bintray.com/florent37/maven"
}
}
FYI
If same problem coming, You can use OLD version
compile 'com.github.florent37:android-slidr:1.0.3'
Related Topics
Android: How to Change the Actionbar "Home" Icon to Be Something Other Than the App Icon
Generate Barcode Image in Android Application
Save Sensitive Data in React Native
How to Change the Android Startactivity() Transition Animation
How to Declare Git Repository as Dependency in Android Gradle
Change the Right Margin of a View Programmatically
Android Retrofit - Onprogressupdate for Showing Progress Notification
Cannot Lower Case Button Text in Android Studio
Filter Output in Logcat by Tagname
Login Error: There Is an Error in Logging You into This Application. Please Try Again Later
Android Sdk: Get Raw Preview Camera Image Without Displaying It