Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.0k views
in Technique[技术] by (71.8m points)

android - Failed to Generate Signed Apk - An organization slug is required (provide with --org)

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: Error

I cannot understand anything from this one:

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: Address in error

How can I solve this problem and Generate Signed Apk?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

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).

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

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

Config Docs


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...