我按照教程将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 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 project.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 Manifest:
1- <uses-sdk
2- android:minSdkVersion="7"/>
答案 0 :(得分:0)
请参阅此链接,我已为此
提供了解决方案另请注意,如果您已添加
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="19" />
目标sdk应该是最新的或广告android:maxSdkVersion="19"
而不是android:targetSdkVersion="19"
Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace