card.io-Android-source icon indicating copy to clipboard operation
card.io-Android-source copied to clipboard

Android NDK: Your APP_BUILD_SCRIPT points to an unknown file

Open TahaNaqvi opened this issue 6 years ago • 4 comments

General information

  • Windows 10
  • Android Studio 3.0.1
  • sdk 27
  • ndk 11 (also tried ndk r10e)

Issue description

Hi, I am trying to modify your library as per my requirement I need the front facing camera to scan card information. I have spent approximately 32 hours to just run your source code on my android studio from here: https://github.com/card-io/card.io-Android-source

I was having the different type of issues while gradle building anyways, from the given steps:

clone this repo -> Done

$ cd card.io-Android-source -> Done

init its dmz submodule: git submodule sync; git submodule update --init --recursive -> Done

$ cp local.properties.example local.properties **(Here i got an error "The system cannot find the file specified." but i have added the path of sdk and ndk in my local.properties file here is the way i have done it:

ndk.dir=C:\Users\Lenovo\AppData\Local\Android\Sdk\ndk-bundle sdk.dir=C:\Users\Lenovo\AppData\Local\Android\Sdk)**

Edit local.properties with your env (Assuming you've defined $ANDROID_NDK correctly, run $ echo "$ANDROID_NDK" "$ANDROID_SDK" -> I am unable to understand, are you trying to say that i have to set environment variables for ndk and sdk then i should check these variables containing the correct path?

$ ./gradlew clean assembleDebug --> Then i ran this command on my android studio terminal and i am getting this response :

External Native Build Issues Build command failed. Error while executing process C:\Users\Lenovo\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=F:\Git Projects\My Projects\card.io-Android-source\card.io\src\main\jni\Android.mk NDK_APPLICATION_MK=F:\Git Projects\My Projects\card.io-Android-source\card.io\src\main\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=F:/Git Projects/My Projects/card.io-Android-source/card.io/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=F:\Git Projects\My Projects\card.io-Android-source\card.io\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} process_begin: CreateProcess(NULL, "", ...) failed. Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: F:\Git Projects\My Projects\card.io-AC:/Users/nLenovo/dArppData/Locaol/Android/Sdk/ndk-bundle/build/core/add-application.mk:199: *** Android NDK: Aborting... . Stop. id-source\card.io\src\main\jni\Android.mk
Build command failed. Error while executing process C:\Users\Lenovo\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=F:\Git Projects\My Projects\card.io-Android-source\card.io\src\main\jni\Android.mk NDK_APPLICATION_MK=F:\Git Projects\My Projects\card.io-Android-source\card.io\src\main\jni\Application.mk APP_ABI=armeabi NDK_ALL_ABIS=armeabi NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=F:/Git Projects/My Projects/card.io-Android-source/card.io/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=F:\Git Projects\My Projects\card.io-Android-source\card.io\build\intermediates\ndkBuild\release\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} process_begin: CreateProcess(NULL, "", ...) failed. AndroC:/Users/Lenovo/AppData/Local/Android/Sdk/ndk-bundle/build/core/add-applicid NDK: Your APP_BUILD_SCRIPT poation.mk:199: *** Android NDK: Aborting... .ints to an unknown file: F:\Git Projects\My Projects\card.io-Android-source\card.io\src\main\j ni\Android.mk
Stop.

And

C:\Users\Lenovo\AppData\Local\Android\Sdk\ndk-bundle\build\core\add-application.mk Error:(48, 0) Projects\card.io-Android-source\card.io\src\main\jni\Application.mk: No such file or directory

Please help out me in this issue Thanks

TahaNaqvi avatar May 04 '18 07:05 TahaNaqvi

You still have the same issue. let me know, i have solution for this.

muttineni2020 avatar Aug 08 '18 20:08 muttineni2020

@muttineni2020 I have the same problem too, would you share the solution?

ericmguimaraes avatar Aug 09 '18 21:08 ericmguimaraes

You still have the same issue. let me know, i have solution for this.

Yes, please share

TahaNaqvi avatar Sep 18 '18 11:09 TahaNaqvi

@muttineni2020 Hi Please share the Solution , i have the same issue .

imrananeuronsolutions avatar Dec 03 '18 12:12 imrananeuronsolutions