AndroidIDE icon indicating copy to clipboard operation
AndroidIDE copied to clipboard

Build projects crash when some lib is Implementation.

Open AdminHcat opened this issue 1 year ago • 0 comments

Issue Checklist

  • [X] I confirm that this issue is not a duplicate and hasn't been reported before.
  • [X] I agree to follow the project's code of conduct.
  • [X] I have checked and verified that I am using the latest version of AndroidIDE from GitHub or F-Droid.

Additional terms

  • [X] I understand that providing incomplete or inaccurate information may result in the issue being closed.
  • [X] I agree to provide all requested details promptly for a comprehensive bug report.

Issue explanation

open project, add implementation 'com.belerweb:pinyin4j:2.5.0' to app/build.gradle ,when built complete will crash,it has been repeated many times to locate this problem

Expected behavior

project can be opened normally

Version name

v2.7.1-beta (27102)

Download source

GitHub

Relevant log output

AndroidIDE Crash Report
Version : v2.7.1-beta (27102)
CI Build : true
Branch : main
Commit : 55bb46b31
Variant : arm64-v8a (release)
Build type : OFFICIAL
F-Droid Build : false
F-Droid Version : null
F-Droid Version code : -1
SDK Version : 33
Supported ABIs : [arm64-v8a, armeabi-v7a, armeabi]
Manufacturer : Xiaomi
Device : 23090RA98C

Stacktrace:
java.util.zip.ZipException: invalid CEN header (duplicate entry)
	at java.util.zip.ZipFile.open(Native Method)
	at java.util.zip.ZipFile.<init>(ZipFile.java:265)
	at java.util.zip.ZipFile.<init>(ZipFile.java:187)
	at java.util.jar.JarFile.<init>(JarFile.java:169)
	at java.util.jar.JarFile.<init>(JarFile.java:133)
	at openjdk.tools.javac.file.FSInfo.getJarClassPath(Unknown Source:6)
	at openjdk.tools.javac.file.CacheFSInfo.getJarClassPath(Unknown Source:13)
	at com.itsaky.androidide.projects.ProjectManagerImpl$setupProject$4$jobs$1$1.invokeSuspend(Unknown Source:143)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
	at kotlinx.coroutines.DispatchedTask.run(Unknown Source:120)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:91)

AdminHcat avatar Feb 04 '24 22:02 AdminHcat