proguard在真正的设计步骤中启用sherlockfragments

时间:2013-05-12 20:27:14

标签: android actionbarsherlock proguard android-2.2-froyo

我真的需要帮助,我的Android应用程序。使用sherlockActivity来保存3个sherlockListFragments,我的min sdk req。是2.2,当我在模拟器上运行它运行完美,但在真实设备(运行在2.2)它给力关闭。 经过几个小时的搜索,我编辑了我的proguard-project.txt和project.properties,我将我的android开发者工具包级别更新为20.1,我下载了proguard 4.9并将jar放入我的sdk / tools / lib direc中。 然后我导出到.apk文件,但它给了我相同的结果:((( 这是proguard-project.txt

-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontwarn android.support.**
-verbose

-dontoptimize
-dontpreverify


-keepattributes *Annotation* 
-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 com.google.vending.licensing.ILicensingService
-keep public class com.android.vending.licensing.ILicensingService
-keep public class * extends android.support.v4.app.Fragment
-keep public class * extends android.app.Fragment

-keep class android.support.v4.app.**{*;}
-keep interface android.support.v4.app.**{*;}

-keep class com.actionbarsherlock.**{*;}
-keep interface com.actionbarsherlock.**{*;}

-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 public class * extends android.view.View {
  void set*(***);
  *** get*();
 }

-keepclassmembers enum * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
  public static final android.os.Parcelable$Creator *;
}

-keepclassmembers class **.R$* {
  public static <fields>;
}

在我的project.properties文件中删除了proguard.config = $ {sdk.dir} /tools/proguard/proguard-android.txt:proguard-project.txt

的注释

请详细说明我需要帮助,因为我是android的新手 提前致谢

0 个答案:

没有答案