且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Android Studio 中为 NDK 项目构建符号花费的时间太长

更新时间:2023-11-30 19:27:04

我面临着完全相同的问题 - 昨天将我的 Android Studio 安装升级到 2.3.3 后,现在打开我的项目至少需要 30 分钟的构建符号",此时 IDE 实际上毫无用处.

I am facing the exact same issue - after upgrading my Android Studio installation to 2.3.3 yesterday, opening my project now faces me with at least 30 mins of "building symbols" at which point the IDE is effectively useless.

我可以通过终端中的 gradle 命令构建项目,所以我不知道为什么这一步在 AS 中是强制性的.

I can build the project via gradle commands in terminal, so I have no idea why this step is mandatory in AS.

我读到这可能与使用 NDK 构建(Android.mk?)与 CMake(CMakeLists.txt)有关,但我还没有能够转换我的 .mk 文件来测试这一点.这是一个遗留项目,NDK 部分对我来说仍然有些神秘:(

I read that this may have something to do with using the NDK build (Android.mk?) vs. CMake (CMakeLists.txt), but I have not yet been able to convert over my .mk file to test this out. This is a legacy project, and the NDK portion is still somewhat of a mystery to me :(