E/libc++abi:以 google::protobuf::FatalException 类型的未捕获异常终止:
E/libc++abi: terminating with uncaught exception of type google::protobuf::FatalException:
我正在处理一个 Android-NDK 项目,我需要将 google-protobuf
库添加到我的项目中。
当我尝试 运行 我的应用程序时,我的项目编译和 build/make 项目成功并且所需的 .so
文件也得到 generated.But,在 运行 时我收到以下错误应用程序崩溃了。
E/libc++abi: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 3134 (...), pid 3134 (...)
google_protobuf 版本为 2.6.1.
注意:我只需要用这个版本编译,因为我的原型文件是用这个only.So版本编译的,我不能改变
If you need more info about my issue, please ask in comment.
找到解决方案:如果有人遇到同样的问题,我只想分享。
在深入研究我的项目之后。
我发现,我的项目中有两个重复的 cpp 文件。
删除了罪魁祸首文件。
Build->Refresh Linked Cpp Projects
Build-> clean Project
Build-> Rebuild Project
工作正常,没有问题。
谢谢
编码愉快。
React-native 缩放集成
使用@minyushov 提供的解决方案后我遇到的错误是
断言“以 std::bad_cast 类型的未捕获异常终止:std::bad_cast”失败
@majirosstefan
提供的解决方案解决了这个问题
SoLoader.loadLibrary("缩放");
在 MainApplication → onCreate
我正在处理一个 Android-NDK 项目,我需要将 google-protobuf
库添加到我的项目中。
当我尝试 运行 我的应用程序时,我的项目编译和 build/make 项目成功并且所需的 .so
文件也得到 generated.But,在 运行 时我收到以下错误应用程序崩溃了。
E/libc++abi: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 3134 (...), pid 3134 (...)
google_protobuf 版本为 2.6.1.
注意:我只需要用这个版本编译,因为我的原型文件是用这个only.So版本编译的,我不能改变
If you need more info about my issue, please ask in comment.
找到解决方案:如果有人遇到同样的问题,我只想分享。 在深入研究我的项目之后。
我发现,我的项目中有两个重复的 cpp 文件。
删除了罪魁祸首文件。
Build->Refresh Linked Cpp Projects
Build-> clean Project
Build-> Rebuild Project
工作正常,没有问题。
谢谢
编码愉快。
React-native 缩放集成
使用@minyushov 提供的解决方案后我遇到的错误是
断言“以 std::bad_cast 类型的未捕获异常终止:std::bad_cast”失败
@majirosstefan
提供的解决方案解决了这个问题SoLoader.loadLibrary("缩放"); 在 MainApplication → onCreate