Skip to content

2.8.6 Throws exception (Cause: zip file is empty) when building with Android Studio  #1683

@jaydroid1024

Description

@jaydroid1024

Execution failed for task ':boss:transformClassesWithDexBuilderForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: zip file is empty
2.8.5 is ok

These are the relevant build information I checked, but I'm not sure if it's my problem
AGPBI: {"kind":"error","text":"Zip error while reading '/Users/xuejiewang/AndroidStudioProjects/QLife/package_name_XXX/XXX/build/intermediates/transforms/ajx/debug/**217.jar**': zip file is empty","sources":[{}],"tool":"D8"}

{ "name": "com.google.code.gson:gson:2.8.6_fb48d0051ec11deca68ca08fb0cdfb54", "index": 217, "scopes": ["EXTERNAL_LIBRARIES"], "types": ["CLASSES"], "format": "JAR", "present": true }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions