Want to use ViewPager, cannot get android.support.* to be recognized?(想使用ViewPager,无法识别android.support.*?)
问题描述
编辑对不起所有的图片.我试图让你知道我在哪里.
我正在尝试获取 开始开发此应用程序但从未使用过它.我尝试重新安装软件包以消除此弹出窗口,但它不会让我因为它已经安装.
在我的代码中,尝试 import android.support.v4.view.ViewPager;
时出现错误.屏幕截图如下.当我将光标悬停在 import
行上时,它显示 无法解析导入 android.support.v4.
将 Android 支持库添加到现有的 Android 项目:
- 右键单击您的项目
- 点击
Android工具
- 点击
添加支持库
这应该负责设置 android-support
jar,以便项目可以使用它.
EDIT Sorry about all the pictures. I tried to give you the best idea of where I am at.
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.
I am coding for SDK Version 10. This is a screen shot of my SDK Manager
:
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.
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.
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.
To add the Android Support Library to an existing Android Project:
- Right click on your project
- Click
Android Tools
- Click
Add Support Library
That should take care of setting up the android-support
jar so it can be used by the project.
这篇关于想使用ViewPager,无法识别android.support.*?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:想使用ViewPager,无法识别android.support.*?
基础教程推荐
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01