Created a new project in the android studio, but it is created with an error. Here is what the graidla console writes:

  Executing tasks: [: app: generateDebugSources,: app: mockableAndroidJar,: app: prepareDebugUnitTestDependencies,: app: generateDebugAndroidTestSources]

 Configuration on demand is an incubating feature.
 Incremental java compilation is an incubating feature.
 : app: preBuild UP-TO-DATE
 : app: preDebugBuild UP-TO-DATE
 : app: checkDebugManifest
 : app: preReleaseBuild UP-TO-DATE
 : app: prepareComAndroidSupportAnimatedVectorDrawable2531Library FAILED

 FAILURE: Build failed with an exception.

 * What went wrong:
 Execution failed for task ': app: prepareComAndroidSupportAnimatedVectorDrawable2531Library'.
 > Could not initialize class org.apache.tools.zip.ExtraFieldUtils

 * Try:
 Run with - stacktrace option to get the stack trace.  Run with --info or --debug option to get more log output.

 BUILD FAILED

 Total time: 12.11 secs

For some reason, now such an error occurs when creating any new project. How to fix it?

  • Any problems with integration into the AnimatedVectorDrawable project. So what happens with default templates or your projects? nice to attach to the issue module build.gradle application. - pavlofff
  • With old projects this does not happen, only when creating new ones. But the problem has already been solved by updating the studio to the latest version. - cheerful_weasel

1 answer 1

I updated Android Studio to the latest version (2.3.1) and everything seems to be gone.