我正在尝试构建一个 IOS flutter 项目,但它一直抱怨 pod 的兼容版本。自过去两天以来,我已经尝试了很多线程,但无法解决该问题。不过我的安卓版本运行良好。
我也尝试删除podfile.lock、podfile、pod文件夹、Runner.xcworkspace,但没有任何效果。现在我不再有podfile.lock文件了。我的意思是podfile.lock没有被创建。
我使用的是 macOS Big Sur 版本 11.6。
MacBook Pro 2019
处理器:2.3 GHz 8 核英特尔酷睿 i9
在我的 Podfile 中:
platform :ios, '10.0'
Run Code Online (Sandbox Code Playgroud)
我还尝试了以下命令:
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
Run Code Online (Sandbox Code Playgroud)
当我运行pod install命令时,出现以下错误。
Analyzing dependencies
cloud_firestore: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
cloud_functions: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_analytics: Using Firebase SDK version '7.3.0' defined in 'firebase_core'
firebase_auth: …Run Code Online (Sandbox Code Playgroud) 我们将Alfresco用作存储库,并使用Apache CMIS api对其进行查询。
我们使用下面的代码来连接它。
parameter.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/api/-default-/cmis/versions/1.1/atom?maxItems=1000");
Run Code Online (Sandbox Code Playgroud)
查询露天...
OperationContext opCon = session.createOperationContext();
opCon.setLoadSecondaryTypeProperties(true);
opCon.setMaxItemsPerPage(1000);
session.query(queryStr);
Run Code Online (Sandbox Code Playgroud)
但是CMIS始终仅返回100条记录。但是,当我使用独立的CMIS工作台程序并提供上述URL以maxItems = 1000连接到Alfresco时,它将返回1000条记录。
当我使用JAVA CMIS api时,maxItems参数不起作用。
请帮忙。
谢谢
我正在尝试在Flutter应用程序中添加Google身份验证。但是我的Android Studio无法在FirebaseAuth类下找到signInWithGoogle方法。我的意思是说我写FirebaseAuth的时候。signInWithGoogle Android Studio抱怨说未为Firebase类定义方法signInWithGoogle。
我已经有Firebase.signInWithEmailAndPassword,并且工作正常。
我在pubspec.yaml firebase_auth中具有以下依赖项:^ 0.8.0 + 1
以下是我在课堂上的进口商品...
import 'package:firebase_auth/firebase_auth.dart';
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';
import 'package:my_project/auth.dart';
import 'package:my_project/register.dart';
import 'package:my_project/signin/button_list.dart';
import 'package:my_project/signin/button_view.dart';
import 'package:my_project/utils.dart';
class _LoginPageState extends State<LoginPage> {
final formKey = GlobalKey<FormState>();
// Google Sign In
final GoogleSignIn _googleSignIn = GoogleSignIn();
final FirebaseAuth _auth = FirebaseAuth.instance; // No errors so far
Run Code Online (Sandbox Code Playgroud)
另外,当我单击ctrl +空格以查看FirebaseAuth下的所有方法时,它根本没有显示signInWithGoogle方法。
请帮忙!提前致谢...
我正在进行的项目几乎完成了80%。我所有的项目都是在Material design上完成的。现在,我试图将Cupertino UI主题移至Android和IOS。
当我尝试从Material design迁移到Cupertino UI时,我面临很多问题,尤其是在以下方面。
- TextFormField:我无法在Cupertino设计中找到要与表单一起使用的TextFormField ...
- 验证程序:由于没有验证程序方法,如何验证CupertinoTextField
- App Drawer:现在我有App Drawer。当我转向针对iOS和Android的Cuprtino UI设计时,应该放弃App Drawer吗?
- 如何确定CupertinoButton的宽度?
- 当我尝试迁移到Cuprtio时,ListTitle引发异常。唯一的例外是“找不到材料祖先的特定小部件为:ListTitle”
另外,如何在CupertinoPageScaffold页面内部混合非Cuprtino小部件?
谢谢你的时间
我有一个移动应用程序,允许用户单击按钮即可启用/禁用 WiFi。
然而我今天注意到我的应用程序不再能够更改 WiFi 状态。它从几周前就开始工作了。我尝试调试它,但以下方法总是返回 false。
boolean result = wifiManager.setWifiEnabled(true);
Run Code Online (Sandbox Code Playgroud)
我正在三星 Galaxy Note 9 和 Android 10 上进行测试。
flutter ×3
alfresco ×1
android ×1
android-wifi ×1
cmis ×1
firebase ×1
flutter-ios ×1
ios ×1
java ×1
wifimanager ×1