Error when building a project in Android Studio

Asked

Viewed 281 times

0

I have a project that was working normally, but yesterday I had to install Windows on my computer. And today I open the project and when I try to compile, I get this message:

Error:(1, 1) error: illegal Error:(1, 10) error: class, interface, or Enum expected Error:Execution failed for task ':app:compileDebugJavaWithJavac'. Compilation failed; see the Compiler error output for Details. :app:compileDebugJavaWithJavac FAILED

  • Ever tried to clean the project? Go on Build/Clean Project, must solve.

  • The clean doesn’t work, but I got it. It’s just that before installing the new system, I was using Gradle 2.1.3 and the Android Studio setup I have has Gradle 2.1.2, so I had to update it.

No answers

Browser other questions tagged

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