【发布时间】:2014-12-31 18:33:19
【问题描述】:
我已经在 eclipse 上苦苦挣扎了大约一个月。我删除了 eclipse 软件,甚至启动了我的电脑,认为它与我的其他软件有冲突。甚至我的老师也无法帮助我解决这个问题。每次我尝试创建一个 android 项目时,我都会从一开始就遇到很多错误。Appcompact 出现错误。我发现这里有人给出建议,我做了所有这些,但对我没有任何帮助。
在控制台上:
C:\Users\mm\Desktop\workspaceandroid\appcompat_v7\res\values-v21\themes_base.xml:193: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
C:\Users\mm\Desktop\workspaceandroid\appcompat_v7\res\values-v21\themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
C:\Users\mm\Desktop\workspaceandroid\appcompat_v7\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
当我检查它显示的错误部分时:
Description Resource Path Location Type
error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. styles_base.xml /appcompat_v7/res/values-v21 line 75 Android AAPT Problem
Description Resource Path Location Type
The container 'Android Dependencies' references non existing library 'C:\Users\mm\Desktop\workspaceandroid\appcompat_v7\bin\appcompat_v7.jar' Testapp Build path Build Path Problem
Description Resource Path Location Type
The project cannot be built until build path errors are resolved Testapp Unknown Java Problem
请任何人都可以帮我解决这个问题,因为它我无法推进我的项目。我真的很感激你的帮助。
【问题讨论】:
-
你在使用
AppCompat.ActionButton吗?您应该提高目标 API 级别 -
我刚刚看到一个人说,如果他将 API 14 作为 minimun sdk,他不会遇到问题,我现在正在下载它,希望它能解决我的问题
-
我的意思是我什至没有启动一个项目,我什么都没碰,除了选择要编译的 sdk 时,我什么都默认了。
-
我做了所有这些,但仍然没有工作!
-
仍然不起作用它显示:无法执行 dex:多个 dex 文件定义 Landroid/support/annotation/AnimRes; [2014-12-31 20:31:43 - Ma] 转换为 Dalvik 格式失败:无法执行 dex:多个 dex 文件定义 Landroid/support/annotation/AnimRes;