Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get the provider #7

Closed
anmolguptach opened this issue Aug 30, 2022 · 2 comments
Closed

Unable to get the provider #7

anmolguptach opened this issue Aug 30, 2022 · 2 comments

Comments

@anmolguptach
Copy link

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Running Gradle task 'assembleDebug'...
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk...
E/AndroidRuntime(22557): FATAL EXCEPTION: main
E/AndroidRuntime(22557): Process: com.example.content_provider, PID: 22557
E/AndroidRuntime(22557): java.lang.RuntimeException: Unable to get provider com.example.content_provider.MyAndroidContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.example.content_provider.MyAndroidContentProvider" on path: DexPathList[[zip file "/data/app/~~FJz_B56z_SzEzgvhvEwn3g==/com.example.content_provider-Xu7Gp4ZA7unlA_9hB2S6vA==/base.apk"],nativeLibraryDirectories=[/data/app/~~FJz_B56z_SzEzgvhvEwn3g==/com.example.content_provider-Xu7Gp4ZA7unlA_9hB2S6vA==/lib/arm64, /data/app/~~FJz_B56z_SzEzgvhvEwn3g==/com.example.content_provider-Xu7Gp4ZA7unlA_9hB2S6vA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/AndroidRuntime(22557): at android.app.ActivityThread.installProvider(ActivityThread.java:7436)
E/AndroidRuntime(22557): at android.app.ActivityThread.installContentProviders(ActivityThread.java:6948)
E/AndroidRuntime(22557): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6719)
E/AndroidRuntime(22557): at android.app.ActivityThread.access$1500(ActivityThread.java:256)
E/AndroidRuntime(22557): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2090)
E/AndroidRuntime(22557): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(22557): at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(22557): at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(22557): at android.app.ActivityThread.main(ActivityThread.java:7842)
E/AndroidRuntime(22557): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(22557): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(22557): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
E/AndroidRuntime(22557): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.content_provider.MyAndroidContentProvider" on path: DexPathList[[zip file "/data/app/~~FJz_B56z_SzEzgvhvEwn3g==/com.example.content_provider-Xu7Gp4ZA7unlA_9hB2S6vA==/base.apk"],nativeLibraryDirectories=[/data/app/~~FJz_B56z_SzEzgvhvEwn3g==/com.example.content_provider-Xu7Gp4ZA7unlA_9hB2S6vA==/lib/arm64, /data/app/~~FJz_B56z_SzEzgvhvEwn3g==/com.example.content_provider-Xu7Gp4ZA7unlA_9hB2S6vA==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
E/AndroidRuntime(22557): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
E/AndroidRuntime(22557): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(22557): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(22557): at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:147)
E/AndroidRuntime(22557): at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:67)
E/AndroidRuntime(22557): at android.app.ActivityThread.installProvider(ActivityThread.java:7420)
E/AndroidRuntime(22557): ... 11 more

@nt4f04uNd
Copy link
Owner

Hi @anmolguptach.
Can you provide me with steps of reproducing the issue?

Please also make sure you have followed the configuration steps from README, you can also try checking out the example app, in which there's an example of a configured ContentProvider.

@nt4f04uNd
Copy link
Owner

Closing without a way to reproduce. If you are still facing the issue, provide me with more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants