The Import android.support.v7 cannot be resolved
来源:互联网 发布:js 参数是必选项 编辑:程序博客网 时间:2024/05/13 21:22
问题:
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 Library
then added v7
in my project.
- File->Import (android-sdk\extras\android\support\v7). Choose "appcompat"
- Project-> properties->Android. In the section library "Add" and choose "appCompat"
Screenshot
Successfully added in appCompat
but 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.
转自:http://stackoverflow.com/questions/24998368/the-import-android-support-v7-cannot-be-resolved
- The import android.support.v7 cannot be resolved 完美解决方案
- 关于The import android.support.v7.app cannot be resolved
- The import android.support.v7.app.ActionBarDrawerToggle cannot be resolved
- The import android.support.v7.app cannot be resolved
- The Import android.support.v7 cannot be resolved
- 关于The import android.support.v7.app cannot be resolved
- the import Android.support.v7 cannot be resolved " or "ActionBarActivity: cannot be resolved to a t
- The import android.support cannot be resolved
- Eclipse新建Android项目后,出现“The import android.support.v7.app cannot be resolved”
- Eclipse新建Android项目后,出现“The import android.support.v7.app cannot be resolved”
- 新建android项目时总是出错“The import android.support.v7 cannot be resolved”
- The import android.support.v7.app cannot be resolved(安卓Eclipse问题 )
- eclipse 新建项目报错:The import android.support.v7.app cannot be resolved
- The import android.support.v7.app cannot be resolved的解决方法
- 安卓集成eclipse 中的 The import android.support.v7.app cannot be resolved 问题解决方法
- The import android.support cannot be resolved的解决方案
- The import android.support.v4 cannot be resolved 问题解决方法
- The import android.support cannot be resolved解决方法
- 第一篇博客
- 优化算法——梯度下降法
- Method 'NewStringUTF' could not be resolved
- IceWarp 11.4 新版本隆重发布 企业级邮件、协同工作系统、TeamChat 构建企业通信内环境
- 标准的JDBC数据库连接代码(面试)
- The Import android.support.v7 cannot be resolved
- 【Kali】利用Ettercap进行ARP欺骗和中间人攻击
- Regularization(规则化)和model selection以及Python实现
- ubuntu中apache页面权限控制
- [GitHub]第二讲:GitHub客户端
- hibernate 1+n问题
- 重新编译Linux内核
- HDU 2089 不要62
- <机器学习练习>感知机到支持向量机流程