proguard

“Java.exe” exited with code 1 (Proguard issue)

梦想的初衷 提交于 2019-12-29 00:40:55
问题 I get the following error when I build my Xamarin.Android app in Release. "Java.exe" exited with code 1 Here is the output... ... 1> java.io.IOException: Can't read [C:\Users\FranciscoJavier\AppData\Local\Android\android-sdk\platforms\android-24\android.jar] (Can't process class [java/nio/charset/CharsetDecoder.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7))) 1> at proguard.InputReader.readInput(InputReader.java:230) 1> at proguard.InputReader.readInput(InputReader

“Java.exe” exited with code 1 (Proguard issue)

[亡魂溺海] 提交于 2019-12-29 00:40:00
问题 I get the following error when I build my Xamarin.Android app in Release. "Java.exe" exited with code 1 Here is the output... ... 1> java.io.IOException: Can't read [C:\Users\FranciscoJavier\AppData\Local\Android\android-sdk\platforms\android-24\android.jar] (Can't process class [java/nio/charset/CharsetDecoder.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7))) 1> at proguard.InputReader.readInput(InputReader.java:230) 1> at proguard.InputReader.readInput(InputReader

Android Proguard configuration for the v7 Support Library ActionBar

余生颓废 提交于 2019-12-28 16:45:48
问题 I'm using the v7 Support Library to show an ActionBar on Android 2.x. It works well enough but I had to fix a few class/method not found errors after enabling Proguard. Are there any guidelines on which classes need to be preserved? So far I have these: -keep public class android.support.v7.internal.widget.ActionBarContainer -keep class android.support.v7.internal.widget.ActionBarView$HomeView -keep public class android.support.v7.internal.widget.ActionBarContextView It seems to work now but

Proguard and error

巧了我就是萌 提交于 2019-12-28 06:28:16
问题 I use this proguard file: -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/* -optimizationpasses 10 -allowaccessmodification -mergeinterfacesaggressively -overloadaggressively -assumenosideeffects class android.util.Log { *; } -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public

proguard Missing type parameter

一笑奈何 提交于 2019-12-27 20:12:00
问题 i try obfuscate my code of android app with ProGuard . But after this my app give exception at running: 11-15 01:46:26.818: W/System.err(21810): java.lang.RuntimeException: Missing type parameter. 11-15 01:46:26.828: W/System.err(21810): at da.<init>(Unknown Source) 11-15 01:46:26.828: W/System.err(21810): at gc.<init>(Unknown Source) 11-15 01:46:26.828: W/System.err(21810): at fx.f(Unknown Source) 11-15 01:46:26.828: W/System.err(21810): at com.yourshows.activity.UnwatchedActivity.onResume

implement proguard with cocoas2d

故事扮演 提交于 2019-12-25 06:28:41
问题 I have used cocos2d-x to develop the game. now i have applied pro-guard to it, resolved all the warnings. Finally I exported the api. The pro-guard worked fine for me. But when I tested the api, the application crashed. Without proguard the application works smoothly. Any solution for on how to implement proguard with cocos2dx.? 回答1: Can you share your proguard rules with us ? Did you add a rule to tell Proguard to avoid obfuscating native methods ? -keepclasseswithmembernames

implement proguard with cocoas2d

前提是你 提交于 2019-12-25 06:28:09
问题 I have used cocos2d-x to develop the game. now i have applied pro-guard to it, resolved all the warnings. Finally I exported the api. The pro-guard worked fine for me. But when I tested the api, the application crashed. Without proguard the application works smoothly. Any solution for on how to implement proguard with cocos2dx.? 回答1: Can you share your proguard rules with us ? Did you add a rule to tell Proguard to avoid obfuscating native methods ? -keepclasseswithmembernames

Android WebView JavaScript callbacks fail in APK without Proguard

允我心安 提交于 2019-12-25 05:12:31
问题 I'm exposing @JavascriptInterface callbacks for a WebView which work just fine when debugging the app via Android Studio, however if the app is installed via APK the JavaScript callbacks fail with: "Uncaught TypeError: NativeApp.onProgress is not a function" I'm aware that improper Proguard rules can result in this problem, but in this case the project is not using Proguard and the problem occurs with debug and release APKS. If I inspect the APKs, the methods are present. public class

Proguard error android - oauth.signpost.signature

自古美人都是妖i 提交于 2019-12-25 04:26:31
问题 I am getting this error during build process Warning:oauth.signpost.signature.OAuthMessageSigner: can't find referenced class org.apache.commons.codec.binary.Base64 Its a jar file inside the libs folder that i am using inside my project. Edit: Here is the build.gradle file but it doesn't include all the dependencies. I have some jars in the libs folder as well. apply plugin: 'com.android.application' apply plugin: 'robolectric' apply plugin: 'android' apply plugin: 'newrelic' android {

How to reduce android activity and app size?

余生颓废 提交于 2019-12-25 03:53:27
问题 I'm new at android devolpment, so I am developing an alphabet app for an old language, the app would look like this first page has a picture and two buttons first button links to a page with text second button links to a page with 24 images (alphabets), if you click on one of the image (alphabet) then you move on to a page with picture (alphabet) and below the picture there is a button to listen to the pronunciation of the letter in the end the app will contain 50 images , 24 audio files and