当我按下构建时,这是我收到的错误:
Gradle sync failed: Could not create task ':flutter_plugin_android_lifecycle:generateDebugUnitTestConfig'.
this and base files have different roots: E:\flutter\peak_property\build\flutter_plugin_android_lifecycle and C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-2.0.5\android. (1 m 11 s 576 ms)
Run Code Online (Sandbox Code Playgroud)
这是我的应用程序级别构建 Gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode …Run Code Online (Sandbox Code Playgroud) 我想创建一个允许锁定设备中其他应用程序的应用程序。它就像育儿控制应用程序。如果父母锁定设备中的某些应用程序。孩子不会访问或删除它。对于与应用程序的任何交互,它都会要求输入密码。是否可以在 flutter 中构建这样的应用程序。如果是这样,插件是什么?我只需要一个想法。
在第一个屏幕截图中,集合用户中有许多文档。每个文档包含进一步的集合jobPost,并且该集合包含进一步的文档及其元数据。
我在这里想要的是转到集合用户的每个文档并进一步子集合jobPost并获取所有文档。假设首先应该转到集合users中的文档 1 ,在文档 1 中它应该获取子集合jobPost中的所有文档,然后它应该转到集合users的第二个文档,然后获取子集合jobPost中的所有文档,依此类推。该技术的查询或实现是什么