![]() Now using Eclipse, you can build the Java android project, and it will include the JNI part automatically. The C files have been successfully built. java files) in:įor these paths always use forward slashes.ĥ.3) Open Cygwin and browse to the NDK folder, using cd :ĥ.4) Type. h and Android.mk files) in:ī) The JAVA part (assets,bin,gen,jni,libs,obj,res,src with the. The project must be organized as follows:Ī) The JNI part (the. The path in the config, d:/work_code/android/BlueInput, is something I’m currently working on. Set NDK_PROJECT_PATH=/cygdrive/d/work_code/android/BlueInput Set ANDROID_NDK_ROOT=/cygdrive/d/work_code/android-ndk-r4b Set PATH=D:/work_code/android/android-sdk-windows/tools D:/work_code/android/android-ndk-r4b Set CLASSPATH=d:/work_code/android/BlueInput/obj Set DEV_ROOT=d:/work_code/android/BlueInput Go to the Cygwin folder and open Cygwin.bat. My choice is: D:\work_code\android\android-ndk-r4b\ This step takes a few minutes.ĥ.1) Unzip the NDK zip file. The installer will download the packages from the internet, and might prompt you to accept terms, which you must do if you want to continue with the installation. Go to Settings and check the “Force …” checkbox:Ĥ.5) Go to Available Packages, select all, and press Install Selected: This opens the Android SDK and AVD Manager. It takes a few minutes to complete.Ĥ.4) Re-run the SDK Setup.exe from the Android SDK. Current file is: jdk-6u21-windows-i586.exe ( Direct link)Ĥ.3) Install the Java JDK: simply run the exe. I choose:ĭ:\work_code\android\android-sdk-windows\
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |