You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add functionality of providing data to example. I'm following instructions in README and I did all steps.
When I'm trying to build it - it stacks and shows me an error.
Launching lib/main.dart on sdk gphone x86 in debug mode... ✓ Built build/app/outputs/flutter-apk/app-debug.apk. E/AndroidRuntime(10875): FATAL EXCEPTION: main E/AndroidRuntime(10875): Process: com.nt4f04und.android_content_provider_example, PID: 10875 E/AndroidRuntime(10875): java.lang.RuntimeException: Unable to get provider com.nt4f04und.android_content_provider_example.MyAndroidContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.nt4f04und.android_content_provider_example.MyAndroidContentProvider" on path: DexPathList[[zip file "/data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/base.apk"],nativeLibraryDirectories=[/data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/lib/x86, /data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/base.apk!/lib/x86, /system/lib, /system_ext/lib]] E/AndroidRuntime(10875): at android.app.ActivityThread.installProvider(ActivityThread.java:7244) E/AndroidRuntime(10875): at android.app.ActivityThread.installContentProviders(ActivityThread.java:6780) E/AndroidRuntime(10875): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6697) E/AndroidRuntime(10875): at android.app.ActivityThread.access$1300(ActivityThread.java:237) E/AndroidRuntime(10875): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913) E/AndroidRuntime(10875): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(10875): at android.os.Looper.loop(Looper.java:223) E/AndroidRuntime(10875): at android.app.ActivityThread.main(ActivityThread.java:7656) E/AndroidRuntime(10875): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(10875): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) E/AndroidRuntime(10875): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) E/AndroidRuntime(10875): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.nt4f04und.android_content_provider_example.MyAndroidContentProvider" on path: DexPathList[[zip file "/data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/base.apk"],nativeLibraryDirectories=[/data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/lib/x86, /data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/base.apk!/lib/x86, /system/lib, /system_ext/lib]] E/AndroidRuntime(10875): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) E/AndroidRuntime(10875): at java.lang.ClassLoader.loadClass(ClassLoader.java:379) E/AndroidRuntime(10875): at java.lang.ClassLoader.loadClass(ClassLoader.java:312) E/AndroidRuntime(10875): at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:147) E/AndroidRuntime(10875): at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:67) E/AndroidRuntime(10875): at android.app.ActivityThread.installProvider(ActivityThread.java:7228) E/AndroidRuntime(10875): ... 10 more Exited
Looks like it failed to found instance of class MyAndroidContentProvider.
The text was updated successfully, but these errors were encountered:
Hi @GlebUstimenkoWMG, I bet what was misleading/not clear from those instructions is that you also need to add a package directive at the top of the file where you defined MyAndroidContentProvider
I added an example of AndroidContentProvider into example and made the README instructrions more clear in #4 - can you take a look if that's more helpful now?
Hello,
I'm trying to add functionality of providing data to example. I'm following instructions in README and I did all steps.
When I'm trying to build it - it stacks and shows me an error.
Launching lib/main.dart on sdk gphone x86 in debug mode... ✓ Built build/app/outputs/flutter-apk/app-debug.apk. E/AndroidRuntime(10875): FATAL EXCEPTION: main E/AndroidRuntime(10875): Process: com.nt4f04und.android_content_provider_example, PID: 10875 E/AndroidRuntime(10875): java.lang.RuntimeException: Unable to get provider com.nt4f04und.android_content_provider_example.MyAndroidContentProvider: java.lang.ClassNotFoundException: Didn't find class "com.nt4f04und.android_content_provider_example.MyAndroidContentProvider" on path: DexPathList[[zip file "/data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/base.apk"],nativeLibraryDirectories=[/data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/lib/x86, /data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/base.apk!/lib/x86, /system/lib, /system_ext/lib]] E/AndroidRuntime(10875): at android.app.ActivityThread.installProvider(ActivityThread.java:7244) E/AndroidRuntime(10875): at android.app.ActivityThread.installContentProviders(ActivityThread.java:6780) E/AndroidRuntime(10875): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6697) E/AndroidRuntime(10875): at android.app.ActivityThread.access$1300(ActivityThread.java:237) E/AndroidRuntime(10875): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1913) E/AndroidRuntime(10875): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(10875): at android.os.Looper.loop(Looper.java:223) E/AndroidRuntime(10875): at android.app.ActivityThread.main(ActivityThread.java:7656) E/AndroidRuntime(10875): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(10875): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) E/AndroidRuntime(10875): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) E/AndroidRuntime(10875): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.nt4f04und.android_content_provider_example.MyAndroidContentProvider" on path: DexPathList[[zip file "/data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/base.apk"],nativeLibraryDirectories=[/data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/lib/x86, /data/app/~~qFgYI7_uF_VuZ7SP_YEthQ==/com.nt4f04und.android_content_provider_example-r0Iu4fuBXqpjGethMdzamA==/base.apk!/lib/x86, /system/lib, /system_ext/lib]] E/AndroidRuntime(10875): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) E/AndroidRuntime(10875): at java.lang.ClassLoader.loadClass(ClassLoader.java:379) E/AndroidRuntime(10875): at java.lang.ClassLoader.loadClass(ClassLoader.java:312) E/AndroidRuntime(10875): at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:147) E/AndroidRuntime(10875): at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:67) E/AndroidRuntime(10875): at android.app.ActivityThread.installProvider(ActivityThread.java:7228) E/AndroidRuntime(10875): ... 10 more Exited
Looks like it failed to found instance of class MyAndroidContentProvider.
The text was updated successfully, but these errors were encountered: