Eclipse可以不ActionBarSherlock找到Theme.Sherlock [英] Eclipse can't find Theme.Sherlock in ActionBarSherlock

查看:189
本文介绍了Eclipse可以不ActionBarSherlock找到Theme.Sherlock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是直接从我提出的问题在谷歌论坛复制

我在Eclipse(靛蓝)采用ABS有问题。我使用的是ABS 4.1.0。我创建了一个项目从在Eclipse /库,设置构建目标至14日,minSdk 14,Java的合规性水平1.6,因为我一直在说。还有在ABS项目没有错误,但在我自己的项目,minSdk 7,targetSdk 14,构建目标14和ABS添加为一个库,我得到在AndroidManifest.xml这个错误:

 错误:没有资源发现,给定的名称相匹配(在主题,值为@风格/ Theme.Sherlock')

即使我进口ABS。结果
此外,R.java拒绝产生,所以我也有一堆R不能解析为一个变量在我的课。有两个相关的?

如果您需要更多信息,请告诉我。结果
帮助将AP preciated。


解决方案

好了,肯定让我觉得自己很傻。但现在我可以睡不好(如这些东西始终保持我在晚上)。

是什么造成了我的问题只是该库是不一样的驱动器作为我的工作区(D:和C:分别),所以Eclipse中无法创建两者之间的相对路径。我只是搬到图书馆到C:和它的工作

<一个href=\"http://stackoverflow.com/questions/10200751/eclipse-will-not-recognize-project-as-library-actionbarsherlock-viewpagerindica\">Thanks这个问题是把我在正确的道路上。

This is copied straight from a question I asked on Google Groups:

I'm having problems using ABS in Eclipse(Indigo). I'm using ABS 4.1.0. I created a project from /library in Eclipse, set build target to 14, minSdk to 14, Java compliance level to 1.6 as I've been told. There are no errors in the ABS project, but in my own project, minSdk 7, targetSdk 14, build target 14 and ABS added as a library, I get this error in the AndroidManifest.xml:

Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Sherlock')

even though I've imported ABS.
Also, R.java refuses to generate, so I also have a bunch of "R cannot be resolved to a variable" in my class. Are the two related?

Please tell me if you need more info.
Help would be appreciated.

解决方案

Well, that certainly made me feel stupid. But now I can sleep well(things like these always keep me up at night).

What caused my problem was simply that the library wasn't on the same drive as my workspace(D: and C:, respectively), so Eclipse couldn't create a relative path between the two. I simply moved the library to C: and it worked.

Thanks to this question that put me on the right path.

这篇关于Eclipse可以不ActionBarSherlock找到Theme.Sherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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