将android项目导入我的工作区时出错 [英] error when importing an android project into my workspace

查看:78
本文介绍了将android项目导入我的工作区时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的驱动器中有一个项目工作正常。但在将其导入我的工作区后,它在styles.xml中显示以下错误找不到与给定名称相匹配的资源Theme.AppCompact.Light我在此项目中导入了android-supported-v7-appcompact.jar。如果我删除这个jar文件,我会在所有已创建的类中出错。



需要帮助才能找到解决方案。

I have a project in my drive that works fine. but after importing it into my workspace it shows the following error in styles.xml "no resources found that matches the given name Theme.AppCompact.Light" i have imported android-supported-v7-appcompact.jar in this project. if i remove this jar file i get errors in all the classes that has been created.

Need help to figure out the solution.

推荐答案





我相信您正在尝试导入AppCompat库项目。

一个事实关于这个项目:除了libs文件夹中的单个.jar文件之外还有额外的资源。



所以你做的是:



1.打开 Eclipse ,在项目窗格上,右键单击,您将看到导入。 。 。选项。

2.导入 AppCompat库项目

3.右键单击AppCompat项目并转到属性。

4.单击 Android 部分,确保将AppCompat Library Project选中为 Is Library

5.点击申请确定 - 显而易见。



- ------



6.右键单击您当前正在处理的项目,然后转到属性

7.点击 Android 部分。

8.在右下角,您会看到标有以下部分的部分:图书馆

9.单击添加按钮,然后在出现的对话窗口中,选择您的AppCompat Library项目并单击确定

10.点击申请确定



--- -



11.享受。





---- -------------



如果以上你的问题lem,然后确保您的 Android SDK - Android支持库已完全更新。










Hi,

I believe you're trying to import the AppCompat Library Project.
One fact about this project: It has extra resources other than the single .jar file in its libs folder.

So what you do is this:

1. Open Eclipse and on the Projects Pane, right click and you'll see the Import. . . option.
2. Import the AppCompat Library Project.
3. Right click the AppCompat project and go to Properties.
4. Click on the Android Section and make sure the AppCompat Library Project is checked as "Is Library".
5. Hit Apply and OK - as obvious.

-------

6. Right Click on the Project you're currently working on and go to Properties.
7. Click on the Android Section.
8. At the bottom-right corner, you'll see a section labelled: Library.
9. Click on the Add button, then in the Dialog Window that appears, select your AppCompat Library Project and click on OK
10. Click on Apply and OK.

-----

11. Enjoy.


-----------------

If the above doesn't your problem, then make sure your Android SDK - Android Support Library is fully updated.





Quote:

随时打开进行更正。


这篇关于将android项目导入我的工作区时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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