【发布时间】:2018-01-02 20:22:37
【问题描述】:
来自此参考:
https://github.com/codepath/android_guides/wiki/Building-your-own-Android-library
我有以下 gradle 文件:
android {
compileSdkVersion 25
buildToolsVersion "26.0.2"
buildTypes {
release {
minifyEnabled true
consumerProguardFiles 'consumer-proguard-rules.pro'
}
}
}
还有以下proguard文件:
-dontobfuscate
-optimizations !code/allocation/variable
-keep public class * {
public protected *;
}
但是,当我运行“assembleRelease”任务来构建我的发布 aar 文件时,我在 aar 中的所有类都丢失了。
有什么想法吗?
【问题讨论】:
-
分享你的
consumer-proguard-rules.pro。 -
这是我的 consumer-proguard-rules.pro 文件
-
@lostintranslation 请参阅以下对您的 proguard 规则的更正。
标签: android android-proguard aar