proguard

Android simplexml.jar proguard problem

痞子三分冷 提交于 2020-01-02 06:17:42
问题 I just try to parse a simple xml documention by simple-xml-2.6.jar.I put this jar into a folder named lib then add it in libraries .Then i attempt to skip this jar so code in the proguard.cfg just like below: -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -libraryjars lib/simple-xml-2.6.jar -dontwarn javax.xml.stream.events.** -dontwarn javax.xml.stream.**

ClassNotFoundException: twitter4j.conf.PropertyConfigurationFactory : Android [closed]

梦想的初衷 提交于 2020-01-02 05:50:37
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . If I don't run pro-guard on my project, everything is fine but if I run pro-guard and install .apk in device, I am getting above error. I tried adding following lines in proguard-android.txt file -keep public class twitter4j.conf.PropertyConfigurationFactory -dontwarn twitter4j.** but it did not make any

How Proguard works in Intellij Idea?

自古美人都是妖i 提交于 2020-01-02 04:36:09
问题 I am using IntelliJ IDea 11.1.3 for Android development and I must admit it is a wonderful tool. I have few doubts about how to use Proguard with the IDE. I have found the option of Run Progaurd under Open Module Settings -> Facets as in the image below Run Proguard need a location of Config File which is defaulted to proguard-project.txt. Next is a check box which says Include system proguard file . What System Proguard File is referred to in this checkbox option? Given all the configuration

Retrofit2 proguard remove param

徘徊边缘 提交于 2020-01-02 02:44:14
问题 I use retrofit 2 & using proguard in my project. My proguard: -dontwarn retrofit2.** -keep class retrofit2.** { *; } -keepattributes Signature -keepattributes Exceptions -keepclassmembers class fqcn.of.javascript.interface.for.webview { public *; } # Begin twitter 4j. -dontwarn twitter4j.** -keep class twitter4j.conf.PropertyConfigurationFactory -keep class twitter4j.** { *; } # End twitter 4j. # Start androidsocialnetworks -keep class com.androidsocialnetworks.lib.** { *; } # End

Using ProGuard causes NoSuchFieldError for ACRA

邮差的信 提交于 2020-01-02 01:38:46
问题 I use ACRA 4.4.0 in my Android apps to receive crash reports from users. My IDE is ADT Build: v22.2.1-833290. Few days ago I've started using ProGuard for apps I'm going to publish on Google Play. When I install and start exported signed apk, a NoSuchFieldError occures for fields used in ACRA reports. My code is: @ReportsCrashes(formKey = <my_key>, mailTo = <my_email>, customReportContent = { ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME, ReportField.ANDROID_VERSION, ReportField

android studio...混淆打包全揭秘

感情迁移 提交于 2020-01-01 12:56:26
  前言,当前android studio使用的版本较新,低版本的如果有差异,或者问题,欢迎拍砖! 1、修改配置文件 找到配置文件, build.gradle,修改如下。 1 signingConfigs { 2 release { 3 // 下面各值的意思将在后续进行讲解 4 storeFile file('release.keystore') 5 storePassword "123456" 6 keyAlias "androiddebugkey" 7 keyPassword "123456" 8 } 9 debug { 10 storeFile file('release.keystore') 11 storePassword "123456" 12 keyAlias "androiddebugkey" 13 keyPassword "123456" 14 } 15 } 16 17 buildTypes { 18 release { 19 minifyEnabled true // 设置代码进行混淆 20 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 signingConfig signingConfigs.release // 签名配置 22 }

Android Build fails using Proguard and Gradle

99封情书 提交于 2020-01-01 12:16:17
问题 I have recently converted a project from eclipse/ant to using Android Studio/Gradle. My debug build works fine but when I attempt to do a release build with proguard enabled it fails with the following error 16:26:13.437 [ERROR] [system.err] Unexpected error while computing stack sizes: 16:26:13.438 [ERROR] [system.err] Class = [com/a/a/a/d/d] 16:26:13.438 [ERROR] [system.err] Method = [<clinit>()V] 16:26:13.438 [ERROR] [system.err] Exception = [java.lang.IllegalArgumentException] (Stack size

Android Build fails using Proguard and Gradle

倾然丶 夕夏残阳落幕 提交于 2020-01-01 12:16:07
问题 I have recently converted a project from eclipse/ant to using Android Studio/Gradle. My debug build works fine but when I attempt to do a release build with proguard enabled it fails with the following error 16:26:13.437 [ERROR] [system.err] Unexpected error while computing stack sizes: 16:26:13.438 [ERROR] [system.err] Class = [com/a/a/a/d/d] 16:26:13.438 [ERROR] [system.err] Method = [<clinit>()V] 16:26:13.438 [ERROR] [system.err] Exception = [java.lang.IllegalArgumentException] (Stack size

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'

99封情书 提交于 2020-01-01 11:14:28
问题 I must use certain librairy in my project. When I want bebu my application I receive an indication which says to me that my code exceeds 65k method. Thus I decided to use Proguard. But I receive this error. my code of buile.gradle apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "transplusafrica.delydress" minSdkVersion 19 targetSdkVersion 24 versionCode 1 versionName "1.0" }

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'

混江龙づ霸主 提交于 2020-01-01 11:12:47
问题 I must use certain librairy in my project. When I want bebu my application I receive an indication which says to me that my code exceeds 65k method. Thus I decided to use Proguard. But I receive this error. my code of buile.gradle apply plugin: 'com.android.application' apply plugin: 'realm-android' android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "transplusafrica.delydress" minSdkVersion 19 targetSdkVersion 24 versionCode 1 versionName "1.0" }