NDK can't find the application directory

后端 未结 11 1855
余生分开走
余生分开走 2020-12-12 15:03

When running the ndk-build command I get the following error:

Android NDK: Could not find application project directory !    
Android NDK: Please define the          


        
11条回答
  •  囚心锁ツ
    2020-12-12 15:32

    This worked for me. No environment variables and no setups. Go to the root directory where you unzipped ndk on command line and run ndk-build command:

    ndk-build NDK_PROJECT_PATH=path to your project

    A sample would look like this in my dev machine:

     C:\adt-bundle-windows-x86-20140321\android-ndk-r9d>ndk-build NDK_PROJECT_PATH=D: /workspace/naruto  
     Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersi on 9 in D:/workspace/naruto/AndroidManifest.xml
     [armeabi] Compile thumb  : ndkfoo <= ndkfoo.c 
     [armeabi] SharedLibrary  : libndkfoo.so 
     [armeabi] Install        : libndkfoo.so => libs/armeabi/libndkfoo.so
    

提交回复
热议问题