android-support-v7-appcompat库项目将无法正常工作 [英] android-support-v7-appcompat library project won't work

查看:302
本文介绍了android-support-v7-appcompat库项目将无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将支持库v7添加到我的干净的Android项目作为支持库(带有资源)。我遵循了以下每条指令:


I am trying to add Support Library v7 to my clean android project as support library (with resources). I followed every instruction here: http://developer.android.com/tools/support-library/setup.html#download and android.support.v7.* package is not visible in my main project.

Here is library reference in main project:

Support library project tree:

Support library project build path:

And finally, my main project tree

I don't see any errors in Problems tab, app compiles and runs normally but i cannot import android.support.v7 package which apparently isn't in build path in main project. I went through instruction twice in clean projects/workspace. I cleaned project, restarted Eclipse and nothing... All resources from library project are unreachable too.

Thanks in advance :)

解决方案

Copy the library project to the folder where your android project is.

Select File > Import.

Select Existing Android Code Into Workspace and click Next.

Browse and import the same to eclipse

Once the library project is imported you can refer the same in your android project.

This is similar to setting up google play services in eclipse described here. Check the 4th step

http://developer.android.com/google/play-services/setup.html

这篇关于android-support-v7-appcompat库项目将无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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