This template depends on the Android Support library

本文解决了在更新SDK和ADT后新建Android项目时遇到的支持库缺失错误。通过检查并调整SDK目录下的文件结构,成功地修复了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

刚才更新SDK, ADT,可是新建项目的时候却出现问题了,操作一路默认,出现了下面的提示:
This template depends on the Android Support library, which is either not installed, or the
template depends on a more recent version than the one you hava installed.
http://developer.android.com/tools/extras/support-library.html

Required version: 8
Installed version: Not installed

You can install or upgrade it by clicking the Install button below, or alternatively, you can
install it outside of Eclipse with the SDK Manager, the click on "Check Again" to proceed.

两个按钮:Install/Upgrade Check Again

按照提示安装升级了一下,再次Check Again, 还是这个错误提示,所以看看SDK的支持类下载没有,结果发现<sdk>/ extras/android/文件夹之下,原来的support变成compatibility了,于是新建了一个support文件夹,将下载过来的compatibility里面的东东全部copy到support中,重启。就没有那个BUG了。
我的是下载完在成android-sdk-windows/android-compatibility文件夹了 把里面的东西拷贝到extras/android/support下就ok了 如果没有support文件夹就创建一个

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值