proguard

Android ProGuard +MultiDex causes ClassNotFoundException

二次信任 提交于 2019-12-04 21:10:10
问题 I have MultiDex enabled in my android project. It was working fine until I tried enabling proguard. I can successfully build the project but I get runtime exception on startup. It's unable to find the Application class and the MainActivity . I had the same problem before enabling MultiDex . Now I guess for some reason the MultiDex is not working properly with ProGuard . Here is what i get in the logcat - 02-17 19:01:09.749: I/MultiDex(2079): VM with version 2.1.0 has multidex support 02-17 19

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

走远了吗. 提交于 2019-12-04 20:53:12
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! 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 never looked here before. 来源: https://stackoverflow.com/questions/18156701/how-to-export-signed-application

how to reduce app size increased after admob ads?

ぃ、小莉子 提交于 2019-12-04 19:27:27
before adding google-play-services to my project its size was just 900kb and after adding lib of play services it is now 4.01MB . its terrible. for 900kb app ads of 3MB is too much. help me as soon as possible. my app is finished now. I tried reading about proguard but unable to understand. someone please give me step by step tutorial to reduce app size. Pranit More You don't need to edit google-play-services.jar file. Use proguard to keep only needed class files. Create proguard.txt file in your module directory (e.g. app/) and write following lines in that file: -keep public class com.google

Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease' while generating APK

半城伤御伤魂 提交于 2019-12-04 19:06:53
I have generated an APK of my Android application (as a try) and I did not have any problem, the APK has been generated correctly. Now, I want to obfuscate my code while generating the APK so I used the following line on my release block on build.gradle file. minifyEnabled true The problem is that now it throws me the following error: Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. java.io.IOException: Please correct the above warnings first. with a lot of warnings. To be more exact, 1018 warnings. Most of them are like: Warning:com.itextpdf.text.pdf

ProGuard with maven-android-plugin

孤街醉人 提交于 2019-12-04 18:37:15
I'm trying to pack my project to APK and then obfuscate it with ProGuard. Here is my pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.skayred</groupId> <artifactId>skayred</artifactId> <version>1.26</version> <packaging>apk</packaging> <name>skayred</name> <properties> <environment>development</environment> </properties> <dependencies> <dependency>

Producing an obfuscated library out of an Android Library Project

笑着哭i 提交于 2019-12-04 18:12:26
I've written an Android application using an Android Library project, also written by me. I have to release the source code of the app, but I don't want to distribute the sources of the library. This library defines, among other things, custom views, so it includes XML layouts and resources. I was thinking of releasing this library in binary form (a .jar maybe?), to be referenced by the main project. I want this binary library to be obfuscated via Proguard. Is this feasible? How? Thanks. As mentioned by Morrison Chang, there currently isn't any way to release an android library project as a

“Application stopped working” after enabling Proguard

ぃ、小莉子 提交于 2019-12-04 18:03:48
问题 It was a working app, both on emulator and the device i am testing on. But now, i enabled Proguard and Exported the signed app using Android-Tools > Export signed application Then i copied this .apk on to the SD card and tried to install on the Device. But the application stopped working, asking for force close if i try to open it. It works on the device if i run from Eclipse. Since, its said: Proguard has effect only when you export a release .apk file. I checked it, and the apk file size in

Android proguard issue: path may not be null or empty string. path='null'

心已入冬 提交于 2019-12-04 18:02:41
问题 Every thing work fine before setting minifyEnabled true and shrinkResources true After setting these values, whenever i run project i get this error: Information:Gradle tasks [:app:assembleProdRelease] Error:path may not be null or empty string. path='null' Information:BUILD FAILED Information:Total time: 23.606 secs Information:1 error Information:0 warnings Information:See complete output in console What does this error means Error:path may not be null or empty string. path='null' Here is

Android ProGuard obfuscation of library: keep class not working

 ̄綄美尐妖づ 提交于 2019-12-04 17:34:41
Intro: I have in AS 1 project with 2 models: Android library project with some "Public API class" Android APP dependent on above library (the library module is on the dependency list) Task: I want to obfuscate my library project because I want to expose it as public SDK but keep my code protected... What I did: So I made custom ProGuard rules: -dontshrink -dontoptimize -dontpreverify -keep class com.org.my_public_api_class_name I skip all other stages in order to eliminate where the bug is to only obfuscation stage. Result: Build of the APP module fails with errors like Error: cannot find

AsyncTask.doInBackground - abstract method not implemented error in Android Scala project

时间秒杀一切 提交于 2019-12-04 17:24:27
Can anyone give me any clues on how to debug the following. I have a mixed java / scala android project that I'm working on in Intellij and I process it through Proguard as part of run config. When I run the app I get the error: 07-24 12:36:35.879 21731-21779/com.ovaphone E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1 java.lang.RuntimeException: An error occured while executing doInBackground() at android.os.AsyncTask$3.done(AsyncTask.java:299) at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273) at java.util.concurrent.FutureTask.setException(FutureTask.java:124) at