I created an .aar file (containing resources and drawings) of an Android library project using
./gradlew assemble
I turned on obfuscation by setting minify == true
buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }
However, when I run the specified gradle command with minify enabled = true, I get java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options? java.io.IOException: The output jar is empty. Did you specify the proper '-keep' options?
What does this error indicate and how can I confuse the .aar library file?
Best wishes
android android-studio obfuscation proguard
user2498079
source share