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

No implementation found for method getDatabasesPath #866

Open
1 of 2 tasks
Isra0210 opened this issue Aug 8, 2023 · 3 comments
Open
1 of 2 tasks

No implementation found for method getDatabasesPath #866

Isra0210 opened this issue Aug 8, 2023 · 3 comments

Comments

@Isra0210
Copy link

Isra0210 commented Aug 8, 2023

🐛 Bug Report

I am trying to use this code

CachedNetworkImage(
imageUrl: "http://via.placeholder.com/200x150",
imageBuilder: (context, imageProvider) => Container(
decoration: BoxDecoration(
image: DecorationImage(
image: imageProvider,
fit: BoxFit.cover,
colorFilter:
ColorFilter.mode(Colors.red, BlendMode.colorBurn)),
),
),
placeholder: (context, url) => CircularProgressIndicator(),
errorWidget: (context, url, error) => Icon(Icons.error),
),

but I am getting this error
erro

E/flutter ( 8610): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getDatabasesPath on channel com.tekartik.sqflite)
E/flutter ( 8610): #0 MethodChannel._invokeMethod
platform_channel.dart:308
E/flutter ( 8610):
E/flutter ( 8610): #1 invokeMethod
sqflite_impl.dart:16
E/flutter ( 8610):
E/flutter ( 8610): #2 wrapDatabaseException
exception_impl.dart:7
E/flutter ( 8610):
E/flutter ( 8610): #3 SqfliteDatabaseFactoryMixin.getDatabasesPath
factory_mixin.dart:177
E/flutter ( 8610):

Expected behavior

Reproduction steps

Configuration

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.10.6, on Microsoft Windows [versÆo 10.0.22621.1992], locale en-US)
[✓] Windows Version (Installed version of Windows is version 10 or higher)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.11.27)
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.81.0)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

Version:
Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f468f3366c (4 weeks ago) • 2023-07-12 15:19:05 -0700
Engine • revision cdbeda788a
Tools • Dart 3.0.6 • DevTools 2.23.1

Platform:

  • 📱 iOS
  • 🤖 Android
@renefloor
Copy link
Contributor

You're trying to run it on an Android device or as a Windows app?

@Isra0210
Copy link
Author

Isra0210 commented Oct 2, 2023

You're trying to run it on an Android device or as a Windows app?

Android device

@thetabrus
Copy link

It's been a while, so you've probably already discovered how to fix it, but just in case, I will say what worked for me. My similar code didn't work right away when I installed flutter_cached_network_image while already debugging. All I needed to do was stop debugging and build the app again. I guess that otherwise the dependency may not have the necessary permissions to handle cache properly.

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

3 participants