microsoftgraph / microsoftgraph/msgraph-beta-sdk-java

Android Gradle build failed with Zip64NotSupportedException

未关闭
#976 12 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

external priority:p1 type:bug
主要语言
Java
星标
32
派生
14
平均合并
1 天 3 小时
30 天内合并 PR
6

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 msgraph-beta-sdk-java 6.13.0、Gradle 8.8 和 Android Gradle Plugin 8.4.1 重现 Android 应用的构建,并遵循列出的依赖项和源代码步骤。检查转换后的 microsoft-graph-beta-6.13.0.jar,并将结果与能够成功构建的 msgraph-sdk-java 依赖项进行比较;完成标准是 beta SDK 能够在启用和不启用 Proguard 的 Android 应用中构建。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, java
领域
build-system, mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。