gpt4 book ai didi

android - 在 android studio 中为 ndkBuild 执行外部原生构建时发生错误

转载 作者:行者123 更新时间:2023-12-04 14:34:34 25 4
gpt4 key购买 nike

我用了coolMic repo用于从 android 设备广播音频。

但是当我在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/

最佳答案

仅当您的项目路径位置的文件夹名称包含空格时才会发生此错误。

例如。

-> Problem path :- D:\Android Project\ProjectName\app\jni\android.mk

In the problem path, folder name has with whitespace like "Android Project"



==================================

-> Solution path :- D:\Android_Project\ProjectName\app\jni\android.mk

In the solution path, folder name does not have any whitespace like "Android_project"

关于android - 在 android studio 中为 ndkBuild 执行外部原生构建时发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46348000/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com