我正在尝试构建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
$. build/envsetup.sh
我可以评论来自/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
答案 0 :(得分:1)
回答我自己的问题。希望它可以帮助其他面临类似问题的人:
我可以通过禁用它给出错误的特定模块的proguard来暂时解决我的问题
为此,请在Android.mk
LOCAL_PROGUARD_ENABLED := disabled