proguard

Removing logging with ProGuard doesn't remove the strings being logged [duplicate]

江枫思渺然 提交于 2019-12-03 04:56:17
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Removing unused strings during ProGuard optimisation I have an Android application with dozens of logging statements. I'd prefer they wouldn't appear in the release version, so I used Proguard with something like this in the proguard.cfg file: -assumenosideeffects class android.util.Log { public static *** d(...); } But the problem is that there are a lot of Log.d("something is " + something) , and although the

Using Proguard for Android in Eclipse got Error

為{幸葍}努か 提交于 2019-12-03 04:36:13
I have taken a fresh install of Eclipse and all the latest Android tools and want to use Proguard on existing project, but for now I have created a new blank one. I have added a proguard.cfg file to my project added proguard.config=proguard.cfg to my default.properties Now when I try to export I get the following error [2010-12-12 10:36:35 - ApplicationTest] Proguard returned with error code 1. See console [2010-12-12 10:36:35 - ApplicationTest] 'C:\Program' is not recognized as an internal or external command, [2010-12-12 10:36:35 - ApplicationTest] operable program or batch file. [2010-12-12

Obsolete proguard file; use -keepclasseswithmembers instead of -keepclasseswithmembernames

岁酱吖の 提交于 2019-12-03 04:28:51
I am having the following error on proguard.cfg file in my android project. I dont know what this error says. Any idea? Try with Clean and build your project then select the error marker in the Problems view and press Delete. see the following link http://groups.google.com/group/android-developers/browse_thread/thread/7606320e664fec9b This is a bug with the SDK tools v11. http://code.google.com/p/android/issues/detail?id=16384 When Lint generates error, go to lint warnings view (Window > Show View > Other > android > Lint Warnings) and double click the error to modify proguard.cfg rename

Error working with Jackson library post-obfuscation using Proguard

只愿长相守 提交于 2019-12-03 04:21:02
问题 after scouring through all sorts of queries related to issues w/ obfuscation using Proguard, I've come to the point where I feel I might be the only one having this particular issue. Hence, the post. I have a fairly standard android app which makes use of JSON-based REST calls to exchange data. I make use of the Jackson library to parse the JSON data. Everything had been working flawlessly, until we decided to incorporate obfuscation for our release builds using Proguard. After sorting out a

Getting error while generating the .apk file if proguard is ON

瘦欲@ 提交于 2019-12-03 04:03:53
I am using proguard to obfuscate the code. I am getting the following error in console Proguard returned with error code 1. See console Warning: org.apache.cordova.CameraLauncher: can't find referenced class org.apache.commons.codec.binary.Base64 Warning: org.apache.cordova.CameraLauncher: can't find referenced class org.apache.commons.codec.binary.Base64 Warning: org.apache.cordova.CordovaWebView: can't find referenced method 'WebView(android.content.Context,android.util.AttributeSet,int,boolean)' in class android.webkit.WebView Warning: org.apache.cordova.CordovaWebViewClient: can't find

How can I obfuscate my sdk coded with kotlin (and get rid of Metadata)

放肆的年华 提交于 2019-12-03 03:45:20
问题 I'm developing a SDK (Android library), and I have to obfuscate a large part of my code so the customer may not try and play with internal code. My lib is coded in kotlin, and I used proguard to obfuscate the code. Problem is that there are still @kotlin.Metadata (runtime) annotations inside the code after compile and obfuscation. With those annotations, it's really easy to retrieve the java code that originated this "(not-so-)obfuscated" bytecode. I first thought it was my fault, and my

Android - App crashes on Pre-Lollipop devices

蹲街弑〆低调 提交于 2019-12-03 03:32:35
My app is running well on Lollipop devices but it keep crashing on prior to version Lollipop. I have simply implemented a banner add in my application with the following code through google documention // Request for Ads AdRequest adRequest = new AdRequest.Builder() // Add a test device to show Test Ads .addTestDevice(AdRequest.DEVICE_ID_EMULATOR) .build(); // Load ads into Banner Ads mAdView.loadAd(adRequest); using compileSdkVersion 23 buildToolsVersion "23.0.1" manifest <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

android studio 3.1 Warning: The rule `-keep public class *extends java.lang.annotation.Annotation {

被刻印的时光 ゝ 提交于 2019-12-03 03:32:35
问题 i recently upgraded android studio but im not able to find the source of the following issue reported in android studio 3.1: Warning: The rule `-keep public class *extends java.lang.annotation.Annotation { the warning seems to be cut off perhaps and missing information. but it looks like a proguard issue although i am getting this warning when building debug variant. i checked my proguard files and i dont have a line that matches that exactly. i searched the entire project. any ideas on the

Remove Logging with Proguard

故事扮演 提交于 2019-12-03 03:12:10
I am trying to remove the log statements without success. Other SO answers to the same question refer to Eclipse or to an old Android Studio IDE (Intellij). build.gradle buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } ... proguard-rules.pro -assumenosideeffects class android.util.Log { public static *** d(...); public static *** v(...); public static *** i(...); public static *** w(...); public static *** e(...); } I can still see the log statements after getting the source code from the signed app-release.apk momo

Android Studio - ProGuard IOException Duplicate Zip Entry

匿名 (未验证) 提交于 2019-12-03 03:10:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I am trying to set up ProGuard in Gradle for my Android Studio project and I get the following error when building the project: Error:Execution failed for task ':app:proguardDebug'. java.io.IOException: Can't write [C:\Users\Rich\Desktop\WebProjects\AndroidStudioProjects\Roomie\app\build\intermediates\classes-proguard\debug\classes.jar] (Can't read C:\Users\Rich\Desktop\WebProjects\AndroidStudioProjects\Roomie\app\libs\bolts-android-1.1.4.jar(;;;;;;!META-INF/MANIFEST.MF)] (Duplicate zip entry [a/a.class == bolts-android-1.1.4.jar:bolts