草庐IT

directory-tree

全部标签

android - flutter : Create directory on external storage path - path provider getExternalStorageDirectory()

我正在创建一个flutter应用程序,我想在其中下载图像并将其存储到外部存储(而不是文档目录),以便任何照片库应用程序都可以查看它。我正在使用以下代码创建一个目录vardir=awaitgetExternalStorageDirectory();if(!Directory("${dir.path}/myapp").existsSync()){Directory("${dir.path}/myapp").createSync(recursive:true);}它给了我以下错误:FileSystemException:Creationfailed,path='/storage/emulat

Git 错误,命令 git fetch Fatal : not a git repository (or any of the parent directories): . git in visual studio code

我必须从Flutterforweb开始,下载DARTsdk以及Visualstudio代码,我已经安装了Flutter插件是VS代码,但它显示错误Git错误,命令gitfetch致命:不是git存储库(或任何父目录):.git进程结束,退出代码为69我已经在Intellij中设置了git路径并在Windows中设置了桌面环境但是也有(Intellij),同样的错误即将到来Ps:我是新手,请详细建议我解决方案 最佳答案 您的工作副本似乎不是克隆的。通过以下命令克隆SDK:gitclonehttps://github.com/dart-

xcode_backend.sh : no such file or directory. 我需要创建这个文件吗?

我的Flutter项目无法在ios模拟器上运行并抛出此错误:Launchinglib/main.dartoniPhoneXʀindebugmode...RunningXcodebuild...Xcodebuilddone.7.6sFailedtobuildiOSappErroroutputfromXcodebuild:↳**BUILDFAILED**Xcode的输出:↳===BUILDTARGETRunnerOFPROJECTRunnerWITHCONFIGURATIONDebug===/bin/sh:/Users/pinercode/AndroidStudioProjects/bmi

android - 尝试安装 flutter 时如何修复 "Error: The Flutter directory is not a clone of the GitHub project."错误?

我很容易地下载并安装了git2.18,然后我继续下载flutter的zipSDK。一旦我这样做了,我将它提取到我的文档文件夹,然后我更新了控制面板中“环境变量”选项卡中的路径:ThePath在此之后,我通过在控制面板中输入flutter来确保一切正常,然后,我收到了这个错误:Theerror.我尝试通过输入错误告诉我输入的命令来修复它,之后,我仍然遇到错误。有人可以告诉我如何解决这个问题以及如何解决从错误中输入和输入命令的错误吗? 最佳答案 通过调用确保git在您的路径中。如果不是,请将其添加到您的路径中。如果这仍然不起作用,请转到

flutter - 错误 : unable to find directory entry in pubspec.

我正在尝试在我的flutter应用程序中添加来自外部包的Assets如此处所述:https://flutter.dev/docs/development/ui/assets-and-images#bundling-of-package-assets我得到这个Error:unabletofinddirectoryentryinpubspec.yaml/project/location//packages即使添加这个不能为null的简单条目也是如此。assets:-packages/ 最佳答案 https://flutter.dev/d

dart - 无法打开文件,路径 = 'file:///path'(操作系统错误 : No such file or directory, errno = 2)

您好,我正在尝试使用图像库减小从图库中选取的图像尺寸在尝试我遇到这样的错误时E/flutter(13796):[ERROR:lib/tonic/logging/dart_error.cc(16)]Unhandledexception:E/flutter(13796):FileSystemException:Cannotopenfile,path='file:///storage/emulated/0/WhatsApp/Media/WhatsApp%20Images/IMG-20171016-WA0020.jpg'(OSError:Nosuchfileordirectory,errno=

flutter - 如何修复 flutter 中的 "A dismissed Dismissible widget is still part of the tree."错误

我正在构建一个带有可关闭小部件、firebase和StreamBuilder的flutter应用程序,并收到以下错误“已关闭的可关闭小部件仍然是树的一部分。”请找到以下相同的代码。Expanded(child:StreamBuilder(stream:Firestore.instance.document('/users/User1/Trips/${widget.tripId}').collection('TropDocs').snapshots(),builder:(context,snapshot){if(!snapshot.hasData)returnconstText("Loa

ios - 无效的 `Podfile` 文件 : No such file or directory @ rb_sysopen - flutter_module⁩/. ios/Flutter/podhelper.rb

我在iOS应用程序中集成flutter模块,但在安装pod时出现此错误。下面是podfile中的代码。#Uncommentthenextlinetodefineaglobalplatformforyourproject#platform:ios,'9.0'target'FlutteriOSApp'do#Commentthenextlineifyoudon'twanttousedynamicframeworksuse_frameworks!#PodsforFlutteriOSApptarget'FlutteriOSAppTests'doinherit!:search_paths#Pods

makefile - 为 redis : cc: error: x86_64: No such file or directory 编译 hiredis 依赖项的奇怪失败

我正在尝试在Ubuntu16.04上编译Redis4.0.9(最新)。在redis目录中运行make时,我得到以下输出:cdsrc&&makeallmake[1]:Enteringdirectory'/user/HS104/m09170/redis/redis-4.0.9/src'CCMakefile.deprm-rfredis-serverredis-sentinelredis-cliredis-benchmarkredis-check-rdbredis-check-aof*.o*.gcda*.gcno*.gcovredis.infolcov-htmlMakefile.depdict

Merkle Tree 构建(C++实现)

MerkleTree构建(C++实现)区块链学习笔记(一)一、相关知识简要介绍MerkleTree,通常也被称作HashTree,顾名思义,就是存储hash值的一棵树。Merkle树的叶子是数据块(例如,文件或者文件的集合)的hash值。非叶节点是其对应子节点串联字符串的hash,下图为一个简单的Merkle树的结构。在比特币网络中,Merkle树被用来归纳一个区块中的所有交易,同时生成整个交易集合的数字指纹,且提供了一种校验区块是否存在某交易的高效途径。Hash是一个把任意长度的数据映射成固定长度数据的函数。例如,对于数据完整性校验,最简单的方法是对整个数据做Hash运算得到固定长度的Has