proguard

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

梦想与她 提交于 2020-01-01 11:12:31
问题 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" }

Flexjson and Dexguard/Proguard

旧时模样 提交于 2020-01-01 10:58:30
问题 I am having issues using dexguard when it comes to flexjson library. I keep getting the following error when trying to deserialize using JSONDeserializer. **09-15 20:46:10.271 10901-11552/** **A/art: sart/runtime/class_linker.cc:3430] Check failed: klass->IsProxyClass()** Does anyone have the proper rules for flexjson to work properly after obfuscation in android release apks? Something similar to gson lib. 回答1: Chances are that this is on a Samsung device -- a few device models and Android

how to specify injars for proguard within android gradle build files for libraries that are pulled from maven central

梦想与她 提交于 2020-01-01 10:07:08
问题 is there a way to pass libraries pulled from maven central as injars for proguard? I want them to be obfuscated. Context: remove unused classes with proguard for Android 回答1: I never used Maven and I'm using Gradle, but either build syste, the same thing applies I believe. And I don't think that what you want is possible... The -injars keyword is specific to the ProGuard configuration file, which is a text file read by the build tools. The only way I see is that if you build some kind of

Cannot fix Android Proguard Returned with error code 1 error

混江龙づ霸主 提交于 2020-01-01 09:33:16
问题 When I try to use proguard in my android application simply adding proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt to my project.properties file, the APK export fails with the message Proguard Returned with error code 1 This is my project.properties file target=android-18 android.library.reference.1=../LVL proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt This is the error stack: Proguard returned with error code 1. See console [2013-08-28 18:27:13 - MyApp] Warning

Gradle badass-runtime-plugin and ProGuard Gradle Plugin

守給你的承諾、 提交于 2020-01-01 09:11:19
问题 How to run proguard before jPackage? Introduction Im developing an app in JavaFx using gradle plugins and packaging it with jPackager, also using the gradle plugins. The main plugins im using are: id 'org.openjfx.javafxplugin' version '0.0.8' id 'org.beryx.runtime' version '1.7.0' id "com.github.johnrengelman.shadow" version "5.1.0" My current gradle version is: gradle-5.6.2-all Problem description How do I use proguard so the code gets obfuscated and optimized before jPackage do its job? I

Gradle badass-runtime-plugin and ProGuard Gradle Plugin

帅比萌擦擦* 提交于 2020-01-01 09:11:10
问题 How to run proguard before jPackage? Introduction Im developing an app in JavaFx using gradle plugins and packaging it with jPackager, also using the gradle plugins. The main plugins im using are: id 'org.openjfx.javafxplugin' version '0.0.8' id 'org.beryx.runtime' version '1.7.0' id "com.github.johnrengelman.shadow" version "5.1.0" My current gradle version is: gradle-5.6.2-all Problem description How do I use proguard so the code gets obfuscated and optimized before jPackage do its job? I

Conflict between Android data binding and Guava causes ProGuard error

被刻印的时光 ゝ 提交于 2020-01-01 09:05:30
问题 I get the following error while compiling my Android app with ProGuard enabled. Warning: library class android.databinding.tool.util.SourceCodeEscapers$1 extends or implements program class com.google.common.escape.CharEscaper Warning: library class android.databinding.tool.util.SourceCodeEscapers$JavaCharEscaper extends or implements program class com.google.common.escape.ArrayBasedCharEscaper Warning: library class android.databinding.tool.util.SourceCodeEscapers$JavaCharEscaperWithOctal

Proguard obfuscation results in java.lang.IllegalArgumentException: class declares multiple JSON fields named “a”

拈花ヽ惹草 提交于 2020-01-01 08:46:58
问题 Upon starting up my app logs two errors, but only after obfuscation. Without obfuscation there are no errors. Unless I'm being misled, the errors are like: class Property declares multiple JSON fields named a and same for class PropertyDefinition. 05/18 03:33:19.465 java.lang.IllegalArgumentException: class PropertyDefinition declares multiple JSON fields named a: com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:122) com.google.gson

Proguard obfuscation results in java.lang.IllegalArgumentException: class declares multiple JSON fields named “a”

…衆ロ難τιáo~ 提交于 2020-01-01 08:46:31
问题 Upon starting up my app logs two errors, but only after obfuscation. Without obfuscation there are no errors. Unless I'm being misled, the errors are like: class Property declares multiple JSON fields named a and same for class PropertyDefinition. 05/18 03:33:19.465 java.lang.IllegalArgumentException: class PropertyDefinition declares multiple JSON fields named a: com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:122) com.google.gson

Proguard: How to keep everything except specific condition?

删除回忆录丶 提交于 2020-01-01 06:27:12
问题 I'm using Proguard to obfuscate my code, and I need to keep every third party libraries like: -keep class com.layer.** -dontwarn com.layer.** -keep class com.twitter.** -keep class android.support.** -keep class com.crashlytics.** { *; } -dontwarn com.crashlytics.** ... And whenever I add a new third party library, I need to check its package name and add it to my proguard config file, or the app may crashes. Can't I write the rule just like this? I don't care about codes that's not mine.