0

I am developing an app that uses the ActionBarSherlock and SherlockFragments in only some of the activities. When testing the app on the Android emulator through Eclipse, the app works perfectly. When running the signed and exported app on an actual phone though, only the activities that do NOT use Sherlock work. Whenever I launch an activity that uses Sherlock, the app force closes. I tested this on Android Gingerbread and ICS devices. The app's minimum SDK level is 7 (2.2) and the target SDK level is 15 (4.0.3). Any explanations or solutions?

4

1 に答える 1

0

私はついにそれを理解しました。Proguard を使用している間は、Proguard 構成ファイルに次の行を追加して、ActionBarSherlock ライブラリの機能を確保する必要があります。

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

-keepattributes *Annotation*
于 2012-10-18T03:45:41.563 に答える