2017-09-21 288 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++有警告一切工作正常

相关问题