【发布时间】:2014-12-30 04:15:49
【问题描述】:
我有一个独立的 Android 库项目,我想在启用 Proguard 的情况下编译这个项目。我使用的是 Android Studio 1.0,并且我已经启用了具有 minifyEnabled true 的 Proguard。但是在干净的构建之后,我收到以下错误
Error:Execution failed for task ':test_sdk:proguardRelease'.
> java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
知道我做错了什么吗?
【问题讨论】:
-
尝试无效缓存/重启
-
在库项目上启用 proguard 是否有任何限制?