ActionbarSherlock不工作工作、ActionbarSherlock

2023-09-08 00:06:56 作者:20.香蕉你个麻辣

我有问题越来越开始与ActionBarSherlock。我下载了4.1.0版本,并遵循以下教程安装。

I am having problems getting start with the ActionBarSherlock. I downloaded the 4.1.0 version and followed the following tutorial for installing it.

http://www.youtube.com/watch?v=4GJ6yY1lNNY

我现在面临的问题是,每当我提出一个新的项目,ActionbarSherlock的库项目添加到它。我碰到下面的错误。

The Problem I am facing is whenever I make a new project and add the library project of ActionbarSherlock to it. I get the following error.

Description Resource    Path    Location    Type
The container 'Android Dependencies' references non existing library 'C:\Work\JakeWharton-ActionBarSherlock-4.1.0-0-g9598f2b\JakeWharton-ActionBarSherlock-88fc341\library\bin\com_actionbarsherlock.jar'   myapp       Build path  Build Path Problem

请人帮助我一下吧。

推荐答案

我刚刚有同样的问题:一个.jar文件要求,但不存在的。此外,它是好的,该文件不存在,因为我们想用Android的库项目,而不是包含JAR库。

I just had the same problem: A .jar file is requested, but non-existing. Also, it is okay that the file doesn't exist, because we want to use a Android-Library Project and not an included jar-library.

由Aqif哈米德描述的步骤是完全正常的,如果缺少导入(.jar或库项目)将是问题的根源。但我想通了,为了这个错误的原因是,你必须设置两个项目(AndroidBar福尔摩斯和你自己的Andr​​oid项目)为的Java符合水平1.6

The steps described by Aqif Hamid are perfectly fine, if the missing import (.jar or library project) would be the root of the problem. But i figured out that the reason for this error is that you have to set both projects (AndroidBar Sherlock and your own Android project) to Java Compliance Level 1.6

要这么做进入项目属性=> Java编译器和级别设置为1.6当然,你有你的计算机上安装JDK 1.6 ...

To do so go into Project Properties => Java Compiler and set the level to 1.6 Of course, you have to install JDK 1.6 on your computer...

希望这有助于你呢!

 
精彩推荐