·JDK (Java SE Development Kit)
要下载Oracle公司的JDK可以百度“JDK”进入Oracle公司的JDK下载页面(当前下载页面地址为 http://www.oracle.com/technetwork/java/javase/downloads/index.html ),选择自己电脑系统的对应版本即可。
·Eclipse (or Android Studio)
·Android SDK (Android Software Development Kit, 即Android软件开发工具包)
·ADT (Android Development Tool)
Eclipse->help->Install New Software ...
输入https://dl-ssl.google.com/android/eclipse/ 然后点击确定,如果慢的话可以换成http://dl-ssl.google.com/android/eclipse/ 然后点确定
下载包:http://pan.baidu.com/s/1hqtivf2
·CDT (C/C++ Development Tool)
Eclipse->help->Install New Software ...
输入 http://download.eclipse.org/tools/cdt/releases/9.4
下载包:http://mirrors.neusoft.edu.cn/eclipse/tools/cdt/releases/8.8.1/cdt-8.8.1.zip
·NDK (Native Development Kit)
android-ndk-r10e-windows-x86_64: https://dl.google.com/android/ndk/android-ndk-r10e-windows-x86_64.exe
android-ndk-r11c: http://pan.baidu.com/s/1mhQfKXM
解压完 NDK后,在Eclipse中配置路径,菜单 windows -> Preferences -> Android -> NDK :D:\MyTools\android-ndk-r11c\build
为何要用到NDK?
check update 找不到 WB_v1.6.1_UpdateSite_for_Eclipse4.3 类似问题可以直接google 文件名进行下载
解压WB_v1.1.0_UpdateSite_for_Eclipse3.7。放在C盘下。复制所在路径 C:\WB_v1.1.0_UpdateSite_for_Eclipse3.7;找到MyEclipse或者JAVA下的dropins,在dropins文件下新建link文件,编辑path=C:/WB_v1.1.0_UpdateSite_for_Eclipse3.7.注意是反斜杠。保存重启myEclipse.
遇到 devices.xml 报错可参考此贴 :http://www.mamicode.com/info-detail-862770.html
No resource found that matches the given name 'Theme.AppCompat.Light' 问题解决
http://www.jianshu.com/p/6ad7864e005e 深入讲解了原理。这里可以直接不考虑4.0以下兼容,创建时最低版本选4.0 ,风格选择Holo 就没这吊问题了。
http://blog.163.com/wslngcjsdxdr@126/blog/static/16219623020146971323118/
http://www.jianshu.com/p/6ad7864e005e
android-ndk-r11c/build//../build/gmsl/__gmsl:512: *** non-numeric second argument to `wordlist' function: 'x'. Stop.
This is a known problem due to the r8d NDK
not picking up properly the android:minSdkVersion
property from the AndroidManifest.xml
.
To work around that issue change the line 512 of the file /android-ndk-r8d/build/gmsl/__gmsl to:
int_encode = $(__gmsl_tr1)$(wordlist 1,$(words $1),$(__gmsl_input_int))
【问题】
编译NDK时有以下报错
make: * No rule to make target '/native.c', needed by '/Users/ivan/Documents/workspace/TestNDK/obj/local/armeabi/objs/myNDK/native.o'. Stop.
【解决】
注意 Android.mk 开头位置
LOCAL_PATH := $(call my-dir)
后面是否有空格。通常是路径问题
如果非此问题,可以CMD到当前目录,运行ndk-build 看反馈具体是什么问题
【问题】
日了狗的 Conversion to Dalvik format failed with error 1 问题
新建一个项目都有这问题,网上说的什么Clean 和 修改 Library肯定都不好用
【解决】
打开 C:\Users\<username>\.android 删除目录下的 Cache文件夹和 ddms.cfg 文件,重启Eclipse即可!
【问题】
日了狗的 _scd.mk Stop问题
C/C++ problem. make: * No rule to make target `MyProjectName_scd.mk'. Stop. [Discovery Options] page in project properties.
这个问题是cygwin重装和32位和64位交差安装时引起的。
【解决】
The following algorithm is used as of CDT 7.0 (Helios). Note that older releases may use different algorithm. That is org.eclipse.cdt.managedbuilder.gnu.cygwin.CygwinPathResolver if you want more details.
- 1. Look in PATH values. Look for "cygwin1.dll" (normally under "bin/" folder).
- 2. Try to find the root dir in registry: readValueFromRegistry("SOFTWARE\\Cygwin\\setup", "rootdir").
- 3. Try to find the root dir in registry for 64 bit: readValueFromRegistry("SOFTWARE\\Wow6432Node\\Cygwin\\setup", "rootdir").
- 4. Try to find the root dir in mounts from registry: readValueFromRegistry("SOFTWARE\\Cygnus Solutions\\Cygwin\\mounts v2\\/", "native");
- 5. Try the default Cygwin install dir "C:\\cygwin".
Don't forget to restart eclipse if you changed PATH environment variable.