a914-gowtham / android-video-trimmer

Helps to trim local videos with compress option on Android applications using Exoplayer 2 and FFmpeg.
Other
370 stars 117 forks source link

couldn't find "libavutil.so" Error in android 10 version #4

Closed 20101994aqeel closed 4 years ago

20101994aqeel commented 4 years ago

@a914-gowtham Library is working perfect upto android 9 but when i test it in android 10 or 11 my app crash. Error report is given below

Device: Samsung Galaxy S10 OS version: Android 10 (SDK 29)

Stack trace:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.qboxus.musictok-TNRX9lFlXxLwdRoIlDqLqw==/base.apk"],nativeLibraryDirectories=[/data/app/com.qboxus.musictok-TNRX9lFlXxLwdRoIlDqLqw==/lib/x86, /data/app/com.qboxus.musictok-TNRX9lFlXxLwdRoIlDqLqw==/base.apk!/lib/x86, /system/lib, /system/product/lib, /system/vendor/lib]]] couldn't find "libavutil.so" at java.lang.Runtime.loadLibrary0(Runtime.java:1067) at java.lang.Runtime.loadLibrary0(Runtime.java:1007) at java.lang.System.loadLibrary(System.java:1667) at Jni.FFmpegCmd.(FFmpegCmd.java:18) at Jni.FFmpegCmd.exec(FFmpegCmd.java:77) at com.gowtham.library.ui.ActVideoTrimmer.validateVideo(ActVideoTrimmer.java:449) at com.gowtham.library.ui.ActVideoTrimmer.onOptionsItemSelected(ActVideoTrimmer.java:428) at android.app.Activity.onMenuItemSelected(Activity.java:4156) at androidx.fragment.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:384) at androidx.appcompat.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:219) at androidx.appcompat.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:109) at androidx.appcompat.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:109) at androidx.appcompat.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:64) at androidx.appcompat.widget.Toolbar$1.onMenuItemClick(Toolbar.java:207) at androidx.appcompat.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:781) at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:840) at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158) at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:991) at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:981) at androidx.appcompat.widget.ActionMenuView.invokeItem(ActionMenuView.java:625) at androidx.appcompat.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:151) at android.view.View.performClick(View.java:7259) at android.view.View.performClickInternal(View.java:7236) at android.view.View.access$3600(View.java:801) at android.view.View$PerformClick.run(View.java:27892) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:214) at android.app.ActivityThread.main(ActivityThread.java:7356) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)

a914-gowtham commented 4 years ago

Sorry @20101994aqeel for the late response have you given android:requestLegacyExternalStorage="true" in the manifest application tag? and make sure to add FileProvider in manifest REFER this

if it doesn't work, use implementation 'com.github.a914-gowtham:Android-video-trimmer:1.0.5' and change TrimmerConstants to com.gowtham.library.utils.Constants

a914-gowtham commented 4 years ago

but the problem here is the old version's size is larger(22mb) than latest one(13mb)