无法生成签名的Apk-要求有组织头(提供--org) [英] Failed to Generate Signed Apk - An organization slug is required (provide with --org)

查看:472
本文介绍了无法生成签名的Apk-要求有组织头(提供--org)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置 Sentry.io 错误跟踪后,当我尝试生成签名的APK :

After setting up the Sentry.io error tracking I get this error when I try to Generate Signed Apk:

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

单击此图像并将其打开以查看更多详细信息:

Click on this image and open it to see more details:

我对此一无所知:

Process 'command
'/var/folders/j4/_fzm1rks3tsc2h3j4l2qbq4w0000gn/T/.sentry-cli1369818638611304938.exe'
' finished with non-zero exit value 1

这是错误引发的文件地址:

This is the file address that was raised in error:

如何解决此问题并生成签名的Apk?

How can I solve this problem and Generate Signed Apk?

推荐答案

文档虽然不太清晰,但并不清楚,但很容易错过.这里需要两个不同的sentry.properties.

The docs are not a bit clear, though its mentioned but easy to miss it. There are two different sentry.properties required here.

请注意,在项目根目录中配置sentry-cli的sentry.properties与在应用程序资源中包含的用于在运行时配置Sentry SDK的属性不同(如配置文档所示).

Please note the sentry.properties in your project root that configures sentry-cli is different than the one you include in your application resources to configure the Sentry SDK at runtime (as seen in the configuration documentation).

您需要在项目根目录中包含另一个sendry.properties文件,

You need to have another sentry.properties file in the project root with

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

以及具有DSN值等的运行时sendry.properties可以放置在app/src/main/resources目录中(如果需要,请创建资源目录)

and the runtime sentry.properties with DSN values, etc can be placed in app/src/main/resources directory(create resource directory if required)

配置文档

这篇关于无法生成签名的Apk-要求有组织头(提供--org)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆