Gradle build finished with 41 error(s) in Android Studio


(Evgeniya Balabanova) #1

in App marked in red: setContentView(R.layout.activity_main);
I did a lot of things, for example:

  1. Cleared libraries and synchronized project
  2. Invalidate cache and restart
  3. reinstalled Android Studio
  4. Deleted folder in project “build”
  5. Put a smaller version API
  6. reinstalled JDK, but in File->Project Structure ->JDK select “embededded” JDK, if select my way to JDK show new error: Could not determine java version from ‘9.0.4’.
  7. Deleted folder “gradle”

where is the mistake? Please, help me…