Android Vitamio 5.0.0 library crash

非 Y 不嫁゛ 提交于 2019-12-06 12:13:54

As it seems your app failing to found "nulllibstlport_shared.so" native library. And when it comes to native it's useful to specify the particular device on which problem occurs.

However, on Vitamio website they say that lib is currently supporting: ARMv6, VFP, ARMv7, NEON,MIPS,X86 etc... So I suggest you try to force your app include native libs only for supported ABI.

For this you need to add this to app/build.gradle

defaultConfig {
    ...

    ndk {
        abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
    }
}

and in the root folder of your project find gradle.properties file and add there 'android.useDeprecatedNdk=true'

# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
...
# org.gradle.parallel=true

android.useDeprecatedNdk=true

But I don't really know if this would help.

There is no LibsCheck class in Vitamio 5.0. It's required to run in onCreate function.

It seems Vitamio 5.0 is not complited. It doesn't use ffmpeg library and it can't play.

Late reply,

But this can work (Worked for me at least when I had same error)

 Vitamio.isInitialized(this);

Or

 Vitamio.isInitialized(getApplicationContext());

in onCreate of your activity.

for solve specifically that problem, the thing that I did, was to modify the file MediaPlayer.java, located in src/io/vov/vitamio/. On the line 253 says:

String LIB_ROOT = Vitamio.getLibraryPath();

and you should change it for:

String LIB_ROOT = "/data/data/your.package.name/lib/";

Anyway, if you are not sure, you can debug the app, stopping just in that line, and the variable LIB_ROOT, will have the complete route.

Now I have another problem making work this library. But I hope this help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!