小编Ja'*_*iya的帖子

如何修复我的 flutter 应用程序未使用 cloud firestore 构建的问题?

所以我是 flutter 和 firebase 的新手,我想向我的应用程序添加 firestore 功能,但是当我尝试使用 firestore 时出现错误

\n
\n

插件cloud_firestore需要更高的Android SDK版本。\xe2\x94\x82\n\xe2\x94\x82 通过将以下内容添加到文件 \xe2\x94\x82\n\xe2\x94\x82 C:\\Users\\Jaff\\StudioProjects\ 来修复此问题\priv_chat\\android\\app\\build.gradle:

\n
\n

修复SDK版本后,我又遇到了另一个错误,

\n
\n

C:\\src\\flutter.pub-cache\\hosted\\pub.dartlang.org\\cloud_firestore-3.4.0\\android\\src\\main\\java\\io\\flutter\\plugins \\firebase\\firestore\\streamhandler\\TransactionStreamHandler.java:13: 错误:找不到符号\nimport com.google.firebase.firestore.TransactionOptions;\n符号:TransactionOptions 类\n位置:包 com.google.firebase.firestore \nC:\\src\\flutter.pub-cache\\hosted\\pub.dartlang.org\\cloud_firestore-3.4.0\\android\\src\\main\\java\\io\\flutter\\ plugins\\firebase\\firestore\\streamhandler\\TransactionStreamHandler.java:66: 错误:包 TransactionOptions 不存在\nnew TransactionOptions.Builder().setMaxAttempts(maxAttempts).build(),

\n
\n
    \n
  • 出了什么问题:\n任务“:cloud_firestore:compileDebugJavaWithJavac”执行失败。
  • \n
\n
\n

编译失败;有关详细信息,请参阅编译器错误输出。

\n
\n

这就是我完全困惑的地方,我不知道如何解决这个问题,有人可以帮助我吗?

\n

java dart firebase flutter

4
推荐指数
1
解决办法
2032
查看次数

模块“numpy”没有属性行空间

我尝试了这段代码,但它一直给我同样的错误。numpy我确信目录中没有指定其他脚本。我尝试卸载并重新安装它,但没有任何效果。

import numpy as np; from numpy import pi
theta = np.linespace(-np.pi, np.pi, 100)
Run Code Online (Sandbox Code Playgroud)

当跑的时候,它就回来了module 'numpy' has no attribute 'linespace'。事实上,没有其他模块可以工作,知道为什么吗?

python numpy python-3.x

1
推荐指数
1
解决办法
6814
查看次数

标签 统计

dart ×1

firebase ×1

flutter ×1

java ×1

numpy ×1

python ×1

python-3.x ×1