Note that there are some explanatory texts on larger screens.

plurals
  1. POApplication is not working when enabled proguard in android
    text
    copied!<p>My project is working perfectly on android device and emulator.</p> <p>But, If i export and taken the .apk file after enabled with proguard application getting struck, I cant install this .apk file with proguard.</p> <p>My assumption, Service is not called while installing the .apk file and i did't get any error on my log.</p> <p>Please kindly share your ideas.</p> <p><strong>Here is my proguard file.</strong></p> <pre><code>-optimizationpasses 5 -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers -dontpreverify -verbose -dontoptimize # -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -libraryjars /usr/local/android-sdk/add-ons/google_apis-7_r01/libs/maps.jar -keep public class * extends android.app.Activity -keep public class * extends android.app.Application -keep public class * extends android.app.Service -keep public class * extends android.content.BroadcastReceiver -keep public class * extends android.content.ContentProvider -keep public class * extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService -keepattributes JavascriptInterface -keepclasseswithmembers class * { public &lt;init&gt;(android.content.Context, android.util.AttributeSet); } -keepclasseswithmembers class * { public &lt;init&gt;(android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); } -keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); } -keep class * implements android.os.Parcelable { public static final android.os.Parcelable$Creator *; } -keep class mypackage.MyCallbackClass { void myCallbackMethod(java.lang.String); } -dontwarn android.support.** -dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry </code></pre> <p>and my ** project.properties file**</p> <pre><code># This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must be checked in Version Control Systems. # # To customize properties used by the Ant build system edit # "ant.properties", and override values to adapt the script to your # project structure. # # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): proguard.config=${sdk.dir}\\tools\\proguard\\proguard-android.txt:proguard-project.txt #proguard.config=proguard.cfg # Project target. target=Google Inc.:Google APIs:11 android.library.reference.1=../Library1 android.library.reference.2=../Library2 </code></pre> <p>Please kindly share your ideas. </p> <p>Thank You.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload