ADT20与SDK兼容问题

来源:互联网 发布:javascript 按位取反 编辑:程序博客网 时间:2024/06/05 21:00

ADT20与SDK兼容问题

===============================

问题一:更新ADT20后,创建工程时无法点击Finish。

问题二:刚才更新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, 还是这个错误提示。

================================

解决办法一:

1.进入安装目录“android-sdk-windows”下,打开“SDK Manager.exe”;(不要在eclipse里打开,这算是一个BUG吧...)

2.找到Extras,选中Android Support Library,Delete package卸载掉当前的Android Support Library;

3.在Eclipse中创建一个新的工程,在最后一步的时候重新安装Android Support Library即可。


解决办法二:

1.关闭 eclipse ,结束 adb.exe 进程
2.进入安装目录“android-sdk-windows”,打开\extras\android,没有support文件夹但是有一个compatibility文件夹,新建support文件夹,将compatibility文件夹里面的文件复制到“support”文件夹;
ps:compatibility文件夹可能不是存在,可以在安装目录看到“android-compatibility”文件夹,将该文件夹里面的文件复制到support里面,效果一样
3.重新启动eclipse,新建项目OK

原创粉丝点击