proguard

Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to export apk and I want to enable Proguard but it throwing below error. I read so many answers and tried but didn't worked. Getting below error: Warning:Exception while processing task java.io.IOException: java.lang.NullPointerException Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease StackTrace: :app:transformClassesAndResourcesWithProguardForRelease ProGuard, version 5.2.1 Warning: Exception while processing task java.io.IOException: java.lang.NullPointerException :app

How to use proguard.config setting in project.properties file?

匿名 (未验证) 提交于 2019-12-03 01:26:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I use eclipse and I guess ant building system. In my project root i have a project.properties file which contains proguard.config setting. This setting is said in sdk examples to either proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt or proguard.config=${sdk.dir}/tools/proguard/proguard-android-optimize.txt:proguard-project.txt I have found somewhere that you can state multiple files delimited by colon ":". But nowhere it is explained in depth which of files takes precedence. I mean does this use

Could not determine the dependencies of task ':app:crashlyticsStoreDeobsDebug' if I enable the proguard

。_饼干妹妹 提交于 2019-12-03 01:23:08
I get following error when I was running an app within Android Studio 2. Gradle tasks [:app:assembleDebug] Could not determine the dependencies of task ':app:crashlyticsStoreDeobsDebug'. > Task with path 'dexDebug' not found in project ':app'. BUILD FAILED Here is the build.gradle for module buildscript { repositories { maven { url 'http://download.crashlytics.com/maven' } maven { url "http://dl.bintray.com/populov/maven" } } dependencies { classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+' } } apply plugin: 'com.android.application' apply plugin: 'crashlytics' repositories {

proguard warning: the configuration keeps the entry point…but not the descriptor class

匿名 (未验证) 提交于 2019-12-03 01:19:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've configured: -keep ,allowoptimization,allowobfuscation,allowshrinking public class org.jf.dexlib2.dexbacked.** { *; } but still getting the warning: Note: the configuration keeps the entry point 'com.trusteer.trf.dex_parser { int get_strings_count(org.jf.dexlib2.dexbacked.DexBackedDexFile); }', but not the descriptor class 'org.jf.dexlib2.dexbacked.DexBackedDexFile' I am using proguard version 4.7 (in Android SDK) What should I do? 回答1: You have told Proguard to keep a certain method void foo(Bar bar); but to obfuscate the descriptor

Android Studio - ProGuard “java.io.IOException …bin\\classes (No such file or directory)”

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: So I am running ProGuard for the first time and I am getting a weird error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:proguardRelease'. > java.io.IOException: Can't read [C:\Users\Some\workspace\MyApp\app\bin\classes] (No such file or directory) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Here is my gradle: apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion '19.1.0' defaultConfig { minSdkVersion 16

Android Proguard SqlCipher NoClassDefFoundError

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Have been battling with Proguard all day and have tried many examples and solutions on the official Proguard site as well as StackOverflow. I have a large project I need to obfuscate, which has a number of referenced library projects and Jars. I am getting 725 warnings from proguard from 2 libs, com.google.common and twitter4j. I can happily get the project to compile if I add the following: -dontwarn com.google.common.** -dontwarn twitter4j.** However, the app crashes instantly on open, so this seems to just be a way of hiding an issue, not

Build script error, unsupported Gradle DSL method found: 'android()'!

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Android Studio 0.4.5 and having troubles syncing gradle. When I try to do that I get this error: Gradle 'MyApp' project refresh failed: Build script error, unsupported Gradle DSL method found: 'android()'! My solution contains 4 modules. Here is my root build.graddle : buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.8.+' } } android { packagingOptions { exclude 'META-INF/LICENSE.txt' } } allprojects { repositories { mavenCentral() } } And the others (I removed dependencies

Proguard breaking audio file in assets or raw

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an activity that plays a beep sound with MediaPlayer that works fine and used to work fine even in the proguarded production version. With the latest release it now suddenly crashes with Caused by: android.content.res.Resources$NotFoundException: File res/raw/beep.ogg from drawable resource ID #0x7f060000 at android.content.res.Resources.openRawResourceFd(Resources.java:994) at android.media.MediaPlayer.create(MediaPlayer.java:855) at com.digikey.mobile.activity.CaptureActivity.onCreate(SourceFile:135) at android.app.Activity

Proguard error with method signatures

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm getting a strange error while trying to make a Proguard version of my Android app. The error is: [proguard] Optimizing... [proguard] Unexpected error while evaluating instruction: [proguard] Class = [net/domain/packagename/service/ExifEditor] [proguard] Method = [setGpsLocation(DDDJ)V] [proguard] Instruction = [294] aload_3 v3 [proguard] Exception = [java.lang.IllegalArgumentException] (Value is not a reference value [proguard.evaluation.value.UnknownDoubleValue]) [proguard] Unexpected error while performing partial evaluation: [proguard

Proguard Exception java.io.IOException: Duplicate zip entry

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: While building app with proguard for release i got this error. Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. Warning:Exception while processing task java.io.IOException: Can't write [C:\Users\sagar.HP\AndroidStudioProjects\MyApp\app\build\intermediates\ transforms\proguard\release\jars\3\1f\main.jar] (Can't read [C:\Users\sagar.HP\.android\build- cache\bf0ee9d089eb4a68c393\output\jars\classes.jar(;;;;;;**.class)] (Duplicate zip entry [com/google/android/gms/internal/bs.class == classes.jar:com/google