[英]Android Studio 3.5.1 with NDK 20.0 can't find cstdint
如何在我的項目中獲取 cpp 文件以查找 header cstdint?
問題是我必須將我的源文件添加到 CMakeList.txt 中的 add_library 方法中。
Also, I added arguments "-DANDROID_STL=c++_shared" to the android.defaultConfig.externalNativeBuild.cmake method in the build.gradle for Module.app. 我認為這是默認行為,但不是必需的。
我錯誤地假設源文件已自動添加到 CMakeList.txt 中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.