proguard

LibGDX proguard

 ̄綄美尐妖づ 提交于 2019-12-11 06:01:26
问题 I have been trying to shrink the size of my libGDX game .jar. I have been trying to get proguard to work. Proguard keeps complaining about missing classes, or the output .jar won't run. I have tried all the existing configuration files I found for libGDX. Does anyone have experience with setting up proguard? 回答1: You can use the following configuration for libGDX: -dontwarn com.badlogic.gdx.** -dontnote com.badlogic.gdx.** -keepclassmembers class com.badlogic.gdx.graphics.Cubemap* { *; }

Obfuscate dependencies to single jar with Proguard

断了今生、忘了曾经 提交于 2019-12-11 05:27:18
问题 I have modular maven application and "module1" depends on "module2" and "module2" depends on "module3" etc.. In module1 I have something like this: <profile> <id>obfuscate</id> <build> <plugins> <plugin> <groupId>com.pyx4me</groupId> <artifactId>proguard-maven-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>proguard</goal> </goals> </execution> </executions> <configuration> <options> <option>-allowaccessmodification</option> <option>-keep public class com

Reflection not working on android release apk. Even with proguard/minify disabled

≯℡__Kan透↙ 提交于 2019-12-11 04:56:22
问题 Currently I'm facing an odd issue that the release apk of my app throws NoSuchFieldExceptions. It works fine on a debug apk. The fields I am trying to get are android.widget packaged. I have also made efforts with enabling proguard too and setting configurations in the proguard.pro file Here's the exception regardless. java.lang.IllegalAccessException: Class java.lang.Class cannot access field android.widget.ProgressBar com.trinitcore.localtrade.LoginActivity.o of class java.lang.Class Gradle

JsonProperty not working while minification enabled

老子叫甜甜 提交于 2019-12-11 04:47:38
问题 I have the following class class CodeRequest(@JsonProperty("phone") val phoneNumber: String) When I send request (using retrofit) with an object of this class as body (while minification is not enabled) everything works and request will be send in this form {"phone": "123"} But enabling minification with the following proguard-rules.pro will result in a {"phoneNumber": "123"} request body. # Jackson -keep class com.fasterxml.jackson.databind.ObjectMapper { public <methods>; protected <methods

android studio 提交git时,.gitignore文件配置

百般思念 提交于 2019-12-11 04:24:41
替换项目根目录下的.gitignore文件,内容如下:(注意,先提交.gitignore文件,再提交代码,否则会出现.gitignore失效) # Built application files *.apk *.ap_ # Files for the Dalvik VM *.dex # Java class files *.class # Generated files bin/ gen/ # Local configuration file (sdk path, etc) local.properties # OSX files .DS_Store # Android Studio *.iml .idea # Gradle files .gradle/ build/ # Local configuration file (sdk path, etc) local.properties # Proguard folder generated by Eclipse proguard/ # Log Files *.log 来源: CSDN 作者: 小鲁班one 链接: https://blog.csdn.net/m0_37143081/article/details/103470513

ProGuard: ClassCastException

寵の児 提交于 2019-12-11 04:04:48
问题 I'm getting this annoying ClassCastException when I obfuscate my Java code (which works fine before I obfuscate using ProGuard ). java.lang.ClassCastException: com.google.gson.internal.StringMap cannot be cast to net.minecraft.launcher.profile.Profile at java.lang.ClassCastException: com.google.gson.internal.StringMap cannot be cast to net.minecraft.launcher.profile.Profile at net.minecraft.launcher.profile.ProfileManager.getSelectedProfile(SourceFile:117) at net.minecraft.launcher.g.run

Android Studio cannot resolve getDefaultProguardFile

扶醉桌前 提交于 2019-12-11 03:55:41
问题 When I run my program i get no problems. When I try to generate signed apk, I am told that getDefaultProguardFile cannot be resolved. How can I fix this. Here is the code. apply plugin: 'com.android.application' android { compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { applicationId "com.dose.apps.brainnoodles" minSdkVersion 8 targetSdkVersion 21 versionCode 13 versionName "2.13" } buildTypes { release { //apply plugin: 'idea' minifyEnabled true proguardFiles

Proguard Error: Unknown option '(' in argument number 12

时光总嘲笑我的痴心妄想 提交于 2019-12-11 03:34:09
问题 I can't export my project with proguard, I get this error and out of solutions.. I don't know where is this argument number 12 ... [2013-05-14 17:38:39 - LiveWallpaper] Proguard returned with error code 1. See console [2013-05-14 17:38:39 - LiveWallpaper] Error: Unknown option '(' in argument number 12 my project.properties: # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): proguard.config=proguard.cfg # Project target. target

App crashes after downloading from Play Store?

随声附和 提交于 2019-12-11 03:13:46
问题 My app works fine in all devices before uploading it to play store. Now i have upload new version. android:versionCode="7" android:versionName="6.2" Please tell me how can i see logcat after downloading my app from Play Store. Is it possible to detect or get error . How can i resolve this issue. One problem i found while building apk was. I have enabled proguard. now i delete that file proguard-project.txt . then eclipse let me create an apk . Now tell me how to resolve this issue. My half

How to get list of stripped by Proguard methods and classes?

旧时模样 提交于 2019-12-11 02:34:07
问题 Proguard removes unused methods and classes during optimization. How to get list of them? 回答1: I think you should use printusage As per proguard -printusage [filename] Specifies to list dead code of the input class files. The list is printed to the standard output or to the given file. For example, you can list the unused code of an application. Only applicable when shrinking. This is code which will be removed at the time of optimization, though you can also control optimization process. 来源: