1. [2015-03-21 07:34:51 - ddms] 'E:\Toolkits\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe,start-server' failed -- run manually if necessary
命令行 切换到目录E:\Toolkits\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\
执行:adb kill-server 和 adb start-server
2.'Running Android Lint' has encountered a problem.Failed java.lang.NullPointerException
第一步:打开项目的AndroidManifest.xml文件,android:targetSdkVersion="21"改为“20”或以下的值。由于Android L为预览版本,版本号还是使用“20”的原因导致了此问题。
第二步:在建立的工程根目录上鼠标右键---Android Tools -> Fix Project Properties
第三步:clean清空后重新编译
第四步:关闭eclipse,再打开,问题解决
3.运行android应用程序时候,提示“No compaiatible targets were found.Do you wish to add a new Android Virtual Device?"
原因是没有合适的虚拟设备,需要手动添加,这个可以使用命令行来进行
E:\Toolkits\adt-bundle-windows-x86_64-20140702\sdk\tools>android list targets
Available Android targets:
----------
id: 1 or "android-17"
Name: Android 4.2.2
Type: Platform
API level: 17
Revision: 2
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
Tag/ABIs : no ABIs.
----------
id: 2 or "android-20"
Name: Android 4.4W
Type: Platform
API level: 20
Revision: 1
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWea
rRound, AndroidWearSquare, AndroidWearRound, AndroidWearSquare
Tag/ABIs : android-wear/armeabi-v7a, android-wear/x86
E:\Toolkits\adt-bundle-windows-x86_64-20140702\sdk\tools>android create avd -n honor3 -t "android-20" --abi "android-wea
r/armeabi-v7a"
Android 4.4W is a basic Android platform.
Do you wish to create a custom hardware profile [no]no
Created AVD 'honor3' based on Android 4.4W, Android wear ARM (armeabi-v7a) processor,
with the following hardware config:
hw.lcd.density=240
hw.ramSize=512
vm.heapSize=48
4.Failed to fetch URL http://dl-ssl.google.com/android/repository/extras/intel/addon.xml, reason: HttpHostConnect Connection to http://201.86.233.217:80 refused
重新设置一个代理ip,参见http://blog.csdn.net/wolfofsiberian/article/details/44515715
参考资料: