简体   繁体   English

ActionBarSherlock库无法识别

[英]ActionBarSherlock library not recognizing

I imported android project from idea to eclipse and I have a problem: ActionBarSherlock, MediaLibrary etc. are not recognized.In project properties I see a such thing 我将Android项目从构思导入到日食,但我遇到一个问题:无法识别ActionBarSherlock,MediaLibrary等。在项目属性中,我看到了这样的东西 在此处输入图片说明

and in library tree the situation is: 在库树中,情况是:

在此处输入图片说明

root element is my main project. 根元素是我的主要项目。 How to make this actionbarsherlock and the others recognizable? 如何使该动作和其他动作变得可识别?

If your configuration has worked before, try to remove all libraries from your project, do a clean build (I don't know if this is necessary, but just to be sure). 如果您之前的配置已经奏效,请尝试从项目中删除所有库,进行干净的构建(我不知道这是否有必要,但是请确保)。 Then open your project-properties again and add your libraries to the project. 然后再次打开您的项目属性,并将您的库添加到项目中。 Now check after you clicked ok and the project has rebuild, if your libraries are now recognized. 现在,单击确定并检查是否已识别您的库后,请检查项目是否已重建。

are the projects located on different drives? 项目位于不同的驱动器上吗? i had the same issue and then noticed that if you look at the android project file, you'll notice that the location of those libraries is set as relative. 我有同样的问题,然后注意到,如果您查看android项目文件,则会注意到这些库的位置设置为相对。 in eclipse, there's a difference between the location of the actual code and the data in the workspace. 在Eclipse中,实际代码的位置与工作区中的数据之间存在差异。 you need to pay attention to that difference. 您需要注意这种差异。

i moved the sources of the ABS (action bar sherlock) and the sources of my android project to the same disk - logical or physical, and re-selected the reference to the ABS project. 我将ABS的源代码(动作栏Sherlock)和我的android项目的源代码移动到了相同的磁盘上(逻辑或物理),然后重新选择了对ABS项目的引用。 this worked and solved the problem for me. 这为我解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM