Android Studio没有生成本地调试符号。

huangapple go评论137阅读模式
英文:

Android Studio not generating native debug symbols

问题

I am trying to release an update for my Android app that I'm creating with Ionic.

在尝试发布我使用Ionic创建的Android应用的更新。

In developer's console, I update my Android Bundle, but it is requiring both the mapping file AND native debug symbols Zip file.

在开发者控制台中,我更新了我的Android捆绑包,但它要求同时提供映射文件和本地调试符号的Zip文件。

I managed to get Android Studio to generate the mapping file.

我成功让Android Studio生成了映射文件。

However, I can't get Android Studio to generate the native debug symbols.

然而,我无法让Android Studio生成本地调试符号。

I'm following THIS guide.

我正在按照此指南进行操作。

I installed, from the SDK Manager, CMake and NDK (Side by Side)

我从SDK Manager中安装了CMake和NDK(Side by Side)。

I added android.defaultConfig.ndk.debugSymbolLevel 'FULL' to the end of build.gradle (:app)

我在build.gradle (:app)的末尾添加了android.defaultConfig.ndk.debugSymbolLevel 'FULL'

Then, I sync the build.gradle, build the project and generate the signed bundle, but I just can't get the native-debug-symbols folder under ".../app/build/outputs" as the guide said it would be automatically generate. The only folders I get are apk, logs and mapping

然后,我同步了build.gradle,构建了项目并生成了签名的捆绑包,但我无法像指南中说的那样自动生成位于“.../app/build/outputs”下的native-debug-symbols文件夹。我只能获得apklogsmapping文件夹。

What am I doing wrong? How can I generate these native debug symbols? Why can't I just simply update my app?

我做错了什么?如何生成这些本地调试符号?为什么我不能简单地更新我的应用程序?

英文:

I am trying to release an update for my Android app that I'm creating with Ionic.

In developer's console, I update my Android Bundle, but it is requiring both the mapping file AND native debug symbols Zip file.

Android Studio没有生成本地调试符号。

I managed to get Android Studio to generate the mapping file.

However, I can't get Android Studio to generate the native debug symbols.

I'm following THIS guide.

I installed, from the SDK Manager, CMake and NDK (Side by Side)

Android Studio没有生成本地调试符号。

I added android.defaultConfig.ndk.debugSymbolLevel 'FULL' to the end of build.gradle (:app)

Android Studio没有生成本地调试符号。

Then, I sync the build.gradle, build the project and generate the signed bundle, but I just can't get the native-debug-symbols folder under ".../app/build/outputs" as the guide said it would be automatically generate. The only folders I get are apk, logs and mapping

Android Studio没有生成本地调试符号。

What am I doing wrong? How can I generate these native debug symbols? Why can't I just simply update my app?

答案1

得分: 3

  1. 在SDK工具窗口上:
  • 勾选 "显示包详细信息" 选项
  • 展开NDK,找到选定的NDK版本,并复制版本名称
  1. 打开您的应用的build.gradle文件
  • 在android下添加 ndkVersion "您复制的NDK版本"

然后,当构建时,本机调试符号zip将添加到您的AAB文件中。

英文:
  1. On the SDK Tools windows:
  • Check the "Show Package Details" option
  • Expand NDK, find the selected NDK version, and copy the version name

Android Studio没有生成本地调试符号。

  1. Open your app build.gradle
  • add ndkVersion "Your copied NDK version" under android

Android Studio没有生成本地调试符号。

Then native debug symbol zip will be added to your AAB file when you build it.

答案2

得分: 0

尽管在Play控制台中显示为“必要功能”,但事实证明您可以忽略上传本地调试符号的此步骤。您可以寻找“下一步”或“提交审核”按钮。

不幸的是,这并不够清晰,因此我浪费了很多时间才知道“必要功能”是可跳过的。

英文:

Although in Play Console it shows as "required features", it turns out that you can ignore uploading this step of uploading Native Debug Symbols. You can look for the "Next" or "Submit to review" button.

Unfortunately, it was not clear enough, so I wasted a whole bunch of time just to know the "required feature" was skippable.

huangapple
  • 本文由 发表于 2023年6月15日 11:32:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76478907.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定