我以前在我的pubspec.yaml文件中有这个sqflite,但是最近我消除了依赖,因为我不会使用它,然后我在我的android设备和模拟器上运行这个应用程序--我发现了一个奇怪的错误,谷歌搜索了解决方案,似乎找不到任何帮助,也没有检查堆栈溢出。
到目前为止做了什么:
作为经验规则,我运行了eitherInvalidate来查看问题是否会得到解决,但是它没有工作,所以重启了Android
,这里是的错误
Launching lib/main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assemb
我的人渣不会被激怒,导致这个问题。我的项目是一个全新的项目,但在我的设备上运行该应用程序时遇到了问题(注::#:我确实在我的部门添加了多重索引,但它没有运行implementation 'com.android.support:multidex:2.0.1')
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// applicationI
我正在尝试开发一个应用程序。在这个应用程序中,我需要一个本地数据库。我选择sqflite数据库,但它非常慢。获取和插入数据需要很长时间。它是我的数据库助手类。正如您在代码中所看到的,我有很多行。如果你需要更多的信息,你可以评论。
import 'package:path/path.dart';
import 'package:sqflite/sqflite.dart' as sqf;
class DataBaseHelper {
static Future<sqf.Database> database() async {
final d
我正在编写一个flutter应用程序,并且正在尝试学习使用SQLite,根据文档,我在依赖项中添加了包,并运行命令来获取它。
它在编译时给出错误
dependencies:
flutter:
sdk: flutter
sqflite: ^1.1.5
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
我期望应用程序运行
我试图在发布模式下构建颤振应用程序。我试图在终端中执行flutter build appbundle,并得到以下错误。
FAILURE: Build failed with an exception.
出了什么问题:配置根项目'sqflite‘时出现了一个问题。找不到SDK位置。使用'/home/abdu/Downloads/flutter_linux_v1.12.13+hotfix.5-stable/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.3.0/android/local.properties'.环境
我只是简单地将image_picker:添加到我的受抚养人中,在我完成了酒吧升级之后,我就无法构建这个项目了。我收到以下错误消息:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':flutter_plugin_android_lifecycle'.
> Could not load compiled classes for build file 'C:\flutter\.pub-cache\hosted\pub