当升级flutter出现异常,应用程序无法再次运行时,我该如何解决?
In file included from
/Users/raitotec/developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.m:5:
/Users/raitotec/developer/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12
在Xcode中没有错误,没有警告。
医生:
医生摘要(要查看所有细节,请运行颤振医生-v):✓Flutter (频道主控版,v1.3.12,在Mac 10.13.6 17G65上,locale en-US)✓✓工具链-为安卓设备开发(Android 28.0.3版)✓✓工具链-为iOS设备(Xcode 10.1)开发✓Android (版本3.3)✓连接设备(可用1)
没有发现任何问题!
应用程序上没有图标,它不会打开pubspec:- name:*描述:一个新的颤音应用程序。
# The following defines the version and build number
在我的Mac上,当我尝试在pubspec.yaml文件中添加依赖项时,我收到一个错误消息: /Users/justindosaj/Desktop/Project Folder/testapp/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'firebase_admob' not found
@import firebase_admob;
~~~~~~~^~~~~~~~~~~~~~
1 error generated.
note: Using new b
我是新手,我尝试在我的应用程序中使用http依赖项,步骤如下:
1.导入pubspec.yaml文件
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
http: ^0.12.1
2)然后我运行,>颤栗酒吧获取,命令,
然后,我将导入到我的dar
嗨,我试图把一个图像作为应用程序的图标,但我没有得到它。有谁知道如何修复这个错误吗?谢谢。 name: unti
description: A new Flutter project.
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both
在模拟器上运行项目时,似乎一切正常。一旦我试图部署到一个实际的设备,我得到了以下错误:
iOS版本- 13.0
Xcode版本- 11.3.1
颤动版本- 1.12.13+hotfix.8
Building AOT snapshot in release mode (ios-release)...
Building App.framework for arm64...
Building App.framework for armv7...
Building AOT snapshot in release mode (ios-release)... 30.5s
Buil
我有一个颤动项目。首先,它必须在android上工作,而且它工作起来了!一切都很好。是时候让它在iOS上工作了,但是当我试图在iOS模拟器上启动这个项目时,我得到了以下错误:
Launching lib/main.dart on iPhone 12 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 13,1s
Failed to build iOS app
Error output from Xcode build:
↳
当我运行命令时,我得到了以下错误: pod -repo-update
以下是我正在犯的错误:
[!] CocoaPods could not find compatible versions for pod "FBSDKLoginKit":
In Podfile:
flutter_facebook_auth (from `.symlinks/plugins/flutter_facebook_auth/ios`) was resolved to 4.3.0, which depends on
FBSDKLoginKit (~> 13)
fl
我的应用程序昨天在工作,但今天,当我尝试运行pub get时,我会发现下面的错误,所以我做错了什么,尝试添加intl: 0.17.0-nullSafety2,但是它没有工作,谢谢提前。
编辑
将intl: 0.17.0-空安全性更改为intl:^0.16.1‘,不会改变任何事情。
误差
flutter pub get
Running "flutter pub get" in koygitsin...
Because every version of date_time_picker depends on in
我遇到了一个问题,我的项目在iOS上运行得很好,但是在Android上我得到了以下错误:
PlatformException (PlatformException(channel-error, Unable to establish connection on channel., null, null))
在这里完成堆栈:
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
W/FlutterActivityAndFragmentDelegate(19624): A splash screen was provided to Flutte
我是新手,我已经通过下面的链接通过我的应用程序实现了共享选项,但是这个包不起作用,我的颤振版本是0.5.1,如果我在pubspec.yaml中添加了这个包,我得到了这个错误,请帮助我。
name: share
description: A new Flutter project.
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS
我刚刚升级了我的flutter,升级后我无法在我的Android Studio上运行任何flutter项目。我收到了这个错误消息。
The current Dart SDK version is 2.1.0-dev.0.0.flutter-be6309690f.
Because buddy depends on flutter_built_redux 0.4.5 which requires SDK
version >=1.19.0 <2.0.0, version solving failed.
如何在flutter中创建集成测试和Widget测试之间的共享代码目录?可能会有相当多,因为他们现在使用与新官员相同的API
在Android原生中,您可以执行以下操作,以便使用Espresso API在本地非仪表化UI测试(引擎盖下的Roboelectric)和仪表化Espresso测试之间共享代码。当然还有各种各样的共享助手、mock等等。
如何在Flutter中实现类似的目标?
// This allows us to share classes between androidTest & test directories.
android.sourceSets {
我想从我的android模拟器中选择一个图像,然后将其上传到云存储。当我调用File image = await ImagePicker.pickImage(source: ImageSource.gallery);时,我得到的错误如下: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods) 我尝试将摄像头权限放在AndroidManifest.xml文件中: <manifest x
两个月前我的代码运行良好,现在出现了一个错误。错误代码在下面。我该怎么办?
Launching lib\main.dart on Android SDK built for x86 in debug mode...
lib\main.dart:1
/C:/src/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/firebase_app.dart:18:25: Error: Member not found: 'FirebaseAppPlatform.verifyExtends
尝试为flutter iOS设置facebook SDK,但一直收到此错误。
SDK适用于Andorid
已尝试清理代码并重新安装
/Users/abdi/Documents/project-philotes/ios/Pods/FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKLoginCompletion.m:223:49: error: property 'isActive' not found on object of type 'FBSDKApplicationDelegate *'
if
最近,我更新到了颤振2.5和最新的机器人工作室,并试图将我的颤振项目编译到android设备上。Android工作室将我抛出了下面的错误。如果我在终端中编写flutter run,那么编译到android设备上就没有问题。
我猜这肯定和安卓工作室有关。我试着降级到早期的android演播室版本,但问题依然存在。
我不知道这是什么插件,它似乎不像我使用的任何我的项目。
编辑:如果我将颤振的评级从2.5降到2.0,我的项目就会再次编译。所以问题就在2.5以内
Launching lib/main.dart on Android SDK built for x86 in debug mode...
如何在flutter中添加Sqflite依赖?
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.0
sqflite: any
english_words: "^3.1.0"
我一直试图在IOS设备上运行我的颤振代码。但是,我在Framework模块中遇到了一些关于非模块标题的错误。
日志:
While building module 'firebase_core' imported from
/Users/admin/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/fi
rebase_auth-0.20.0+1/ios/Classes/FLTFirebaseAuthPlugin.m:5:
In file included from <module-includes>:1:
In
我正在尝试使用azure devops为我的flutter应用程序创建一个构建管道。 我使用Alo Alo的azure扩展来实现flutter。flutter安装任务成功通过。Flutter构建挂起并在无限循环中抛出以下错误: stderr: Cloning into bare repository '/Users/runner/hostedtoolcache/Flutter/1.26.0-1.0.pre-dev/macos/flutter/.pub-cache/git/cache/app_alh_packages-384b2d81da8d887d80ab6f47deedece96
在颤振升级到最新的稳定版本后,我无法在android模拟器中进行调试。我得到以下错误:
Launching lib/main.dart on sdk gphone x86 in debug mode...
lib/main.dart:1 ../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_webservice-0.0.19/lib/src/utils.dart:61:27:错误:参数类型'String‘不能分配给参数类型'Uri’。
'Uri‘来自'dart:core’。返