Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

RuntimeException: Unable to get provider android.support.v4.content.FileProvider

$
0
0

@ebellempire wrote:

My Android Studio build completes but the app keeps failing in the emulator and on devices with the following error (complete log follows, but here is the stated cause):

Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" on path: DexPathList[[zip file "/data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/base.apk"],nativeLibraryDirectories=[/data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/lib/arm64, /data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]

Plugins

The only plugins I’m using are the following:

cordova-plugin-google-analytics (1.9.0)
cordova-sqlite-storage (5.0.0)
es6-promise-plugin (4.2.2)

Complete error message

Here’s the full output from logcat:

2020-05-15 16:28:02.956 9290-9290/? E/Zygote: isWhitelistProcess - Process is Whitelisted
2020-05-15 16:28:02.959 9290-9290/? E/Zygote: accessInfo : 1
2020-05-15 16:28:02.975 9290-9290/? I/o.ionic.starte: Late-enabling -Xcheck:jni
2020-05-15 16:28:03.293 9290-9290/io.ionic.starter W/FirebaseApp: Default FirebaseApp failed to initialize because no default options were found. This usually means that com.google.gms:google-services was not applied to your gradle project.
2020-05-15 16:28:03.294 9290-9290/io.ionic.starter I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
2020-05-15 16:28:03.294 9290-9290/io.ionic.starter D/AndroidRuntime: Shutting down VM
2020-05-15 16:28:03.296 9290-9290/io.ionic.starter E/AndroidRuntime: FATAL EXCEPTION: main
    Process: io.ionic.starter, PID: 9290
    java.lang.RuntimeException: Unable to get provider android.support.v4.content.FileProvider: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" on path: DexPathList[[zip file "/data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/base.apk"],nativeLibraryDirectories=[/data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/lib/arm64, /data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
        at android.app.ActivityThread.installProvider(ActivityThread.java:6770)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6312)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6227)
        at android.app.ActivityThread.access$1200(ActivityThread.java:238)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1787)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7073)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" on path: DexPathList[[zip file "/data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/base.apk"],nativeLibraryDirectories=[/data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/lib/arm64, /data/app/io.ionic.starter-X1v4RZ9YPITKm62O3C-xRQ==/base.apk!/lib/arm64-v8a, /system/lib64, /system/vendor/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:121)
        at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:67)
        at android.app.ActivityThread.installProvider(ActivityThread.java:6754)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6312) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6227) 
        at android.app.ActivityThread.access$1200(ActivityThread.java:238) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1787) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:214) 
        at android.app.ActivityThread.main(ActivityThread.java:7073) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964) 
2020-05-15 16:28:03.306 9290-9290/? I/Process: Sending signal. PID: 9290 SIG: 9

I’m at a loss.

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>