The Import android.support.v7 cannot be resolved
2016-06-07 16:30
555 查看
问题:
I am new to Android. Currently, I have the
32 bit) installed - and have successfully installed the Android SDK and Eclipse. Also, I have updated everything in the Android SDK manager. Now, I am working in Android v-4.4.2
My project runs successfully, but when I import
I searched in Google and installed
my project.
File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
Project-> properties->Android. In the section library "Add" and choose "appCompat"
Screenshot
![](http://i.stack.imgur.com/P9SAa.png)
Successfully added in
still I am still getting the error.
解决方法:
转自:http://stackoverflow.com/questions/24998368/the-import-android-support-v7-cannot-be-resolved
I am new to Android. Currently, I have the
adt-bundle-windows-x86-20131030.zip(Windows
32 bit) installed - and have successfully installed the Android SDK and Eclipse. Also, I have updated everything in the Android SDK manager. Now, I am working in Android v-4.4.2
My project runs successfully, but when I import
android.support.v7.app.ActionBarActivity;and
import android.support.v7.app.ActionBar;the project won't debug. I get the error
The Import android.support.v7 cannot be resolved
I searched in Google and installed
Android Support Librarythen added
v7in
my project.
File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
Project-> properties->Android. In the section library "Add" and choose "appCompat"
Screenshot
![](http://i.stack.imgur.com/P9SAa.png)
Successfully added in
appCompatbut
still I am still getting the error.
解决方法:
Go to your project in the navigator, right click on properties. Go to the Java Build Path tab on the left. Go to the libraries tab on top. Click add external jars. Go to your ADT Bundle folder, go to sdk/extras/android/support/v7/appcompat/libs. Select the file android-support-v7-appcompat.jar Go to order and export and check the box next to your new jar. Click ok. |
相关文章推荐
- MyEclipse Web Project转Eclipse Dynamic Web Project
- Windows Clang开发环境备忘
- 傻瓜式用Eclipse连接MySQL数据库
- Eclipse引入jquery报错如何解决
- 让Flex Builder 3.0与Eclipse3.4整合起来
- Eclipse配置Javascript开发环境图文教程
- 使用zend studio for eclipse不能激活代码提示功能的解决办法
- 图解Eclipse j2ee开发环境的搭建过程
- 两种Eclipse部署动态web项目方法
- ext for eclipse插件安装方法
- 解决Fedora14下eclipse进行android开发,ibus提示没有输入窗口的方法详解
- eclipse导入jquery包后报错的解决方法
- Eclipse 格式化代码时不换行与自动换行的实现方法
- Eclipse下jQuery文件报错出现错误提示红叉
- eclipse如何忽略js文件报错(附图)
- eclipse3.2.2 + MyEclipse5.5 + Tomcat5.5.27 配置数据库连接池
- jquery库或JS文件在eclipse下报错问题解决方法
- 什么是eclipse,eclipse的意思解析
- Zend Studio for Eclipse的java.lang.NullPointerException错误的解决方法
- eclipse+myeclipse 环境配置方法