Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

eclipse: after signing with proguard, apk crashes

You can add this option to make the stacktraces a little more obvious but still obfuscated:

-keepattributes SourceFile,LineNumberTable,Signature

Alternatively you should de-obfuscate your stacktrace using the mapping.txt file that is generated when you create your proguarded build. This file is the "key" to changing your code back to normal. It is different every time you build a new apk so ensure you keep the correct file with the correct version.

Use retrace to de-obfuscate your stacktrace. (Get the crash stacktrace from your LogCat and save it to a file like obfuscated_stacktrace.txt.) Then run this command:

 retrace.bat -verbose mapping.txt

More details here Proguard Decoding

Categories : Android

Related to : eclipse: after signing with proguard, apk crashes
Proguard Error Code 1: Proguard.ParseException
I faced the same error and finally sorted it out by keeping the below line in the proguard-project.txt file -libraryjars /libs/Your_Jar_File.jar Just exclude jar file which ever you feel it is causing you the expection. I am facing this issue due to one external jar file. Where proguard is obfuscating it. As in my case airpush jar file is creating the problem. Just exclude it.

Categories : Android
Retrofit @QueryMap with proguard
For retrofit you need to keep annotations. For that add this rule: -keepattributes *Annotation* Then you need your rule to keep Retrofit classes: -keep class retrofit.** { *; } And you probably need to keep your REST API and its API methods: -keepclasseswithmembers class * { @retrofit.http.* <methods>; }

Categories : Android
Proguard and Netty 5 on Android
I have fixed this issue with some carefully* applied Proguard rules after reading through parts of the rather huge Netty sources: -keepattributes Signature,InnerClasses -keepclasseswithmembers class io.netty.** { *; } -keepnames class io.netty.** { *; } My original exception was caused by the type variables being removed from the bytecode, which Netty uses via reflection. Signature in -

Categories : Android
Keep .so files from being trimmed when use Proguard in Android
Proguard shouldn't remove .so files, I guess your issue comes from something else. When you use "add native support" from eclipse, eclipse creates an empty ndk library project (a jni folder with empty sources and a sample Makefile). So when you build your app, eclipse empties libs/*/ folders, then build and install the newly created library here. If you don't use the NDK yourself (not compiling

Categories : Android
c++ code for signing data with rsa evp
the problem was in the sign length it was pointer just make it as below and pass it to method as a reference here is the new code BIO *sgerr = NULL; const char szPath[MAX_FILE_NAME_SIZE] = "sgerr.pem"; sgerr = BIO_new_file(szPath,"wb"); cout<<"i'm in sign digest"<<endl; //create private key EVP_PKEY *priv_key = NULL; priv_key = EVP_PKEY_new(); if (1 == EVP_PKEY_s

Categories : C++
Recently Add
I'm trying to create an onListItemClick even for a customized adapter. The array of items is found in res/values folder
No navigation/status bar touch listener exists, why?
z-index in Relative layout
java.lang.SecurityException: Permission Denial: getIntentSender() when using UiAutomation in a test
mvvmcross videoview URL binding
Android Emulator Unfortunately dev tools has stopped
Square Dagger error: class is exclusively members injected / cannot be scoped required
Installing a widget from an APP
How to stop onDraw() methods causing jerky scrolling of a ListView
How to find my Google Play Services Android BASE64_PUBLIC_KEY
Set style programatically does not work
How to get contacts from phonebook and sim but skype, facebook etc. in android
Where to put JUnit test in Android project
My Android Studio project keeps running my old project/application
how to avoid OUtOfMemory problems with create Bitmap
What tools use and how do continuous integration and test in Android with eclipse?
Converting drawable resource to Bitmap Android
Fragment Transaction show() does not show fragment on second time
Espresso - How to match ActionBar visibility?
Viewport setting ignored in Phonegap Android app, but only on certain phones?
how to open an activity with url scheme android
Android AsyncTask and Thread different behavior
How can one ellicit a Toast from a Service to a Fragment
GCMIntentService onRegistered not called
LinearLayout cropping but not expanding in Scrollview
Get a file from the application directory
How to set layout params using view's on touch listener?
How to disable Google Fit and revoke permissions from the app itself
Android Wear - receiving message from Wear without WearableListenerService?
How can I start new activity from another package?
© Copyright 2017 Publishing Limited. All rights reserved.