It took me almost a day to get started with NDK. I posted some of the issues that are prone to problems on my own), first in 1. when cygwin is installed, it is slow to select the download URL ~~ I think the download speed of http: mirrors.kernel.org is quite fast.
2. cygwin has a required package: autoconf2.1, automake1.10, binutils, gcc-core, gcc-g ++, gcc4-core, gcc4-g ++, gdb, pcre, pcre-devel, gawk, make a total of 12 packages. You just need to download these packages.
3. environment variable configuration: Open cygwin under the cygwin root directory. bat writes the following settings to 650) this. width = 650; "title =" environmental variation .png "src =" http://www.bkjia.com/uploads/allimg/131228/095534A09-0.png "/>
Several SET statements are the content to be inserted.
<Jdk path> <ndk path "represents the paths of your JDK and NDK respectively.
As shown in my settings for this file: 650) this. width = 650; "title =" environmental variation 2.png "src =" http://www.bkjia.com/uploads/allimg/131228/0955344V3-1.png "/>
After the settings are completed, the cygwin. bat environment variables will be started in the future!
4. You do not need to operate on cygwin to convert a java file into a. h file, but simply do it on a windows terminal! I started to make mistakes in cygwin, and I will do it later!
Javah-classpath. bin/classes-jni com. example. jni. Myjni so that the. class is changed to. h. The rest of the file is not much said, you can refer to the http://my.oschina.net/sosofy/blog/78353 to write quite well!
There are several issues!
This article is from the "hhgj" blog, please be sure to keep this source http://chinatong.blog.51cto.com/6363907/1294929