I have my application installed with the android kitkat binary itself (built into a binary file) in system/priv-app/FileSample.apk
In the rare case, I get the following exception. But he could not reproduce it again.
I do not use proguard either. I checked all the related problems from StackOverflow, but none of them were related to the problem of such a system application.
So kindly someone helps me figure out the reason for this FATAL exception.
java.lang.RuntimeException: Unable to get provider com.file.SearchProvider: java.lang.ClassNotFoundException: Didn't find class "com.file.SearchProvider" on path: DexPathList[[zip file "/system/priv-app/FileSample.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5115)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:4707)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4590)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.app.ActivityThread.access$1600(ActivityThread.java:169)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1337)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.os.Looper.loop(Looper.java:136)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5476)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.file.SearchProvider" on path: DexPathList[[zip file "/system/priv-app/FileSample.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:67)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5100)
01-04 03:16:03.005 8340 8340 E AndroidRuntime: ... 12 more
source
share