我在我的应用程序使用的几个库,后minifyEnabled
是true
,它不能生成APK。经过一番研究后,我找到了规则,并将它们逐个添加到.pro
文件中。在android中设置proguard规则,它只是加密代码?
这里是库列表
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:[email protected]'
compile 'org.apache.httpcomponents:httpmime:4.3.5'//Volley
compile 'org.apache.httpcomponents:httpcore:4.2.4'//Volley
compile 'com.mcxiaoke.volley:library:1.0.17'//Volley
compile 'com.github.bumptech.glide:glide:3.6.1'//Gradle
compile 'com.baoyz.swipemenulistview:library:1.3.0'//Swipe Menu li stview
compile 'org.lucasr.twowayview:twowayview:0.1.4' //horizontal listview
compile 'com.android.support:recyclerview-v7:+'
对于JAR,它是PayPalAndroidSDK-2.9.11.jar
总之,我不知道是否有可能不是由一个库来添加规则之一,因为一些图书馆似乎没有提到如何为他们设置proguard?它可以只是加密而不是优化代码并分离出一些有用的代码?
非常感谢。
Proguard的不** **没有在所有加密代码。它不具有加密功能。 –
对不起你迷惑,应该模糊处理的代码,而不是加密代码 – user782104
如何使用https://github.com/yongjhih/android-proguards或https://github.com/krschultz/android-proguard-snippets? –