所以我是 flutter 和 firebase 的新手,我想向我的应用程序添加 firestore 功能,但是当我尝试使用 firestore 时出现错误
\n\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
修复SDK版本后,我又遇到了另一个错误,
\n\n\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: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
这就是我完全困惑的地方,我不知道如何解决这个问题,有人可以帮助我吗?
\n我尝试了这段代码,但它一直给我同样的错误。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'。事实上,没有其他模块可以工作,知道为什么吗?