【发布时间】:2022-01-12 23:04:38
【问题描述】:
我将 targetSDK 版本更改为 30 以符合 Play 商店。 该应用程序在启动时立即崩溃。在 StackOverflow 和 GitHub 上尝试了所有解决方案。 注意:应用适用于 Android 9 及更低版本。
我从 logcat 获取的日志,
/SoLoader: couldn't find DSO to load: libjscexecutor.so
E/SoLoader: couldn't find DSO to load: libhermes-executor-release.so
E/GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID '108xxxxxxxxx' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}
A/libc: /Users/willholen/intern/hermes/include/hermes/VM/HermesValue.h:195: static hermes::vm::HermesValue hermes::vm::HermesValue::encodeNativePointer(const void *): assertion "(reinterpret_cast<uintptr_t>(p) & ~kDataMask) == 0 && "Native pointer must contain zeroes in the high bits"" failed
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 22840 (mqt_js), pid 22732 (angle.traveller)
【问题讨论】:
-
project.ext.react = [ entryFile: "index.js", enableHermes: true, // clean and rebuild if changing ]。如果我将 enableHermes 设为 false。应用程序工作正常。但是使用 true 再次崩溃。既然要爱马仕的好处,就不能假装。
标签: android react-native crash targetsdkversion