I keep getting this error, how can I fix this?
This is my flutter version.
My Flutter version is Flutter 2.6.0-11.0.pre.
This is my flutter doctor -v, seems like there is no problem.
[√] Flutter (Channel dev, 2.6.0-11.0.pre, on Microsoft Windows [Version 10.0.19043.1348], locale ja-JP)
• Flutter version 2.6.0-11.0.pre at C:\hobby-dev\comture-training\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4b330ddbed (8 weeks ago), 2021-09-16 17:29:58 -0700
• Engine revision 5b81c6d615
• Dart version 2.15.0 (build 2.15.0-116.0.dev)
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
[√] IntelliJ IDEA Community Edition (version 2020.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.1.2
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[√] VS Code (version 1.62.2)
• VS Code at C:\Users\bowti\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.28.0
[√] Connected device (2 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 95.0.4638.69
• Edge (web) • edge • web-javascript • Microsoft Edge 93.0.961.52
! Doctor found issues in 2 categories.
And this is my pubspec.yml.
cupertino_icons: ^1.0.2
google_fonts: ^2.1.0
http: ^0.13.0
http_parser: ^4.0.0
firebase_core: ^1.10.0
cloud_firestore: ^3.1.0
I AM callinig Firebase in my main function.
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(WebConsoleTop());
}
Any suggestions?
I googled a lot, and found out that newest version of cloud_firestore needs "await Firebase.initializeApp();", so I did it.
According to my Error log, it seems like the code "await Firebase.initializeApp();" is causing this error.
Any idea what is going on?
FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app).
at Object.u [as app] (https://www.gstatic.com/firebasejs/8.6.1/firebase-app.js:1:18836)
at Object.app$ [as app] (http://localhost:53770/packages/firebase_core_web/src/interop/core.dart.lib.js:31:101)
at initializeApp (http://localhost:53770/packages/firebase_core_web/firebase_core_web.dart.lib.js:101:25)
at initializeApp.next (<anonymous>)
at runBody (http://localhost:53770/dart_sdk.js:40064:34)
at Object._async [as async] (http://localhost:53770/dart_sdk.js:40095:7)
at firebase_core_web.FirebaseCoreWeb.new.initializeApp (http://localhost:53770/packages/firebase_core_web/firebase_core_web.dart.lib.js:81:20)
at initializeApp (http://localhost:53770/packages/firebase_core/firebase_core.dart.lib.js:100:59)
at initializeApp.next (<anonymous>)
Related
I have a Flutter web based game wherein I am trying to convert anonymous user to google registered user in Firebase. I recently upgraded Flutter from v2.3 to v3.3.8 and corresponding Firebase packages too. Here are the upgraded versions of Firebase packages
firebase_core: ^2.1.1
firebase_auth: ^4.1.1
google_sign_in: ^5.4.1
firebase_database: ^10.0.4
firebase_analytics: ^10.0.4
By default when the user hits the web page he is signed in anonymously into Firebase. When the user clicks on the Sign in With Google button, I call the below function:
Future<bool> signInWithGoogle({required BuildContext context}) async {
UserCredential? gCredential;
if (kIsWeb) {
GoogleAuthProvider authProvider = GoogleAuthProvider();
try {
debugPrint('Inside sign in with Google');
gCredential = await anonUser?.linkWithPopup(authProvider);
debugPrint('After linkWithPopup');
guser = gCredential?.user;
FirebaseAuth.instance.setPersistence(Persistence
.LOCAL); // in order to maintain session when user closes browser and opens again
if (guser != null) {
email = guser?.email ?? '';
_token = await guser?.getIdToken();
gname = guser?.displayName ?? '';
guid = guser?.uid ?? '';
gimage = guser?.photoURL ?? '';
_userId = guid;
googleSignIn = true;
}
debugPrint('***Google user is $guser and name is $gname');
} on FirebaseAuthException catch (error) {
switch (error.code) {
case "provider-already-linked":
debugPrint("The provider has already been linked to the user.");
break;
case "invalid-credential":
debugPrint("The provider's credential is not valid.");
break;
case "credential-already-in-use":
{
debugPrint('In credential in use ${error.credential}');
if (error.credential != null) {
gCredential = await FirebaseAuth.instance
.signInWithCredential(error.credential!);
debugPrint('After sign in with credential');
guser = gCredential.user;
}
FirebaseAuth.instance.setPersistence(Persistence
.LOCAL); // in order to maintain session when user closes browser and opens again
if (guser != null) {
await guser?.reload(); // reloading to fix firebase bug
guser = FirebaseAuth.instance.currentUser;
email = guser?.email ?? '';
_token = await guser?.getIdToken();
gname = guser?.displayName ?? '';
guid = guser?.uid ?? '';
gimage = guser?.photoURL ?? '';
_userId = guid;
googleSignIn = true;
await readStats();
}
debugPrint(
"The account corresponding to the credential already exists, "
"or is already linked to a Firebase User $guser and ${anonUser?.uid}. ${error.email} ${error.credential} ${guser?.displayName}");
}
}
}
When I sign in, I am using an email that has already been used before so it is associated with some previous anonymous user in Firebase. Hence it goes into the credential-already-in-use exception. Here are the logs - you can see error.credential is coming null.
Inside sign in with Google
In credential in use null
The account corresponding to the credential already exists, or is already linked to a Firebase User null and N6ANc27jqGbFfp7zgPX9WmLktpp2. null null null
This same code was working perfectly fine before I upgraded. My earlier version of firebase packages was this:
firebase_core: 1.12.0
firebase_auth: ^3.3.6
With those packages, I was getting the error.credential and I could switch the user by signing in with the new credential.
This is the output of my flutter doctor -v:
[√] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 10.0.19045.2251], locale en-IN)
• Flutter version 3.3.8 on channel stable at D:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 52b3dc25f6 (5 days ago), 2022-11-09 12:09:26 +0800
• Engine revision 857bd6b74c
• Dart version 2.18.4
• DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at C:\Users\Radha\AppData\Local\Android\sdk
• Platform android-31, build-tools 30.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.6)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.0.32126.317
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 4.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code (version 1.73.1)
• VS Code at C:\Users\Radha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.24.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.2251]
• Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.107
• Edge (web) • edge • web-javascript • Microsoft Edge 107.0.1418.42
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
Appreciate if anyone can share pointers to help with this issue.
I am newbie in app development and follow the tutorial as below:
Firebase project setup & create database in firestore :
https://www.youtube.com/watch?v=1NO-F6fhQow&list=PLgGjX33Qsw-Ha_8ks9im86sLIihimuYrr&index=13
https://www.youtube.com/watch?v=ctOcXmUZOZo
The debug got zero problem. But the message below is shown when running the app :
Because firebase_core >=1.10.6 depends on firebase_core_web ^1.5.3 which depends on flutter_web_plugins any from sdk, firebase_core >=1.10.6 requires flutter_web_plugins any from sdk.
So, because flutter_web_plugins from sdk doesn't exist (could not find package flutter_web_plugins in the Flutter SDK) and googlemap depends on firebase_core ^1.11.0, version solving failed.
pub get failed (server unavailable) -- attempting retry 6 in 32 seconds...
What I had tried for troubleshooting server unavailable:
- built VPN
- check network connectivity
- ping dart.dev.com
And also, here is the current dependencies :
dependencies:
flutter:
sdk: flutter
google_maps_flutter: ^2.1.1
firebase_core: ^1.11.0
cloud_firestore:
cupertino_icons: ^1.0.2
However, the error remains, how to interpret the error message correctly ?
I am new to flutter, so I am working on firebase authentication and have created a flutter firebase project but I am getting package errors when I run flutter packages get.
My Output looks like this
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS E:\new proj\firebase auth\firebase_auth_demo_flutter-master> flutter packages upgrade
Resolving dependencies...
Because every version of flutter_driver from sdk depends on test_api 0.3.0 and mockito >=4.1.2 <=5.0.0-nullsafety.7 depends on test_api ^0.2.19-nullsafety, flutter_driver from sdk is incompatible with mockito >=4.1.2 <=5.0.0-nullsafety.7.
So, because firebase_auth_demo_flutter depends on both flutter_driver any from sdk and mockito ^4.1.2, version solving failed.
pub finished with exit code 1
PS E:\new proj\firebase auth\firebase_auth_demo_flutter-master>
In my project my pubspec.yaml file looks like this
version: 0.2.0
environment:
sdk: ">=2.11.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
apple_sign_in: ^0.1.0
cupertino_icons: ^1.0.0
firebase_auth: ^0.18.4+1
firebase_core: ^0.5.3
firebase_dynamic_links: ^0.6.3
flutter_login_facebook: ^0.4.0+1
flutter_secure_storage: ^3.3.5
google_sign_in: ^4.5.6
package_info: ^0.4.3+2
provider: ^4.3.2+3
random_string: ^2.1.0
rxdart: ^0.25.0
dev_dependencies:
flutter_driver:
sdk: flutter
flutter_test:
sdk: flutter
mockito: ^4.1.2
test: any
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
# The following section is specific to Flutter.
The error message starting with "Because every version..." is actually very clear.
You need to increase the version of mockito that you use. You need to use a mockito version that depends on test_api 0.3.0 just like the Flutter SDK you're using does.
When two packages A and B depend on a single package C, there needs to be a version of C that both A and B can work with.
Adding cloud_firestore: ^0.12.10 dependency in my flutter project gives errors.
These are the dependencies my project has:
dependencies:
url_launcher: ^5.0.0
flutter_launcher_icons: ^0.7.4
cloud_firestore: ^0.12.10
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.2
firebase_messaging: ^5.1.6
dev_dependencies:
flutter_test:
sdk: flutter
flutter_icons:
android: "launcher_icon"
ios: true
image_path: "assets/launcher_icon/LauncherIcon.png"
I tried to use different cloud_firestore versions, but none of them worked.
This is the output of flutter run command in the terminal:
Launching lib\main.dart on SM A505F in debug mode...
Initializing gradle... 1.1s
Resolving dependencies... 16.3s
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
FAILURE: Build failed with an exception.
* What went wrong:
Failed to notify dependency resolution listener.
> The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[17.2.1,17.2.1]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
> The library com.google.firebase:firebase-iid is being requested by various other libraries at [[20.0.0,20.0.0]], but resolves to 17.1.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 11s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 11.8s
Gradle task assembleDebug failed with exit code 1
This is the output of flutter doctor -v:
[√] Flutter (Channel stable, v1.9.1+hotfix.6, on Microsoft Windows [Version 10.0.18362.418], locale en-IN)
• Flutter version 1.9.1+hotfix.6 at D:\flutter_windows_v1.9.1+hotfix.2-stable\flutter
• Framework revision 68587a0916 (8 weeks ago), 2019-09-13 19:46:58 -0700
• Engine revision b863200c37
• Dart version 2.5.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\aditl\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 41.0.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.40.0)
• VS Code at C:\Users\aditl\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.6.0
[√] Connected device (1 available)
• SM A505F • RZ8M60LFVPP • android-arm64 • Android 9 (API 28)
! Doctor found issues in 1 category.
from you log errors
* What went wrong:
Failed to notify dependency resolution listener.
> The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[17.2.1,17.2.1]], but resolves to 16.5.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
> The library com.google.firebase:firebase-iid is being requested by various other libraries at [[20.0.0,20.0.0]], but resolves to 17.1.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
you need to update firebase core to 17.2.1 if you have added it to your gradle files,
Although this is an issue with your project not being androidX enabled
see how to migrate to androidX
update
Cannot fit requested classes in a single dex file (# methods: 81876 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
The number of method references in a .dex file cannot exceed 64K.
Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html
you need to enable multidex for your application
as follows
android {
defaultConfig {
...
minSdkVersion 16
targetSdkVersion 28
multiDexEnabled true
}
...
}
dependencies {
implementation "androidx.multidex:multidex:2.0.0"
}
Add this line of code in your android/build.gradle file in the bottom. I think you missed the step of adding the services plugin.
Try this
and put cloud_firestore: ^0.12.10 dependency below firebase_messaging dependency.
Code:
apply plugin: 'com.google.gms.google-services'
Add this line inside your target 'Runner' do block in your Podfile, e.g.:
# ...
target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.9.0'
# ...
end
This concerns firebase-auth plugin for flutter.
I have the same code running on two mac computers.
I just did a fresh install on the latter, and get a build error on FirebaseAuthPlugin.m : Incompatible block pointer
/Users/sergebesnard/Development/flutter/.pub-cache/hosted/pub.dartlang.org/
firebase_auth-0.5.9/ios/Classes/FirebaseAuthPlugin.m:69:53:
Incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'FIRAuthDataResultCallback _Nullable' (aka 'void (^)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)')
On my laptop, the code builds smoothly, the only difference being the beta version, which is 0.3.1 and that the android toolchain is installed.
On the iMac (failing) :
flutter doctor -v
[✓] Flutter (Channel beta, v0.3.2, on Mac OS X 10.13.4 17E202, locale fr-BE)
• Flutter version 0.3.2 at /Users/sergebesnard/Development/flutter
• Framework revision 44b7e7d3f4 (3 weeks ago), 2018-04-20 01:02:44 -0700
• Engine revision 09d05a3891
• Dart version 2.0.0-dev.48.0.flutter-fe606f890b
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME to that location.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.3, Build version 9E145
• ios-deploy 1.9.2
• CocoaPods version 1.5.0
[✗] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed instructions).
[✓] VS Code (version 1.23.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.12.1
[✓] Connected devices (1 available)
• iPhone X • 780C4B10-21A6-41E0-9A05-A6175FC20FA0 • ios • iOS 11.3 (simulator)
! Doctor found issues in 2 categories.
on the macbook (working):
[✓] Flutter (Channel beta, v0.3.1, on Mac OS X 10.13.4 17E199, locale fr-BE)
• Flutter version 0.3.1 at /Users/sergebesnard/flutter
• Framework revision 12bbaba9ae (3 weeks ago), 2018-04-19 23:36:15 -0700
• Engine revision 09d05a3891
• Dart version 2.0.0-dev.48.0.flutter-fe606f890b
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
• Android SDK at /Users/sergebesnard/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.3, Build version 9E145
• ios-deploy 1.9.2
• CocoaPods version 1.5.0
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 20.0.1
• Dart plugin version 171.4424
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 23.2.2
• Dart plugin version 173.4700
[✓] VS Code (version 1.23.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.12.0
[✓] Connected devices (1 available)
• iPhone X • 03F5FA6E-7332-46A2-9BF8-A1CACE723CC8 • ios • iOS 11.3 (simulator)
• No issues found!
the Podfile is the same :
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
def parse_KV_file(file, separator='=')
file_abs_path = File.expand_path(file)
if !File.exists? file_abs_path
return [];
end
pods_ary = []
skip_line_start_symbols = ["#", "/"]
File.foreach(file_abs_path) { |line|
next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
plugin = line.split(pattern=separator)
if plugin.length == 2
podname = plugin[0].strip()
path = plugin[1].strip()
podpath = File.expand_path("#{path}", file_abs_path)
pods_ary.push({:name => podname, :path => podpath});
else
puts "Invalid plugin specification: #{line}"
end
}
return pods_ary
end
target 'Runner' do
use_frameworks!
# Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
# referring to absolute paths on developers' machines.
system('rm -rf Pods/.symlinks')
system('mkdir -p Pods/.symlinks/plugins')
# Flutter Pods
generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
if generated_xcode_build_settings.empty?
puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
end
generated_xcode_build_settings.map { |p|
if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
symlink = File.join('Pods', '.symlinks', 'flutter')
File.symlink(File.dirname(p[:path]), symlink)
pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
end
}
# Plugin Pods
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.map { |p|
symlink = File.join('Pods', '.symlinks', 'plugins', p[:name])
File.symlink(p[:path], symlink)
pod p[:name], :path => File.join(symlink, 'ios')
}
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
end
end
end
The pod version is 1.5.0 in both cases.
Pubspec.yaml :
dependencies:
flutter:
sdk: flutter
google_sign_in: "^3.0.2"
firebase_analytics: "^0.3.3"
firebase_auth: "^0.5.5"
firebase_database: "^0.4.6"
firebase_storage: "^0.2.6"
cloud_firestore: "^0.6.3"
#firebase_messaging: "^0.2.4" removed due to bug in android
simple_permissions: "^0.1.2"
diff_match_patch : 0.2.1
path_provider: "^0.4.0"
intl: "^0.15.6"
#timeago: 1.2.0
#side_header_list_view: "^0.0.2"
uuid: "^1.0.0"
#location: "^1.2.0" causes a problem in android
robyn_nlp:
path: ../robyn-nlp
async_message_queue_controller:
path: ../AsyncMessageQueueProcessor
oscillo_wave_painter:
path: ../oscillo-wave-painter
#medcorder_audio:
# path: ../flutter_audio # super important, because the original doesn't work
voice_recorder:
path: ../voice_recorder
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.0
dev_dependencies:
flutter_test:
sdk: flutter
# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec
# The following section is specific to Flutter.
flutter:
# The following line ensures that the Material Icons font is
# included with your application, so that you can use the icons in
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
assets:
- assets/logo-solo.png
- assets/banner.png
I frankly would prefer not to test upgrading the flutter sdk on my working setup, I still need to work on that stuff...
I don't know if this is helpful, but during setup, I ran into a problem on the installation of flutter on XCODE, because XCODE was not fully setup when at the time.
flutter doctor did ask me to install the package six, and had problem because of a conflict in python#2 versions, so I force uninstalled via brew python#2 and reinstalled it, then could install via `pip install six``
If this is the cause, I will have to reinstall XCODE & Flutter. Hopefully not the case.
Thanks
Serge
update the repository of cocoapods.
pod repo update
Then deletes Podfile, Podfile.lock, Pos directory, .flutter-plugins, .packages, pubspec.lock
Here my tip. Just upgrade cocoapods to 1.5.3+. I install cocoapods by brew.
Check version of cocoapods
pod --version
Upgrade
brew upgrade cocoapods
Link if you get a error conflict
brew link --overwrite cocoapods
Pod install again
pod install