尝试使用android V7 appcompat库时奇怪的错误 [英] Strange error when trying to use the android v7 appcompat library

查看:155
本文介绍了尝试使用android V7 appcompat库时奇怪的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚列入我project.I android的V7-appcompat库已经成功地将罐子到构建路径,我现在使用的Theme.AppCompat theme.Now,我得到这个奇怪的错误:

I have just included the android v7-appcompat library in my project.I have successfully added the jars to the build path and am now using the Theme.AppCompat theme.Now,I get this strange error:

[敏捷装载机]无法执行DEX:多DEX文件定义Landroid /支持/ V7 / APP /动作条$回调; [2013年10月9日11点11分50秒 - DelTest2]转换为的Dalvik格式失败:无法执行DEX:多DEX文件定义Landroid /支持/ V7 / APP /动作条$回调;

[Dex Loader] Unable to execute dex: Multiple dex files define Landroid/support/v7/app/ActionBar$Callback; [2013-10-09 11:11:50 - DelTest2] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Landroid/support/v7/app/ActionBar$Callback;

修改

我的项目现在包含三个文件夹,每一个都包含了Android V7 appcompat:

My project now contains three folders,each of which contains the android v7 appcompat:

+Android Private Libraries
+Android Dependencies
+Referenced Libraries

这其中的一个库,我必须为了让我的项目工作删除?

Which one of these libraries must I delete in order to make my project work?

推荐答案

首先,我删除从构建路径中所有的罐子,然后接着就从Android V7 appcompat库添加的罐子。这创造了一个参考库文件夹在我的项目中,这两个库被提及。

First, I removed all the jars from the build path and then went on to add the jars from the android v7 appcompat library. This created a Reference Libraries folder in my project where these two libraries were referred to.

另外,我发现,自带的appcompat库的主题是黑暗的。相反,我现在用的是AppCompat.Light主题。

Also, I found that the theme that comes with the appcompat library is dark. Instead, I am using the AppCompat.Light theme.

这篇关于尝试使用android V7 appcompat库时奇怪的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆