Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法成功构建项目的安卓APK #132

Closed
Sharp-Lee opened this issue Dec 8, 2023 · 5 comments
Closed

无法成功构建项目的安卓APK #132

Sharp-Lee opened this issue Dec 8, 2023 · 5 comments

Comments

@Sharp-Lee
Copy link

我尝试在项目中构建安卓APK,我已经尝试过执行 "yarn install" 和 "yarn build",但似乎没有编译mobile目录下的代码。
我也进入package/mobile目录,没有在package.json文件中找到关于apk编译的脚本。
我尝试在package/mobile/android目录中执行 ./gradlew assembleRelease,也并没有成功编译,返回如下错误:

> Analyzing 2 sources
> Rewriting sources
> Adding source map references
error: API request failed
  caused by: sentry reported an error: Invalid token (http status: 401)

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

> Task :app:createBundleReleaseJsAndAssets_SentryUpload_com.io.owallet@1.1.2+98_98 FAILED
ReactNativeFirebase WARNING: NPM package '@react-native-firebase/analytics' depends on '@react-native-firebase/app' v18.6.2 but found v18.6.1, this might cause build issues or runtime crashes.

FAILURE: Build failed with an exception.

似乎是sentry服务需要的token不对,但我对sentry服务一无所知,我也没有足够的时间去学习这个,我希望能获得一个包括env详细配置,并且编译安卓apk的文档,谢谢。请帮助我,感谢您的时间和付出!

我的环境配置如下

  • node:v20.10.0
  • Gradle: 8.0.1
  • Kotlin: 1.8.10
  • JVM: 17.0.8 (Eclipse OpenJ9 v0.40.0-release-b9cd65edd)
  • OS: Mac OS X 14.1.1 aarch64
@tucq88
Copy link
Collaborator

tucq88 commented Dec 8, 2023

Why Sentry is required ? @marxeille

@Sharp-Lee
Copy link
Author

Why Sentry is required ? @marxeille

Is there any progress?

@marxeille
Copy link
Collaborator

marxeille commented Dec 11, 2023 via email

@Sharp-Lee
Copy link
Author

Sentry token is required to upload bundle.js.map to the Sentry server. Vào Th 6, 8 thg 12, 2023 vào lúc 17:57 Tu Chu @.> đã viết:

Why Sentry is required ? @marxeille https://github.com/marxeille — Reply to this email directly, view it on GitHub <#132 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE23XT54WQORILYATSOVKLTYILXCTAVCNFSM6AAAAABAMMOT4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWHE3DCNZRGY . You are receiving this because you were mentioned.Message ID: @.
>

Hi @marxeille,

Thank you for your message. I see that a Sentry token is required to upload bundle.js.map to the Sentry server. To proceed, I would appreciate it if you could provide me with detailed documentation or instructions on how to configure the Sentry token.

I want to ensure that I set it up correctly. Any guidance or links to relevant documentation would be greatly appreciated.

Best regards,
Sharp

@marxeille
Copy link
Collaborator

Sure, you can follow this [guide](https://docs.sentry.io/) to setup your own sentry server or try it with [sanbox](https://try.sentry-demo.com/organizations/included-javelin/issues/#welcome)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants