我正在尝试使用ProGuard为我的项目制作发布apk文件,显然我正在使用许多第三方库,我只需要使用它们中的几个类,我真的想得到一些解释.
我的调试版本不仅仅是20-MB
,所以我想通过使用shrinking
in 来减少它proguard
,但是它给了我一些我无法弄清楚的警告,经过故障排除,我不知道应该做什么改变,
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
Run Code Online (Sandbox Code Playgroud)
上面的行显示build.gradle
模块中的片段:app
-keepattributes InnerClasses
Run Code Online (Sandbox Code Playgroud)
这是我用来抑制一些警告proguard-rules.pro
,我确实在Proguard上做了其他问题,但是无法得到它.我已经提到了在尝试获取发布版本时获得的消息
Note: duplicate definition of library class [android.net.http.SslError]
Note: duplicate definition of library class [android.net.http.SslCertificate]
Note: duplicate definition of library class [android.net.http.SslCertificate$DName]
Note: duplicate definition of library class [org.apache.http.conn.scheme.HostNameResolver]
Note: duplicate definition of library class [org.apache.http.conn.scheme.SocketFactory]
Note: duplicate definition of library class [org.apache.http.conn.ConnectTimeoutException]
Note: duplicate definition of library class …
Run Code Online (Sandbox Code Playgroud)