The following classes were not found: android.support.v4.widget.DrawerLayout

I was working on a project in Android Studio in which I had to use a drawer for navigation, everything went well. Android Studio recently updated to version 1.2 and all of a sudden the activity where the navigation drawer was pushed gave me this error.

I know this is a known bug and has happened to me before, but this time I cannot fix it.

Dependencies are set as follows:

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:22.1.0'
compile 'com.android.support:appcompat-v7:22.1.0'
compile 'com.google.android.gms:play-services:7.0.0'
}

      

So I think they are relevant and not a problem. If I create another project using the navigation drawer it doesn't give this error.

Thanks in advance!

EDIT:

An update for Android Studio was released yesterday that theoretically resolves layout rendering issues. Installed it, Gradle version is up to date and in sync and the problem continues! I'm so frustrated right now, I can't even create a new empty nav activity, it says it can't find it and won't display.

+3


source to share


1 answer


I am answering myself because it has been a long time since the question and it seems that this problem did not exist. There was no solution for this, strangely, Android-Studio changed somehow, and the exact same code written in one file that didn't work works fine in another, so I had to rewrite the whole program in a new project and the problem disappeared now. There was just no answer why, after the update, it was unable to read the classes in this project correctly, so I had to remove it, thanks anyway!



0


source







All Articles