gpt4 book ai didi

android - sentry-debug-meta.properties 文件的写法

转载 作者:太空狗 更新时间:2023-10-29 14:36:52 24 4
gpt4 key购买 nike

这是 Sentry.io installation guide 的一部分:

ProGuard UUIDs

After ProGuard files are generated you will need to embed the UUIDs of the ProGuard mapping files in a properties file named sentry-debug-meta.properties in the assets folder. The Java SDK will look for the UUIDs there to link events to the correct mapping files on the server side.

sentry-cli can write the sentry-debug-meta.properties file for you:

sentry-cli upload-proguard \
--android-manifest app/build/intermediates/manifests/full/release/AndroidManifest.xml \
--write-properties app/build/intermediates/assets/release/sentry-debug-meta.properties \
--no-upload \
app/build/outputs/mapping/release/mapping.txt

我在其 installation guide 的帮助下安装了 sentry-cli在我的 Mac Os 上,但我不知道如何执行命令行。 我试图在 Android Studio 中右键单击 AndroidManifest.xml,然后单击 Open in terminal 并执行 sentry-cli upload-proguard AndroidManifest.xml 但是我收到了这个错误:

warning: proguard mapping 'AndroidManifest.xml' was ignored because it does not contain any line information.
> compressing mappings
> uploading mappings

error: An organization slug is required (provide with --org)

我应该如何执行这些命令来编写sentry-debug-meta.properties文件?

最佳答案

打开您的 sentry-cli 文件并添加以下字段:

defaults.project = your-project
defaults.org = your-org
auth.token = YOUR_AUTH_TOKEN

关于android - sentry-debug-meta.properties 文件的写法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53986456/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com