building hello-jni sample in Android NDK causes error "Default target help does not exist in this project" -
trying build hello-jni sample in android ndk. followed instructions per http://developer.android.com/sdk/ndk/overview.html#samples create build .xml,
android update project -p . -s
trying run under eclipse helios sr2. error:
description resource path location type default target not exist in project build.xml /hellojni line 2 ant buildfile problem
in build.xml,
<project name="hellojni" default="help"> any suggestions appreciated.
suppose install paths of sdk , ndk are
~/android-sdk-mac_x86/ , ~/android-ndk-r5c if don't use eclipse , use ant
export path=${path}:~/android-sdk-mac_x86/tools:~/android-ndk-r5c cd ~/android-ndk-r5c/samples/hello-jni ndk-build assume target 1 project target
android update project -t 1 -p ~/android-ndk-r5c/samples/hello-jni or
android update project -t 1 -p . debug build
ant debug emulator started or device connected
ant install
Comments
Post a Comment