How to obfuscate android library(.aar) using proguard?
问题 I want to obfuscate the .aar library using proguard for distribution purpose, I tried many solution over internet but nothing has worked till now, only some code are obfuscated. Can anybody help me to solve the issue? 回答1: In your build.gradle, add consumerProguardFiles under defaultConfig : android { compileSdkVersion Integer.parseInt("${COMPILE_SDK}") buildToolsVersion "${BUILD_TOOLS_VERSION}" defaultConfig { targetSdkVersion Integer.parseInt("${TARGET_SDK}") minSdkVersion Integer.parseInt(