2017-09-21 286 views
0

我用coolMic repo從android設備播放音頻。在android studio中爲ndkBuild執行外部原生編譯時發生錯誤

,但是當我在Android Studio中導入我有以下錯誤: -

E:\New folder (2)\CoolMicApp-Android\app\build.gradle 
Error:executing external native build for ndkBuild E:\New folder (2)\CoolMicApp-Android\app\src\main\jni\Android.mk 
Error:executing external native build for ndkBuild E:\New folder (2)\CoolMicApp-Android\app\src\main\jni\Android.mk 

我查了一些資源,但無助於解決這個問題。 也coolMic文件在那裏我遵循的步驟: -

How to build coolmic: 
1. Download Android Studio and the NDK 
2. Clone this repository 
3. Run the following commands: 
$ git submodule init 
$ git submodule update --init --recursive 
4. Import the Project into Android Studio. Select gradle-wrapper. 
5. Hit build(Arrovdown with 011001 next to it. 
6. Hit the Build Menu and then Build APK 
7. You can find the resulting APK under ./app/build/outputs/apk/ 

回答

0

最後我解決了問題。

Project location should not contain any white-space this cause problem with Ndk tools 

我完全錯過this.as我的位置E:\新建文件夾(2)\新 所以只改變我的路徑 - :Ndk build issue with android studio 當您創建在Android Studio中新的項目與C或C++有警告一切工作正常

相關問題