Make sure to do the following (from Support Library Setup):
- Right-click the library project folder and select Build Path > Configure Build Path.
- In the Order and Export tab, check the .jar files you just added to the build path, so they are available to projects that depend on this library project. For example, the appcompat project requires you to export both the android-support-v4.jar and android-support-v7-appcompat.jar files.
- Uncheck Android Dependencies.
翻譯成中文就是:
- 右鍵Build Path > Configure Build Path,Android辱挥,添加v7 library.
- Order and Export —— Add jars 犁嗅,選擇該v7包下 libs —— v7.jar.
Unable to execute dex: Multiple dex files define Landroid/support/v7/app/ActionBar$LayoutParams;