[Mi 3 Q&A, Help & Troubleshooting] mylee:
Dears,

I have installed the latest stock ROM(MIUI 7 6.2.25, Android 6.0.1) on my Mi3 handset. When I tried to write a new e-mail and attach a file, I always got FC with the following error log message and failed to add an attachment. Does anyone have any idea why this happens?

Thanks for the prompt help.

java.lang.RuntimeException: Unable to instantiate application com.android.documentsui.DocumentsApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.documentsui.DocumentsApplication" on path: DexPathList[[zip file "/system/app/DocumentsUI/DocumentsUI.apk"],nativeLibraryDirectories=[/system/app/DocumentsUI/lib/arm, /vendor/lib, /system/lib]]

at android.app.LoadedApk.makeApplication(LoadedApk.java:580)

at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4693)

at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)

at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:675)

at android.app.ActivityThread.handleBindApplication()

at android.app.ActivityThread.access$1600(ActivityThread.java:153)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1410)

at android.os.Handler.dispatchMessage(Handler.java:102)

at android.os.Looper.loop(Looper.java:148)

at android.app.ActivityThread.main(ActivityThread.java:5432)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:735)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)

at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:114)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.documentsui.DocumentsApplication" on path: DexPathList[[zip file "/system/app/DocumentsUI/DocumentsUI.apk"],nativeLibraryDirectories=[/system/app/DocumentsUI/lib/arm, /vendor/lib, /system/lib]]

at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)

at java.lang.ClassLoader.loadClass(ClassLoader.java:511)

at java.lang.ClassLoader.loadClass(ClassLoader.java:469)

at android.app.Instrumentation.newApplication(Instrumentation.java:982)

at android.app.LoadedApk.makeApplication(LoadedApk.java:575)

... 13 more

Suppressed: java.io.IOException: Failed to open dex files from /system/app/DocumentsUI/DocumentsUI.apk

at dalvik.system.DexFile.openDexFileNative(Native Method)

at dalvik.system.DexFile.openDexFile(DexFile.java:295)

at dalvik.system.DexFile.(DexFile.java:80)

at dalvik.system.DexFile.(DexFile.java:59)

at dalvik.system.DexPathList.loadDexFile(DexPathList.java:279)

at dalvik.system.DexPathList.makePathElements(DexPathList.java:248)

at dalvik.system.DexPathList.(DexPathList.java:120)

at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:48)

at dalvik.system.PathClassLoader.(PathClassLoader.java:65)

at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)

at android.app.LoadedApk.getClassLoader(LoadedApk.java:376)

at de.robv.android.xposed.XposedBridge$1.beforeHookedMethod(XposedBridge.java:170)

at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:655)

... 10 more

Suppressed: java.lang.ClassNotFoundException: com.android.documentsui.DocumentsApplication

at java.lang.Class.classForName(Native Method)

at java.lang.BootClassLoader.findClass(ClassLoader.java:781)

at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)

at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

... 16 more

Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available