Hi All, I am trying to optimize my apk using proguard.
I keep com.j256.ormlite package at the end of proguard config file. and i add the library jars also. and also mapping.txt is not getting created. My Proguard.cfg -optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontskipnonpubliclibraryclassmembers -dontpreverify -verbose -dump class_files.txt -printseeds seeds.txt -printusage unused.txt -printmapping mapping.txt -optimizations !code/simplification/arithmetic,!field/*,!class/merging/ * -libraryjars /lib/ -dontwarn *.** -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 -keepclasseswithmembernames class * { native <methods>; } -keepclasseswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet); } -keepclasseswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int); } -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 com.j256.** -keepclassmembers class com.j256.** { *; } -keep public class * extends com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper Stack Trace : 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.answerforce.mobile/ com.answerforce.mobile.MessageList}: java.lang.IllegalStateException: Could not find OpenHelperClass because none of its generic parameters extends OrmLiteSqliteOpenHelper: null 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1647) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 1663) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.app.ActivityThread.access$1500(ActivityThread.java:117) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.os.Handler.dispatchMessage(Handler.java:99) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.os.Looper.loop(Looper.java:130) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.app.ActivityThread.main(ActivityThread.java:3683) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at java.lang.reflect.Method.invokeNative(Native Method) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at java.lang.reflect.Method.invoke(Method.java:507) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:839) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at dalvik.system.NativeStart.main(Native Method) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): Caused by: java.lang.IllegalStateException: Could not find OpenHelperClass because none of its generic parameters extends OrmLiteSqliteOpenHelper: null 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at com.j256.ormlite.android.apptools.OpenHelperManager.lookupHelperClass(Unknown Source) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at com.j256.ormlite.android.apptools.OpenHelperManager.getHelper(Unknown Source) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at com.j256.ormlite.android.apptools.OrmLiteBaseActivity.getHelperInternal(Unknown Source) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at com.j256.ormlite.android.apptools.OrmLiteBaseActivity.onCreate(Unknown Source) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at com.answerforce.mobile.MessageList.onCreate(Unknown Source) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1047) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 1611) 11-24 16:50:22.605: ERROR/AndroidRuntime(19401): ... 11 more I struck with this almost a day. please help me out Thanks. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en