Error: organization or project not found :app:bundleReleaseJsAndAssets FAILED
Error: organization or project not found :app:bundleReleaseJsAndAssets FAILED
在我的 React Native 中集成 Sentry 后无法构建版本 Android APK android application.I 收到此错误。
错误:找不到组织或项目
:app:bundleReleaseJsAndAssets 失败
失败:构建失败,出现异常。
* 在哪里:
脚本“/TF_ReactNative_Projects/Projects/MobilityOne/node_modules/react-native-sentry/sentry.gradle”行:126
- 出了什么问题:
任务“:app:bundleReleaseJsAndAssetsdebugSentryUpload”执行失败。
Process 'command 'node_modules/sentry-cli-binary/bin/sentry-cli'' finished with non-zero exit value 1
确保输入组织和项目名称。您可以在 sentry.io 处获取您的组织和项目名称。例如:
https://sentry.io/abc/my-project
abc 是组织
我的项目是项目
您可以在 ios/sentry.properties 和 android/sentry.properties[=11= 编辑这些信息]
然后重新构建!
这发生在我身上,因为我在我的 React Native 应用程序中配置 Sentry 后向我的组织添加了更多项目。
我通过仅更改 属性
手动编辑了 ios/sentry.properties
和 android/sentry.properties
defaults.project=my-project-name
在我的 React Native 中集成 Sentry 后无法构建版本 Android APK android application.I 收到此错误。
错误:找不到组织或项目 :app:bundleReleaseJsAndAssets 失败
失败:构建失败,出现异常。 * 在哪里: 脚本“/TF_ReactNative_Projects/Projects/MobilityOne/node_modules/react-native-sentry/sentry.gradle”行:126
- 出了什么问题:
任务“:app:bundleReleaseJsAndAssetsdebugSentryUpload”执行失败。
Process 'command 'node_modules/sentry-cli-binary/bin/sentry-cli'' finished with non-zero exit value 1
确保输入组织和项目名称。您可以在 sentry.io 处获取您的组织和项目名称。例如:
https://sentry.io/abc/my-project
abc 是组织
我的项目是项目
您可以在 ios/sentry.properties 和 android/sentry.properties[=11= 编辑这些信息]
然后重新构建!
这发生在我身上,因为我在我的 React Native 应用程序中配置 Sentry 后向我的组织添加了更多项目。
我通过仅更改 属性
手动编辑了ios/sentry.properties
和 android/sentry.properties
defaults.project=my-project-name