proguard

Proguard with Unity3d return error code 1

痴心易碎 提交于 2019-12-08 17:15:26
问题 I am using the proguard 4.11 with the Unity 3d In my project , I have include the unity-classes.jar in my libs folder When I generate the apk , it gives the following exception [2014-05-03 14:33:41 - FBUnityPlayerActivity] Proguard returned with error code 1. See console [2014-05-03 14:33:41 - FBUnityPlayerActivity] java.io.IOException: Can't read [C:\Users\TAT\Desktop\quick\FBUnityPlayerActivity\libs\unity-classes.jar] (Can't process class [com/unity3d/player/UnityPlayer.class] (Unknown

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease

拈花ヽ惹草 提交于 2019-12-08 17:05:54
问题 I'm trying to sign my app for release and it builds correctly, but i want to enable Proguard I'm getting the following error Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease my gradle file buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } lintOptions { disable 'InvalidPackage' } packagingOptions { exclude 'META-INF/services/javax.annotation.processing.Processor' exclude 'META

Proguard removing annotations in Android application

Deadly 提交于 2019-12-08 15:00:19
问题 I have included a project using gradle in my app: compile group: 'org.bytedeco', name: 'javacv', version: '0.11' Which builds fine. But whenever I run the app with proguard enabled, it apparently removes the @Platform annotation from the jars that get included then. I tried using the following based on http://proguard.sourceforge.net/manual/examples.html#annotations -keepattributes *Annotation* -keep @org.bytedeco.javacpp.annotation interface * { *; } I also tried the following based on http:

Gson library and Proguard

佐手、 提交于 2019-12-08 10:45:10
问题 I have got an issue with proguard and the Gson library. My code is AdServerResult result = (AdServerResult) new Gson().fromJson(json, AdServerResult.class); (I create a new AdServerResult object using the Gson library) My AdServerResult class : public class AdServerResult { public ArrayList<AdServerObject> shorts ; public ArrayList<AdServerObject> longs ; public ArrayList<AdServerObject> getShorts() { return shorts; } public void setShorts(ArrayList<AdServerObject> shorts) { this.shorts =

Strip ScalaSignature annotation from resulting binaries

守給你的承諾、 提交于 2019-12-08 09:50:46
问题 How can you strip java or scala annotations programmatically? One of the deliverables for my current project is my code, plus whatever dependencies my code relies on, as an uber-jar. We're building an SDK therefore any of the included dependencies need to be renamed as to not interfere with the SDK client's dependencies (meaning if we're using apache commons version X, and they're using version Y, there aren't any conflicts). We used sbt-assembly to rename the packages our code relies on. For

Differences in simple proguard keep option

旧街凉风 提交于 2019-12-08 08:49:12
问题 What is the difference between these two proguard options? -keep class com.myclass.** -keep class com.myclass.** { *; } 回答1: The first rule will only keep the classes themselves (and the default constructors). The second rule will also keep all methods and fields in the classes. 回答2: -keep class com.myclass.** Preserve all classes in the com.myclass package and any sub-packages. Even if shrinking and optimization steps should alter the structure of or remove these classes, do not do so. -keep

Fatal signal 11 after enabling proguard

与世无争的帅哥 提交于 2019-12-08 08:21:27
问题 When I create my app and lauch it from my IDE ( Eclipse ) app is working great, but when I build APK, it's crashing, but I can't figure out why? It shows Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1) . I uses https://github.com/puelocesar/android-lib-magick library in my app. Thanks in Advance.. 06-15 13:39:21.830: I/DEBUG(8010): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 06-15 13:39:21.830: I/DEBUG(8010): Build fingerprint: 'samsung/GT-I9100/GT-I9100:4.0.4/IMM76L/eng

Proguard error on SAAgent.class

偶尔善良 提交于 2019-12-08 07:42:28
问题 I'm developping a Samsung Gear application with Samsung's accessory-v1.0.0.jar . When I try to create a signed apk (which preforms proguard steps) I get Unknown verification type [10] in stack map frame exception, because of Samsung's SAAgent class in accessory-v1.0.0.jar . I couldn't find any solutions, do you have a workaround for this? Same problem (not answered on Samsung's forum) here. Similar problem on Samsung's SPen SDK (this problem was solved on a later version of SPen SDK) What I

android proguard makes the youtube api oauth disabled?

拈花ヽ惹草 提交于 2019-12-08 07:39:27
I use the youtube java api client here http://code.google.com/p/google-api-java-client/ when I finish coding, the app goes well when unsigned. When I signed it, the Android signed it with proguard, which makes the signed apk. I installed it, the app goes wrong. When I try to login, it cann't call the right method(I guess), unlike when it's unsigned, it goes perfected well. here is the proguard-google-api-client.txt # ProGuard Configuration file # # See http://proguard.sourceforge.net/index.html#manual/usage.html # Needed to keep generic types and @Key annotations accessed via reflection

Proguard returned with error code 1, error can't find referenced class android.support.v4.app

送分小仙女□ 提交于 2019-12-08 07:24:34
问题 I am receiving this exception while creation of signed apk of my application. [2017-04-13 02:47:21 - MyApp] Proguard returned with error code 1. See console [2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find superclass or interface android.support.v4.app.DialogFragment [2017-04-13 02:47:21 - MyApp] Warning: com.google.android.gms.common.api.d: can't find superclass or interface android.support.v4.app.Fragment [2017-04-13 02:47:21 -