小编Dan*_*ilo的帖子

Android Library: Release .aar getting classes.jar empty when using proguard

I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty.

I have checked my proguard-rules.pro and it seems to be all right.

I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside.

After all, is it possible to generate an android library obfuscating the code?

EDIT 1: Adding module build.gradle

apply plugin: 'com.android.library'

android …
Run Code Online (Sandbox Code Playgroud)

android proguard gradle android-library android-proguard

7
推荐指数
1
解决办法
1389
查看次数