我按照教程将 android 添加ActionBar
到我的 Api 7 Android 项目中。我的代码似乎很好,但我收到了这个错误:
[2013-12-20 10:18:57 - Dex Loader] Unable to executedex:java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
[2013-12-20 10:18:57 - android-actionbar-for-2.x.x] Conversion to Dalvik format failed: Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.
我的属性和清单文件:
项目project.properties:
1- android.library.reference.1=../../Documents/android-sdk-linux/extras/android/support/v7/appcompat
2- target=android-7
3- sdk.buildtools=18.1.1
SupportV7AppCompat 项目.properties
1- target=android-7
2- sdk.buildtools=18.1.1
3- android.library=true
项目清单:
1- <uses-sdk
2- android:minSdkVersion="7"
3- android:targetSdkVersion="7" />
SupportV7AppCompat 清单:
1- <uses-sdk
2- android:minSdkVersion="7"/>