ActionBarSherlock を動作させることができません。大量のエラーが発生し、どうすればよいかわかりません...
そこで、アクション バーに代わるもの、または (ユーザーにとって) ビューを変更するクールで簡単な方法があるかどうかを尋ねます...
ありがとう。
これが(1つの)ABSエラーです:
...
[2012-07-06 12:01:45 - ANDA] Jar mismatch! Fix your dependencies
ActionBarSherlock を動作させることができません。大量のエラーが発生し、どうすればよいかわかりません...
そこで、アクション バーに代わるもの、または (ユーザーにとって) ビューを変更するクールで簡単な方法があるかどうかを尋ねます...
ありがとう。
これが(1つの)ABSエラーです:
...
[2012-07-06 12:01:45 - ANDA] Jar mismatch! Fix your dependencies
依存関係の問題が発生している理由は、ActionBar が Android 3.0 以降で導入されたにもかかわらず、Android 2.2 向けに開発しているためです。そのため、Android 2.2 アプリケーションに ActionBar を含めることはできません。
しかし、実際に ActionBar を使用する必要がある場合は、このすばらしい API を試してください: http://actionbarsherlock.com/
SherlockActionBar の AndroidManifest.xml のサンプル:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.test.sherlock"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="13" />
<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/Theme.Sherlock" >
<activity android:name=".SherlockSimpleActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
それ以外の場合は、タブを使用してビューを切り替えますか? ビューを動的に変更するには、TabHost を使用することをお勧めします。ドキュメントをご覧ください: http://developer.android.com/reference/android/widget/TabHost.html
段階的なアプローチが必要な場合は、このチュートリアルをチェックしてください: http://www.mkyong.com/android/android-tablayout-example/
android-support-v4.jar
プロジェクトの が ABS の と衝突している可能性があります。ディレクトリから削除android-support-v4.jar
してみてください。/libs/