1
I started using Android Studio today, and when creating the App Project I came across a problem: I can create, but the Mainactivity class is full of errors and I haven’t changed anything in the application.
Is that, have you by any chance encountered this problem ? Before Android Studio I used Eclipse. Thank you!
Do you use Gradle? see if something changes when you click on the button
Sync Project with Gradle Files
(image).– stderr
No, it hasn’t changed.
– Dibai
By the image there must be something wrong with the directory structure, something incorrect. Try to clear the cache by going to File - Invalidate Cache.
– stderr
It’s not worked out.
– Dibai
Friend, try going in "build", then click clean , click rebuild and then make project. After that, let him perform the synchronizations, and restart android studio .
– Diego Kappaun
Restart, it still didn’t work..
– Dibai
Ali em extends, try to extend Activity .
– Diego Kappaun
Didn’t work out .
– Dibai
You’re saying the problem may have been due to incorrect daemon configuration. @Qmechanic73
– Dibai
Dude I guess I didn’t set up a Gradle, you have to set up in the Environment Variables ? @Qmechanic73
– Dibai
Try to read the terminal, sometimes I had problem in R by Nomeclatura errors, for example this error happened to me and disappeared soon after I fix an xml error that I had put a dash instead of underline , Again it was fixed right after I fixed the string word that was written "Sting"
– Gabrielluis88
try switching to extends Activity
– Matheus Ariel