Java.util.zip.ZipException: invalid LOC header (bad signature)


#1

Hi there

I am trying to build apk form my project but I get this error:
FAILURE: Build failed with an exception.

  • What went wrong:
    java.util.zip.ZipException: invalid LOC header (bad signature)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    ERROR building one of the platforms: Error code 1 for command: /home/hosein/Documents/Projects/newTestTabApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/hosein/Documents/Projects/newTestTabApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
    You may not have the required environment or OS to build this project
    Error: Error code 1 for command: /home/hosein/Documents/Projects/newTestTabApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/hosein/Documents/Projects/newTestTabApp/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true

How can I fix this?