Why are my I.mportsscrewing up?

Asked

Viewed 694 times

-1

After a few days I opened the project, today I returned to work but when I opened the project I noticed that there was something wrong because all the classes I open indicate error by IDE, errors such as:

cannot resolve Symbol 'Activity', cannot resolve Symbol 'Intent'

That is, any import to IDE already shows error, I gave a clean in the project, I have already gone back to a backup of the project and nothing has helped. Someone has already gone through this?

I’m in the version 1.5.1 and the Java I have is the version 7 D:\Program Files\Java\jdk1.7.0_79.

The SDK Android is all updated.

  • When you open your android studio it does not return any error in Gradle? something similar happened here and it was a Gradle configuration, but the android studio returned to me that the problem was la.

  • try updating the version of Gradle in the file build.Gradle from the classpath project 'com.android.tools.build:Gradle:2.21' ..

1 answer

0

With me it happened, I decided this way: menu -> File -> Invalidate Caches/Restart... button -> Invalidity and Restart

Browser other questions tagged

You are not signed in. Login or sign up in order to post.