且构网

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

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

更新时间:2023-11-30 19:31:34

我正面临着完全相同的问题-昨天将我的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 :(