proguard

(x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2053,3): error MSB6006: “java.exe” exited with code 1

人盡茶涼 提交于 2020-01-23 19:00:31
问题 I've got a xamarin.form PCL. App build find in DEBUG and working. I wanted to enable "ProGuard" feature. but got the following error: 1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2053,3): error MSB6006: "java.exe" exited with code 1. What I've done: Set Max Heap Size: 1G to 5G. Enabled/Disabled Multi-Dex Switch between: SDK Assemblies only / SDK and user Assemblies Updated to the latest ProGuard and kept the latest configuration from the old ProGuard.

Android library proguard package obfuscation produces a.a.a.a.a collision

。_饼干妹妹 提交于 2020-01-23 16:43:09
问题 I'm writing 2 Android libraries. When I obfuscate both, the obfuscated code in both of them contains a class named a.a.a.a.a which causes the following error when trying to use both libraries in the same application: Duplicate class a.a.a.a.a found in modules classes.jar (lib1) and classes.jar (lib2) How can I prevent Proguard from obfuscating the first 3 packages to end up with: my.domain.lib1.a.a and my.domain.lib2.a.a ? Edit: The obfuscation is happening as part of building the libraries,

Android library proguard package obfuscation produces a.a.a.a.a collision

此生再无相见时 提交于 2020-01-23 16:42:25
问题 I'm writing 2 Android libraries. When I obfuscate both, the obfuscated code in both of them contains a class named a.a.a.a.a which causes the following error when trying to use both libraries in the same application: Duplicate class a.a.a.a.a found in modules classes.jar (lib1) and classes.jar (lib2) How can I prevent Proguard from obfuscating the first 3 packages to end up with: my.domain.lib1.a.a and my.domain.lib2.a.a ? Edit: The obfuscation is happening as part of building the libraries,

How to export signed application package in eclipse with proguard and crashlytics?

眉间皱痕 提交于 2020-01-23 03:52:07
问题 The crashlytics knowledge base says : "When building for release with Eclipse, export your application to an APK using the “Export Crashlytics-enabled Android Application” exporter from the Eclipse export menu." But I couldn't find this option. Here's the link Any help would be appreciated. Thanks! 回答1: Never mind I found it. It's in File-> Export and under the Android folder, there's a new "Export Crashlytics-enabled Android Application" option. Had a habit of exporting the other way so

how to proguard with spring-boot gradle plugin

余生长醉 提交于 2020-01-22 20:10:13
问题 How to setup proguard obfuscation with spring boot 2 and gradle build? Hello. Trying to setup code obfuscation of Spring Boot app with its gradle plugin and Proguard gradle plugin. Google mostly gives some approaches for older spring-boot-gradle-plugin version (i.e. this closest one using non-existing bootRepackage task), or using maven plugin (having repackage goal). Idea is to obfuscate classes before jar packaging, as I understand, but I don't see any entry points in current gradle plugin

How to keep/exclude a particular package path when using proguard?

 ̄綄美尐妖づ 提交于 2020-01-18 03:55:28
问题 I want to exclude some file paths from ProGuard. Example com.myapp.customcomponents How can I do this? I hate to be placing -keep flags for every single custom component file I have in this directory. I have tried the following but it doesn't work: -keep public class com.myapp.customcomponents.* 回答1: You don't specify in what way it doesn't work. Your configuration keeps the names of all public classes in the specified package: -keep public class com.myapp.customcomponents.* The following

google.android.gms:play-services-oss-licenses not working after obfuscation

∥☆過路亽.° 提交于 2020-01-15 09:57:08
问题 I'm working on a personal android application. I can't start OssLicensesMenuActivity after obfuscating. Application crashes. It works fine without obfuscation. startActivity(new Intent(getContext(), com.google.android.gms.oss.licenses.OssLicensesMenuActivity.class)); Here is my release configuration: release { minifyEnabled true debuggable true shrinkResources true useProguard true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } I added this line

app打包时改变名字

跟風遠走 提交于 2020-01-14 21:58:19
apply plugin: 'com.android.application' apply plugin: 'com.jakewharton.butterknife' android { compileSdkVersion 28 defaultConfig { applicationId "com.ms.xcloudrfid" minSdkVersion 16 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } android.applicationVariants.all { variant ->

android-support-v4 remove unused classes

自闭症网瘾萝莉.ら 提交于 2020-01-14 10:23:17
问题 Bacially, I am trying to shrink my application's .apk down to the smallest size possible. I currently have android-support-v4 jar file imported. My question is this: how do I remove unused classes from this jar file? Not finding any information after quite a bit of searches. If ProGuard is the solution, text to include in my proguard-project.txt file would be appreciated. 回答1: ProGuard indeed shrinks the size of applications. It treats application code (src/...) and library code (libs/...,

Failed to export application after upgrade to Proguard 4.8

别说谁变了你拦得住时间么 提交于 2020-01-13 09:05:12
问题 I just upgraded my Android SDK, ADT and Proguard to the latest and greatest. My project compiles builds and runs fine in debug mode, but as soon as I try to export a signed release APK of it, I receive an error from the Export Wizard without any error log messages on the Eclipse console!* If I try to view the error log via Window->Show View->Error Log all I see is more of the same: I have no idea what to do because neither Eclipse nor Proguard would give any hint about what the problem could