如何解决为什么在Nexus 5和Honor Play中,FindClass / JNI函数的行为有所不同?
MobileFFmpeg v4.3.1LTS可以在Honor Play上运行,但不能在Nexus 5上运行。
Honor Play和nexus 5的版本相同-> armeabi-v7a
https://github.com/tanersener/mobile-ffmpeg/releases/tag/v4.3.1.LTS
Nexus5:enter image description here
HonorPlay:enter image description here
NDK = ndk-r14b
JDK = jdk1.8.0_77
我将立即以英语stackoverflow提问。在Customer Serial# Date PM
A 01 01/02/01 PM2
B 03 01/01/01 PM4
C 05 01/03/01 PM2
中开发游戏。在代码本身中,只有2行与MobileFFmpeg有关:
启用功能:
Unreal Engine 4 v24.3
使用ffmpeg参数调用函数
extern "C"
{
int ffmpeg_execute(int argc,char** argv);
}
在没有移动FFmpeg的情况下,nexus 5上的应用程序启动并稳定运行。当我以FFmpeg开头时,会立即出现错误,并且应用程序崩溃:
FindClass函数不起作用,调用本身在移动ffmpeg.c中声明:
ffmpeg_execute(arg.size(),arg.data());
...
/** Full name of the Config class */
const char *configClassName = "com/arthenica/mobileffmpeg/Config";
我看不到FindClass(C ++)函数返回什么,Android Studio不想在调试期间停止在JNI_OnLoad(C ++)函数上。
两个电话上的FindClass行为为何不同的假设是什么?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。