JailedBird / ArouterGradlePlugin

Arouter auto register plugin for AGP7.4+ & AGP8
Apache License 2.0
46 stars 7 forks source link

[Warning] Merge [jar:entry] ... ZipException: duplicate entry - Should I be worried? #10

Closed blundell closed 7 months ago

blundell commented 7 months ago

Thank you for the plugin :100: appreciate the work!

Just moved to your plugin and getting these logs. I wanted to ask, should I do something to fix them, or can they be ignored safely?

Welcome to use ArouterGradlePlugin for AGP8: https://github.com/JailedBird/ArouterGradlePlugin
ArouterGradlePlugin task start:
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/efccdfcf307ad27327b24a64f8fc64e7/transformed/classes.jar:META-INF/api_debug.kotlin_module, error is java.util.zip.ZipException: duplicate entry: META-INF/api_debug.kotlin_module 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/fdc8860eba01e2458b40c08b2180380f/transformed/classes.jar:META-INF/network_debug.kotlin_module, error is java.util.zip.ZipException: duplicate entry: META-INF/network_debug.kotlin_module 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/d8b78c30cce61a289860f40e7681fde8/transformed/classes.jar:META-INF/api_debug.kotlin_module, error is java.util.zip.ZipException: duplicate entry: META-INF/api_debug.kotlin_module 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/c83d6f3b1646b8cca2ff970696d18658/transformed/classes.jar:META-INF/api_debug.kotlin_module, error is java.util.zip.ZipException: duplicate entry: META-INF/api_debug.kotlin_module 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/226dd8449da1d43946713c770e9d5b74/transformed/jetified-kotlinx-coroutines-reactive-1.7.3.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/b9611e00393fc1288ba3de12730384ca/transformed/jetified-kotlinx-coroutines-core-jvm-1.7.3.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/9757e5a0b2041be3f82e9a98d9cb5f55/transformed/jetified-kotlinx-coroutines-android-1.7.3.jar:META-INF/com.android.tools/proguard/coroutines.pro, error is java.util.zip.ZipException: duplicate entry: META-INF/com.android.tools/proguard/coroutines.pro 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/9757e5a0b2041be3f82e9a98d9cb5f55/transformed/jetified-kotlinx-coroutines-android-1.7.3.jar:META-INF/proguard/coroutines.pro, error is java.util.zip.ZipException: duplicate entry: META-INF/proguard/coroutines.pro 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/9757e5a0b2041be3f82e9a98d9cb5f55/transformed/jetified-kotlinx-coroutines-android-1.7.3.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/7f718f849dfa5092b963961c31a750d2/transformed/jetified-kotlinx-serialization-core-jvm-1.6.2.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/96b780c4e0431756b7381b5f8ee0ffa6/transformed/jetified-kotlinx-serialization-json-jvm-1.6.2.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/ec341a1d1c05e49acf77a14b1adfd698/transformed/jetified-kotlin-reflect-1.8.22.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/041281a17be894ec96e5999a254a0237/transformed/jetified-kotlin-stdlib-jdk7-1.9.10.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/f153a07b535e76c87874b4c2a54e563d/transformed/jetified-kotlin-stdlib-1.9.21.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/2099ca57c7c801bd478275b5e8ab2ce4/transformed/jetified-kotlin-stdlib-jdk8-1.9.10.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/81704ac3a33a454dbaa4bbcc5e889218/transformed/jetified-fastjson-1.2.78.jar:META-INF/NOTICE.txt, error is java.util.zip.ZipException: duplicate entry: META-INF/NOTICE.txt 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/81704ac3a33a454dbaa4bbcc5e889218/transformed/jetified-fastjson-1.2.78.jar:META-INF/LICENSE.txt, error is java.util.zip.ZipException: duplicate entry: META-INF/LICENSE.txt 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/87a744fe4a1a2aec7828b73e92586938/transformed/jetified-protobuf-javalite-3.21.11.jar:META-INF/maven/com.google.protobuf/protobuf-javalite/pom.properties, error is java.util.zip.ZipException: duplicate entry: META-INF/maven/com.google.protobuf/protobuf-javalite/pom.properties 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/87a744fe4a1a2aec7828b73e92586938/transformed/jetified-protobuf-javalite-3.21.11.jar:META-INF/maven/com.google.protobuf/protobuf-javalite/pom.xml, error is java.util.zip.ZipException: duplicate entry: META-INF/maven/com.google.protobuf/protobuf-javalite/pom.xml 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/8414471e92cc77bb9b9f874a1f67594a/transformed/jetified-annotations-23.0.0.jar:META-INF/versions/9/module-info.class, error is java.util.zip.ZipException: duplicate entry: META-INF/versions/9/module-info.class 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/a5ea1a6b65cccc4409a68d2fa92c482f/transformed/jetified-commons-text-1.9.jar:META-INF/LICENSE.txt, error is java.util.zip.ZipException: duplicate entry: META-INF/LICENSE.txt 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/a5ea1a6b65cccc4409a68d2fa92c482f/transformed/jetified-commons-text-1.9.jar:META-INF/NOTICE.txt, error is java.util.zip.ZipException: duplicate entry: META-INF/NOTICE.txt 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/475b398fc2bbb220b302686da8ffb908/transformed/jetified-threetenbp-1.6.5-no-tzdb.jar:META-INF/LICENSE.txt, error is java.util.zip.ZipException: duplicate entry: META-INF/LICENSE.txt 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/4c3f937bf88548549c297f13c58cfe32/transformed/jetified-hamcrest-core-1.3.jar:LICENSE.txt, error is java.util.zip.ZipException: duplicate entry: LICENSE.txt 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/46bd807ff639a5cd419a65d0cdd603de/transformed/jetified-commons-lang3-3.11.jar:META-INF/LICENSE.txt, error is java.util.zip.ZipException: duplicate entry: META-INF/LICENSE.txt 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/46bd807ff639a5cd419a65d0cdd603de/transformed/jetified-commons-lang3-3.11.jar:META-INF/NOTICE.txt, error is java.util.zip.ZipException: duplicate entry: META-INF/NOTICE.txt 
[Warning] Merge [jar:entry] /Users/me/.gradle/caches/transforms-4/c22e7c78121b3076f504635c6652fcd8/transformed/jetified-checker-qual-3.12.0.jar:META-INF/LICENSE.txt, error is java.util.zip.ZipException: duplicate entry: META-INF/LICENSE.txt 
JailedBird commented 7 months ago

About should you worry about ZipException warning , I think if ZipException entity for your project is not a "valid" class file, it will not cause your project exception;

Such as in your warning logs: api_debug.kotlin_module、META-INF/LICENSE.txt are some artifict's meta or version information, it will not make any effect to code logic

So, Please check your warning information, and ignore those "useless" ZipException warning, and be careful some useful class ZipException (Perhaps I think it will not ocurr because of build Duplicate check)

JailedBird commented 7 months ago

Forgive me for my poor English grammar🤣

JailedBird commented 7 months ago

Besides,the first “duplicate entry” will be assembled into out new transform jar;

blundell commented 7 months ago

Thank you! 谢谢 :-)