microsoftgraph / microsoftgraph/msgraph-beta-sdk-java

Android Gradle build failed with Zip64NotSupportedException

Open
#976 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

external priority:p1 type:bug
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
  1. Add msgraph-beta-sdk-java dependency to Android app project
  2. Use SDK in Android app source code
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.