proguard

Serialization / Deserialization & Proguard

折月煮酒 提交于 2019-12-18 13:13:19
问题 With one of my app, I had a problem with one of my Serialized classes when I try to update my APK. Indeed, there were problems related to objects saved with the previous version of the apk and the new version of the apk. In the latest APK (in production on Android Market), I've forgot to configure my proguard.cfg for Serializable class (and so their static final long serialVersionUID member)... So when I try in my new APK to reload this previous stored Serializable class, I've a

Aapt_rules.txt not found when building apk in android studio

喜夏-厌秋 提交于 2019-12-18 12:23:48
问题 When running proguard to build my apk file, I get the following error: Warning:Exception while processing task java.io.FileNotFoundException: C:\Users\Josh\Documents\AdscendUnityPlugin2.1.3\AdscendUnityPlugin2.1.3\HelloUnity\Export\HelloUnity\build\intermediates\proguard-rules\debug\aapt_rules.txt (The system cannot find the path specified) My gradle file: // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN buildscript { repositories { jcenter() }

Retrofit 2 not sending data when ProGuard is enabled

萝らか妹 提交于 2019-12-18 12:12:19
问题 I try to login my users using Retrofit 2. (Basically a GET to the login URL with a basic header) It works well but once I ProGuard it, the Header Authorization is not sent anymore. (See log outputs) Sample code : User Model : public interface UserService { @GET(GET_LOGIN) Observable<User> login(@Header("Authorization") String basic); } Login Activity : public void onClick(View v) { mRetrofit.create(UserService.class) .login(Credentials.basic(email, password)) .subscribeOn(Schedulers.io())

Proguard vs Annotations

别来无恙 提交于 2019-12-18 12:09:30
问题 I have an app that uses ActiveAndroid, a database ORM library, that relies on annotations. @Table(name="test") public class DatabaseItem extends ActiveRecordBase<DatabaseItem> { public DatabaseItem(Context context) { super(context); // TODO Auto-generated constructor stub } @Column(name="counter") public int counter; } How do I get Proguard working nicely with this? Currently, I get errors about not finding a column name by ActiveAndroid when using Proguard. I guess it somehow mangles the

Exporting an Android project while using proguard on adt&sdk 20

左心房为你撑大大i 提交于 2019-12-18 08:54:21
问题 I've updated to the new adt&sdk 20, and I'm having problems with the new way Proguard is being used on Eclipse. I'm not a pro with Proguard at all, yet I've always used it and it worked quite easily. I simply edited the "project.properties" file and added there "proguard.config=proguard.cfg", and it worked. Sadly, some changes were made that I can't find any information of how to work with them. The official website that talks about Proguard (in the Android website) still talks about the

Android BadParcelableException only with signed apk

这一生的挚爱 提交于 2019-12-18 06:46:42
问题 When I run my project from debug everything works fine. However when I run it with the signed apk I generated from Android Studio (using proguard), I get the following errors when using getParcelable: java.lang.RuntimeException: Unable to start activity ComponentInfo{mypackage.android/mypackage.mobile.android.activities.searchActivity}: android.os.BadParcelableException: Parcelable protocol requires a Parcelable.Creator object called CREATOR on class mypackage.android.a.d.a Why does this

Library “libmaliinstr.so” not found

◇◆丶佛笑我妖孽 提交于 2019-12-18 04:35:14
问题 I have an Android app written in Scala. When I launch it the following error message appears in the log window: 08-31 13:11:10.781 5398-5398/my.app.app123 E/linker﹕ load_library(linker.cpp:759): library "libmaliinstr.so" not found 08-31 13:11:10.784 5398-5398/my.app.app123 E/﹕ appName=my.app.app123, acAppName=com.android.cts.openglperf 08-31 13:11:10.784 5398-5398/my.app.app123 E/﹕ 0 08-31 13:11:10.784 5398-5398/my.app.app123 E/﹕ appName=my.app.app123, acAppName=com.android.browser 08-31 13

How do you interpret a deobfuscated Android crash report?

試著忘記壹切 提交于 2019-12-18 04:20:21
问题 I downloaded a crash report from my app's Google Play admin area, ran it through retrace.sh to deobfuscate the Proguard mapping, and it produced the output below. Questions: What is Unknown Source? showHeader , showPhoto , etc. are indeed methods in my SummaryFragment class, but why are they listed in the order shown? These methods do not follow any sort of logical or execution order in my code. In which method was the NPE actually thrown? Caused by: java.lang.NullPointerException at com

Android multidex not supporting with proguard

天大地大妈咪最大 提交于 2019-12-18 04:03:39
问题 I updated all my built tools, supportlibrary and google Play services. But still I am getting the following error: Error:Execution failed for task ':app:shrinkReleaseMultiDexComponents' java.io.IOException: The output jar [app\build\intermediates\multi-dex\release\componentClasses.jar] must be specified after an input jar, or it will be empty. I am able to fix this by setting minifyEnabled to false , but that is not what I want. Does anyone know how to fix it? 回答1: Finally i able generate APK

Error Proguard Unsupported class version number

蓝咒 提交于 2019-12-18 03:51:12
问题 I get always this erroe when I try to obfuscate an App with proguard Error:ProGuard: [MyApp] java.io.IOException: Can't read [C:\Program Files\Java\jdk1.8.0\jre\lib\rt.jar] (Can't process class [com/oracle/net/Sdp$1.class] (Unsupported class version number [52.0] (maximum 51.0, Java 1.7))) I have already updated Proguard and checked the project-config file but always the same Error. I'm using the latest version of Intellij IDEA 回答1: Seems that Proguard doesn't support Java 8 actually. You