想用ViewPager,不能得到android.support *被认可? [英] Want to use ViewPager, cannot get android.support.* to be recognized?

查看:159
本文介绍了想用ViewPager,不能得到android.support *被认可?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

修改对不起所有的图片。我试着给你在哪里,我在最好的主意。

EDIT Sorry about all the pictures. I tried to give you the best idea of where I am at.

我想获得 ViewPager 工作在我的应用程序,但它不会承认的 支持库 我下载了SDK管理器。

I am trying to get ViewPager working on my application, but it will not recognize the Support Library that I downloaded in the SDK manager.

我编码SDK版本10。这是一个屏幕截图我的 SDK管理器的:

I am coding for SDK Version 10. This is a screen shot of my SDK Manager:

在安装后的 Android的支持库和最近工具,我去了帮助>>检查更新。运行此之后,我收到如下所示的两个弹出窗口。

After installing the Android Support Library and the most recent Tools, I went to Help >> Check for Updates. After running this I receive the two pop ups shown below.

发生问题弹出说,它无法找到在该网站的资源库。我安装了 塞阔亚Natic​​e code支持 当我刚开始开发这个应用程序,但从来没有使用过。我试图重新安装包来摆脱这种弹出窗口,但它不会让我,因为它已经安装了。

The Problem Occured pop up says that it can't find a repository at that site. I installed the Sequoyah Natice Code Support when I first started developing this application but have never used it. I tried to re-install the package to get rid of this pop-up but it will not let me as it is already installed.

在我的code试图进口android.support.v4.view.ViewPager时,我得到一个错误; 。该屏幕截图如下。当我悬停我的光标在进口行,它说进口android.support.v4不能得到解决。

In my code I get an error when trying to import android.support.v4.view.ViewPager;. The screen shot is below. When I hover my cursor over the import line, it says The import android.support.v4 cannot be resolved.

推荐答案

要在Android的支持库添加到现有的Andr​​oid项目:

To add the Android Support Library to an existing Android Project:

  • 右键点击您的项目
  • 点击 Android的工具
  • 点击添加支持库
  • Right click on your project
  • Click Android Tools
  • Click Add Support Library

这应该照顾设立 Android的支持 JAR因此它可以使用的项目。

That should take care of setting up the android-support jar so it can be used by the project.

这篇关于想用ViewPager,不能得到android.support *被认可?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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