提问人:Magician Artemka 提问时间:4/25/2023 最后编辑:Magician Artemka 更新时间:4/25/2023 访问量:203
如何在没有 Gradle 的情况下将原生调试符号包含在 Android App Bundle 中?
How to include native debug symbols to Android App Bundle without Gradle?
问:
Android Gradle 插件的文档介绍了以下在发布模式下构建 AAB 的方法,其中包含原生调试符号:
Android Gradle plugin version 4.1 or later
If your project builds an Android App Bundle, you can automatically include the native debug symbols file in it. To include this file in release builds, add the following to your app's build.gradle file:
android.buildTypes.release.ndk.debugSymbolLevel = { SYMBOL_TABLE | FULL }
Select the debug symbol level from the following:
Use SYMBOL_TABLE to get function names in the Play Console's symbolicated stack traces. This level supports tombstones.
Use FULL to get function names, files, and line numbers in the Play Console's symbolicated stack traces.
Note: There is a 300 MB limit for the native debug symbols file. If your debug symbols footprint is too large, use SYMBOL_TABLE instead of FULL to decrease the file size.
If your project builds an APK, use the build.gradle build setting shown earlier to generate the native debug symbols file separately. Manually upload the native debug symbols file to the Google Play Console. As part of the build process, the Android Gradle plugin outputs this file in the following project location:
app/build/outputs/native-debug-symbols/variant-name/native-debug-symbols.zip
由于我正在使用 V 编程语言创建一个应用程序并使用工具 (https://github.com/vlang/vab) 构建 AAB 文件,因此我不使用 Gradle。 处理构建步骤所需的所有步骤,并使用 CLI 工具生成 AAB 构建。vab
vab
问题是 - 我应该在构建行或 AndroidManifest 或其他地方进行哪些修改以使编译器生成调试符号并将它们打包到 AAB 文件中?ndk-build
我试图在网络上搜索某种命令或教程,但一无所获。
我尝试在构建 CLI 命令中添加和(在此处找到 -> https://developer.android.com/ndk/guides/ndk-build#dvr)参数,但我在 Google 开发者控制台中仍然收到警告,指出我的应用程序包含本机代码,我应该包含调试符号。-g
NDK_DEBUG=1
ndk
我也问过ChatGPT,但到目前为止还没有好的答案......
答: 暂无答案
评论