如何解决此问题?我已经通过正确执行所有步骤来集成multidex,但应用程序有时仍会崩溃
07-14 16:28:38.103 16031-16031/? E/SELinux: [DEBUG] get_category: variable seinfo: release sensitivity: NULL, cateogry: NULL
07-14 16:28:38.163 8303-8303/com.randomsoft.love.poetry.photo.editor E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.randomsoft.love.poetry.photo.editor, PID: 8303
java.lang.NoClassDefFoundError: com.adobe.creativesdk.aviary.AdobeImageEditorActivity
at com.adobe.creativesdk.aviary.AdobeImageIntent$Builder.<init>(AdobeImageIntent.java:191)
at com.randomsoft.love.poetry.photo.editor.WorkONIMAGEActivity$17.onClick(WorkONIMAGEActivity.java:1668)
at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6837)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
以下是来自gradle文件的依赖项,每个依赖项只使用一次,它们的版本对于支持库也相同
dependencies {
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.google.android.gms:play-services-ads:10.0.1'
compile project(':CropPhotoCommon')
compile 'com.startapp:inapp-sdk:3.6.1'
compile 'com.android.support:design:24.2.1'
compile 'com.jrummyapps:colorpicker:2.1.6'
compile 'com.android.support:multidex:1.0.1'
compile 'com.github.bumptech.glide:glide:3.5.2'
compile 'com.mcxiaoke.volley:library:1.0.19'
/* 4) Add the CSDK framework dependencies (Make sure these version numbers are correct) */
compile 'com.adobe.creativesdk.foundation:auth:0.9.1251'
/* Add the CSDK framework dependencies (Make sure these version numbers are correct) */
compile 'com.adobe.creativesdk:image:4.8.4'
compile 'com.localytics.android:library:3.8.0'
}
答案 0 :(得分:0)
这样做是因为类在编译时存在但在运行时找不到。查找构建时和运行时类路径的差异。 并且还从CSDK示例中添加了一些类