**** Incremental Build of configuration Default for project 0_JNI專用_c ****
"D:\\android-ndk-r10e\\ndk-build.cmd" all
Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: D:\android-ndk-r10e\/jni/Android.mk
D:/android-ndk-r10e/build/core/add-application.mk:199: *** Android NDK: Aborting... . Stop.
=========================
意思是說APP_BUILD_SCRIPT這個環境變數設定的路徑有問題,
APP_PROJECT_PATH := $(NDK_PROJECT_PATH),
把環境環境變數NDK_PROJECT_PATH改成「./」,
然後重開Eclipse再bulid一次試試。
=========================
build/core/default-application.mk 文件,如下:
# Copyright (C) 2010 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # This is the default Application.mk that is being used for applications # that don't provide $PROJECT_PATH/jni/Application.mk # APP_PROJECT_PATH := $(NDK_PROJECT_PATH) # We expect the build script to be located here APP_BUILD_SCRIPT := $(APP_PROJECT_PATH)/jni/Android.mk
指出APP_PROJECT_PATH := $(NDK_PROJECT_PATH)
改成
=========================
註:好用的環境變數設定程式「Rapid Environment Editor」
官網載點:http://www.rapidee.com/en/download