Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mp4parser runs on device from Android Studio but crashes when manually installing the APK

I'm using mp4parser to merge videos. The app runs perfect when running from A.S. but if I install the app manually (transfer and run the APK) or if I run it from TestFairy, the app crashes.

This started happening when I updated my Target Sdk to Lollipop. I've added the

`aspectjrt-1.7.3.jar` 
`isoparser-1.0-RC-27.jar` 

into the libs dir in my project.

I've also tried with below versions

`aspectjrt-1.8.5.jar` 
`isoparser-1.0-RC-37.jar`
`isoparser-1.0.6.jar`.

Not sure if its the right way but it works from Android Studio then crashes from TestFairy or Manual install.

The error says

com.coremedia.iso.boxes.FileTypeBox missing

but its there in the isoparser jar.

What am I missing, is this a version issue?

My device is running Android 4.2.2 could this also be a problem if my target SDK is Android 5.0

The exception is:

Caused by: java.lang.ClassNotFoundException:com.coremedia.iso.boxes.FileTypeBox
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.coremedia.iso.boxes.FileTypeBox" on path: /data/app/com.myapp.appname-1.apk
like image 881
BrettStuart Avatar asked May 19 '15 09:05

BrettStuart


1 Answers

Sorry late answer, I found after much frustration, that gradle was not packaging my lib files in the apk, it had nothing to do with mp4Parser, eventually after updating Android Studio, all SDK's and Gradle the apk packaged properly.

like image 84
BrettStuart Avatar answered Oct 09 '22 05:10

BrettStuart