无法读取proguard.ClassPathEntry意外的EOF

时间:2016-11-30 13:19:20

标签: android proguard android-source

我正在尝试构建Cubieboard 4 AOSP源(版本4.4。我认为它与Cubieboard无关)。但我收到与proguard相关的错误:Error: Can't read [proguard.ClassPathEntry@5f893efe] (unexpected EOF) build/core/java.mk:435: recipe for target 'out/target/common/obj/APPS/Camera2_intermediates/proguard.classes.jar' failed

事实上,我之前能够无错误地构建完整的源代码。但是不知道这个错误何时开始出现。

我已经浏览了链接Android Proguard java.io.IOException,虽然这与找不到文件有关,但是我的意外EOF(文件结束);并且已经尝试了下面的事情:

  • 删除完整文件夹,然后执行$make -j4
  • 采购envsetup.sh $. build/envsetup.sh
  • 用最新的(5.3.1)
  • 替换原始的proguard工具(4.7)

我可以评论来自/build/target/product/sdk.mk等的特定PRODUCT_PACKAGES,其中会出现proguard错误。但最终遇到了Camera2的错误,这是我的应用程序绝对需要的,无法评论。

有人遇到过此并找到解决方案吗?请帮助!

详细日志与proguard 5.3.1:

Reading library jar [/home/osboxes/Project/Semapresence/cc-a80/android-fresh/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar]  
Reading library jar [/home/osboxes/Project/Semapresence/cc-a80/android-fresh/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar]  
Error: Can't read [/home/osboxes/Project/Semapresence/cc-a80/android-fresh/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar] (unexpected EOF)  
Error: Can't read [/home/osboxes/Project/Semapresence/cc-a80/android-fresh/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar] (unexpected EOF)  
build/core/java.mk:435: recipe for target 'out/target/common/obj/APPS/DeskClock_intermediates/proguard.classes.jar' failed  
make: *** [out/target/common/obj/APPS/DeskClock_intermediates/proguard.classes.jar] Error 1  
make: *** Waiting for unfinished jobs....  
build/core/java.mk:435: recipe for target 'out/target/common/obj/APPS/Camera2_intermediates/proguard.classes.jar' failed  
make: *** [out/target/common/obj/APPS/Camera2_intermediates/proguard.classes.jar] Error 1

1 个答案:

答案 0 :(得分:1)

回答我自己的问题。希望它可以帮助其他面临类似问题的人:
我可以通过禁用它给出错误的特定模块的proguard来暂时解决我的问题 为此,请在Android.mk

下面添加以下内容
LOCAL_PROGUARD_ENABLED := disabled