mp4parser在Android Studio的设备上运行,但在手动安装APK时崩溃 [英] mp4parser runs on device from Android Studio but crashes when manually installing the APK
问题描述
我正在使用mp4parser
合并videos
.从 A 运行时,该应用可以完美运行.但是如果我手动安装该应用程序(传输并运行APK
),或者如果我从TestFairy
运行它,则该应用程序将崩溃.
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.
当我将我的Target Sdk
更新为Lollipop
时,这开始发生.
我已经添加了
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`
进入我项目中的libs
目录.
我也在versions
`aspectjrt-1.8.5.jar`
`isoparser-1.0-RC-37.jar`
`isoparser-1.0.6.jar`.
不确定它的正确方法,但可以从Android Studio
开始工作,然后从TestFairy
或Manual install
崩溃.
Not sure if its the right way but it works from Android Studio
then crashes from TestFairy
or Manual install
.
错误提示
com.coremedia.iso.boxes.FileTypeBox
丢失
,但它在isoparser jar
中.
我缺少什么,这是版本问题吗?
What am I missing, is this a version issue?
我的设备正在运行Android 4.2.2
,如果我的目标SDK
是Android 5.0
My device is running Android 4.2.2
could this also be a problem if my target SDK
is Android 5.0
例外是:
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
推荐答案
很抱歉,我很沮丧,发现gradle并没有将我的lib文件打包在apk中,与mp4Parser无关, 最终在更新Android Studio之后,所有SDK和Gradle的apk都正确打包了.
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.
这篇关于mp4parser在Android Studio的设备上运行,但在手动安装APK时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!