microsoftgraph / microsoftgraph/msgraph-beta-sdk-java
Android Gradle build failed with Zip64NotSupportedException
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 32
- Forks
- 14
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 6
Description
Expected behavior
Successful Android app build with msgraph-beta-sdk-java dependency
Actual behavior
When we try to build an Android App with msgraph-beta-sdk-java dependency we got Zip64NotSupportedException:
Caused by: com.android.tools.build.apkzlib.zip.compress.Zip64NotSupportedException: Zip64 EOCD locator found but Zip64 format is not supported: /Users/user/.gradle/caches/8.8/transforms/9fd679e3e134568b95e9ec02cc0912f4/transformed/jetified-microsoft-graph-beta-6.13.0.jar
at com.android.builder.files.ZipCentralDirectory.readCentralDirectoryRecord(ZipCentralDirectory.kt:145)
at com.android.builder.files.ZipCentralDirectory.initBuffer(ZipCentralDirectory.kt:76)
at com.android.builder.files.ZipCentralDirectory.access$initBuffer(ZipCentralDirectory.kt:38)
at com.android.builder.files.ZipCentralDirectory$directoryBuffer$2.invoke(ZipCentralDirectory.kt:47)
at com.android.builder.files.ZipCentralDirectory$directoryBuffer$2.invoke(ZipCentralDirectory.kt:47)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.android.builder.files.ZipCentralDirectory.getDirectoryBuffer(ZipCentralDirectory.kt:47)
at com.android.builder.files.ZipCentralDirectory.readZipEntries(ZipCentralDirectory.kt:210)
at com.android.builder.files.ZipCentralDirectory.access$readZipEntries(ZipCentralDirectory.kt:38)
at com.android.builder.files.ZipCentralDirectory$entries$2.invoke(ZipCentralDirectory.kt:45)
at com.android.builder.files.ZipCentralDirectory$entries$2.invoke(ZipCentralDirectory.kt:45)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.android.builder.files.ZipCentralDirectory.getEntries(ZipCentralDirectory.kt:45)
at com.android.builder.files.RelativeFiles.fromZip(RelativeFiles.java:112)
at com.android.builder.merge.LazyIncrementalFileMergerInputs.load(LazyIncrementalFileMergerInputs.java:90)
... 40 more
Gradle Android Plugin version: 8.4.1
Gradle version: 8.8
Steps to reproduce the behavior
- Add msgraph-beta-sdk-java dependency to Android app project
- Use SDK in Android app source code
- Build Android App
Trying to build with and without Proguard enabled but got the same error
P.S. It looks like this issue is related to the beta Java SDK. Can successfully build Android App with msgraph-sdk-java dependency.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the Android app build using msgraph-beta-sdk-java 6.13.0 with Gradle 8.8 and Android Gradle Plugin 8.4.1, following the listed dependency and source-code steps. Inspect the transformed microsoft-graph-beta-6.13.0.jar and compare the result with the successfully building msgraph-sdk-java dependency; done means the beta SDK builds in an Android app with and without Proguard.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100