3

I was working on a project in Android Studio in which I had to use a navigation drawer, everything was running well. Recently Android Studio updated to 1.2 version and suddenly the activity where the the nav drawer was stopped rendering giving me that error.

I know that it is a known error and it happened to me before, but this time I can´t get it fixed.

The dependencies are set like this:

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 up to date and are not the problem. If I create another project with a navigation drawer it does not give that error though.

Thanks in advance!

EDIT:

An update for Android Studio has been released yesterday that in theory resolves layout rendering problems. Installed it, Gradle version updated and sync and the problem continues!! Im so upset right now, I can´t even create a new blank nav drawer activity, it says it can´t find it and won't render.

Hernan Romero
  • 133
  • 10
  • May be hitting alt+enter in android studio by putting cursor on **compile 'com.android.support:appcompat-v7:22.1.0'** will be of help – Nabin May 12 '15 at 03:32
  • Thanks for the answer! You say alt+enter to verify last version? That usually fixed that problem but now it won't, it is on its last version. – Hernan Romero May 12 '15 at 19:13
  • I can't understand why this happened, my project is completely stopped now for this. Please if someone found a workaround share it. – Hernan Romero May 24 '15 at 20:38

1 Answers1

0

I'm answering myself because it's been a long time since the question and seems that nobody had this problem. There was no solution for this, strangely Android Studio changed in some way and the exactly same code written in one file that wasn´t working works perfectly in another, so I had to rewrite the entire program in a new project and the problem is gone now. There was simply no answer of why after the update it couldn´t read the classes properly in that project so I had to delete it, thanks anyway!!

Hernan Romero
  • 133
  • 10