1

我正在尝试使用proguard-maven-plugin通过 android 应用程序构建,但不幸的是我遇到了一些问题。

我正在使用roboguice-sherlockactionbarsherlock库,我收到以下警告:

 [proguard] Warning: library class com.github.rtyley.android.sherlock.roboguice.activity.RoboSherlockActivity extends or implements program class com.actionbarsherlock.app.SherlockActivity
 [proguard] Warning: library class com.github.rtyley.android.sherlock.android.accounts.SherlockAccountAuthenticatorActivity extends or implements program class com.actionbarsherlock.app.SherlockActivity
 [proguard] Warning: library class com.github.rtyley.android.sherlock.roboguice.activity.RoboSherlockFragmentActivity extends or implements program class com.actionbarsherlock.app.SherlockFragmentActivity
 [proguard] Warning: library class com.github.rtyley.android.sherlock.roboguice.activity.RoboSherlockListActivity extends or implements program class com.actionbarsherlock.app.SherlockListActivity
 [proguard] Warning: library class com.github.rtyley.android.sherlock.roboguice.activity.RoboSherlockPreferenceActivity extends or implements program class com.actionbarsherlock.app.SherlockPreferenceActivity
 [proguard] Warning: library class com.github.rtyley.android.sherlock.roboguice.fragment.RoboSherlockDialogFragment extends or implements program class com.actionbarsherlock.app.SherlockDialogFragment
 [proguard] Warning: library class com.github.rtyley.android.sherlock.roboguice.fragment.RoboSherlockFragment extends or implements program class com.actionbarsherlock.app.SherlockFragment
 [proguard] Warning: library class com.github.rtyley.android.sherlock.roboguice.fragment.RoboSherlockListFragment extends or implements program class com.actionbarsherlock.app.SherlockListFragment
 [proguard] Warning: there were 8 instances of library classes depending on program classes.
 [proguard]          You must avoid such dependencies, since the program classes will
 [proguard]          be processed, while the library classes will remain unchanged.
 [proguard]          (http://proguard.sourceforge.net/manual/troubleshooting.html#dependency)
 [proguard] Error: Please correct the above warnings first.

据我了解,roboguice-sherlock 库引用了插件认为是程序代码的 actionbarsherlock 库。

有谁知道我如何克服这个问题?

4

1 回答 1

0

您是否尝试在您的 proguard 配置文件中使用 -dontwarn 指令?

-dontwarn com.github.rtyley.android.sherlock.roboguice.**
于 2014-04-30T18:14:26.227 回答