我正在尝试使用proguard-maven-plugin通过 android 应用程序构建,但不幸的是我遇到了一些问题。
我正在使用roboguice-sherlock和actionbarsherlock库,我收到以下警告:
[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 库。
有谁知道我如何克服这个问题?