Android Studio with problem in MainActivity

1

I started to use Android Studio today, and when creating the Application Project I came across a problem: I can create, but the MainActivity class gets full of errors and I have not changed anything about the application.

That's it, have you ever come across this problem? Before Android Studio I used Eclipse. Thanks!

    
asked by anonymous 19.02.2015 / 22:21

1 answer

5

To solve this, do:

  • Clean project located at Build
  • Rebuild project located at Build , after Clean Project .

Remember that the R class is automatically created after Build of your project, that is, if some Build its ended in error, that class will no longer exist and you will have to give Build on it again.

    
22.02.2015 / 01:50