Flutter build IOS on root of my flutter app does not work - ios

Whenever I run this command from terminal: flutter build ios in the root of the project for my flutter app, I get back:
Cannot find "xcodebuild". Xcode 9.0 or greater is required to develop for iOS.
Encountered error while building for device.
I have the lastest Xcode (Version 10.0).
Flutter doctor:
[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-GB)
• Flutter version 0.8.2 at /Users/h/flutter
• Framework revision 5ab9e70727 (2 weeks ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/h/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• 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-1024-b01)
• All Android licenses accepted.
[!] iOS toolchain - develop for iOS devices
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 24.2.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] Connected devices (1 available)
• h iPhone • 77afb908fc6c490d3fca62cdde9a74ab4e45b4f0 • ios • iOS 11.4.1
! Doctor found issues in 1 category.
I assume the IOS issue is thrown as I am running Xcode from an external HD

The source of my problem was that Flutter could not find the latest installed version of Xcode.
To fix it, go to Xcode->preferences->locations->set value for command Line tools.

The suggestion from flutter doctor -v is quite clear
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Develope
You could try starting Xcode and agree when it asks to install missing components.
Id suggest you try the dev or master channel where support for Xcode 10 should have landed. Otherwise check this suggestion https://github.com/flutter/flutter/issues/20685#issuecomment-413524718

Run the following commands in your terminal:
1- cd your_project_path
2- sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
3- sudo xcodebuild -license
4- open -a Simulator
5- flutter run

If you Installed Xcode 10 manually via Apple Developer Download Center or Other Sources, then At first, RENAME your Xcode to the Version name you downloaded, like I downloaded the Xcode 10.1 version, so for me the renamed name would be Xcode10.1.app the .app extension is optional as it already has .app extension...
After that, paste this Command on your Terminal,
sudo xcode-select --switch /Applications/Xcode10.1.app/Contents/Developer
Note: the Xcode Version (i.e. Xcode10.1.app ) is Mendatory, if it's there good otherwise, Rename and add it, it's COMPLETELY SAFE and doesn't have any side effects

If you already have Xcode and this error randomly appears, just run these commands, as recommended by Flutter Doctor:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch

Install Xcode (get it from https://developer.apple.com/xcode/) if you don't have it yet.
Accept the Terms and Conditions.
Ensure Xcode app is in the /Applications directory (NOT /Users/{user}/Applications).
Point xcode-select to the Xcode app Developer directory using the following command:
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Reference: https://github.com/flutter/flutter/issues/6308

According to #matt-hamman
If your Xcode was updated to v14.1 and your Mac is running macOS 12.6, this will happen because the macOS SDK that xcodebuild is looking for happens to be MacOSX12.3.sdk while your OS has already been updated to 12.6.
Running xcode-select -p returns /Applications/Xcode.app/Contents/Developer, which is what Xcode 14 configured automatically. (Changing this via sudo xcode-select --switch /Library/Developer/CommandLineTools fixes git, but breaks other things in subtle ways (like some CocoaPods commands).)
To fix this issue, simply run:
sudo cp -R /Library/Developer/CommandLineTools/SDKs/MacOSX12* /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
Further details can be gleaned from the original answer here

To fix it, go to Xcode->preferences->locations->set value for command Line tools.

Related

Flutter iOS Error Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x203913130)

Hi am facing an issue while running flutter project in MacBook Air M1 chip Lap. Tried all possibilities couldn't find where is the exact problem.
All basic solutions like flutter clean, flutter pub get, pod deintegrate & install, flutter build ios, flutter run but still same issue. only on iOS simulator not deploying.
Any solution for this. Thanks in advance.
Error
Launching lib/main.dart on iPhone 13 in debug mode...
Running pod install... 5.3s
Running Xcode build...
Xcode build done. 104.1s
Failed to build iOS app
Error output from Xcode build:
↳
objc[25282]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x203913130) and
/Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103bc02c8). One of the two will be used. Which one is undefined.
objc[25282]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x203913180) and
/Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x103bc0318). One of the two will be used. Which one is undefined.
** BUILD FAILED **
flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-arm, locale
en-IN)
• Flutter version 2.8.1 at
/Users/macsystem/Documents/developer/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (7 weeks ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/macsystem/Library/Android/sdk
• Platform android-32, build-tools 32.0.0
• Java binary at: /Applications/Android
Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• 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 11.0.10+0-b96-7249189)
[✓] Connected device (2 available)
• iPhone 13 (mobile) • 05EC9698-3C26-44B9-8DB0-B53C7B6576F3 • ios
• com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
• Chrome (web) • chrome • web-javascript
• Google Chrome 97.0.4692.99
I've done complete clean and install by below steps and it helped me to solve,
Step 1:
flutter clean
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
rm ios/Podfile
Step 2:
cd ios
flutter pub get
pod cache clean --all
pod install
or (below for m1 chip incase above command thrown error in pod install)
#1 Install ffi
sudo arch -x86_64 gem install ffi
#2 Re-install dependencies
arch -x86_64 pod install
Step 3:
1. Open ios/Pods/Pods.xcodeproj in Xcode
2. Change the iOS Deployment info from 8.0 to 9.0
Step 4:
From xcode clean / build again / run. Hope this should work. Before please confirm whether all the build settings for iOS configured properly or not.
Note: In those above steps i faced one more issue from Firebase like "firebase import not found". Below added steps how i solved.
Step 1: open ios/Podfile
Check platform :ios, '10.0' is uncommented
Step 2:
add below code at end of Podfile
target 'CustomImageNotifications' do
use_frameworks!
pod 'Firebase/Analytics'
pod 'Firebase/Messaging'
end
Step 3: pod install & open xcode and clean / build.
Hoping this answer may helps.! thanks
I had luck with deleting the Flutter.podspec first and then running flutter clean. I am on a Mac Mini M1.
$ rm ios/Flutter/Flutter.podspec
$ flutter clean
Found here:
https://github.com/flutter/flutter/issues/70895#issuecomment-744734693
I got this resolved by running pod update via compatible mode
% flutter clean
% cd ios
% arch -x86_64 pod update
I had this same problem, however I had an additional error:
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 15.2.99. (in target 'AppAuth' from project 'Pods')
/Users/zack/Desktop/halseon/Merchant/halseon_merchants/ios/Pods/Pods.xcodeproj: warning: The iOS
Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target versions is 9.0 to 15.2.99. (in target 'GoogleSignIn' from project 'Pods')
To fix this:
Open ios/Pods/Pods.xcodeproj in Xcode
Change the iOS Deployment info from 8.0 to 9.0
iOS Deployment info (Image Reference)
In the console, run 'flutter run' and it should run the app in the iOS simulator.
I have been facing this same issue for some time now. the same setup is working nicely in a mac with intel chip. But i have even done a resetup of my system, m1 mac still throws the same error.
I was facing the same error after upgrading from 1.22 to 2.10 on a m1 chip, the project worked normal on android but not in ios, the only thing that work for me was:
Create a new project with the same name and make sure it runs.
Replace the whole ios folder from the older project with the newly created.
flutter clean and pod install on ios folder.
In ios/podfile uncomment platform :ios, '10.0'
Reconfigure if you have any previous settings on ios like firebase, icons...
Flutter run.
I think you could cherry pick the folder/files you need inside ios, but for me it was easiest to reconfigure the whole project.

Flutter Debug: Warning: CocoaPods not installed. Skipping pod install

my problem is this:
I want to connect my app to Firebase. I followed all the steps and did everything according to the instructions. When I tried to debug the app, the following error came up:
When I enter - flutter run - from the terminal, the following happens:
In flutter doctor -v the following comes out:
[✓] Flutter (Channel stable, 1.20.4, on macOS 11.2 20D64, locale de)
• Flutter version 1.20.4 at /Users/danielalakin/development/flutter
• Framework revision fba99f6cf9 (5 months ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK
version 30.0.2)
• Android SDK at /Users/danielalakin/Library/Android/sdk
• Platform android-30, build-tools 30.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_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.19.0
[✓] Connected device (1 available)
• iPhone 12 Pro Max (mobile) • C0991E0B-425B-46BD-9DEA-674181136D99 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
And I have the following versions and paths:
$ pod --version:
1.10.1
$ which pod:
/usr/local/bin/pod
$ which gem:
/Users/danielalakin/.rvm/rubies/ruby-3.0.0/bin/gem
$ which ruby:
/Users/danielalakin/.rvm/rubies/ruby-3.0.0/bin/ruby
Do you know how I can solve this problem?
PS: I work on Visual Studio Code and XCode. I use MacOS Big Sur Version 11.2.
I had this same error a number of times in the past, and once right after I upgraded to Flutter 2.0.1 just now. The solution for me was always to run (as previously suggested):
sudo gem install cocoapods then restart my IDE. I use Android Studio, but same should apply to VSCode as well.
The only command who work for me is this one :
brew install cocoapods
For me none of these was helpful,
The workaround was opening the Android studio using Terminal rather than GUI
open /Applications/Android\ Studio.app
After that, I can use GUI and there was no problem :)!
you can find more info here:
https://github.com/flutter/flutter-intellij/issues/4981#issuecomment-751443625
Restarting VSCode usually fixes the problem, but make sure to close it completely - Cmd+Q on macOS.
Another thing worth trying is cleaning XCode workspace, this can be done via flutter clean command.
You can try:
sudo gem install cocoapods
if you use Android Studio try restoring the cache in
file -> invalidate cache/restart
In my case I had to reinstall cocoa pods but additionally I had to reinstall my Visual Studio Code IDE.
I ran into this problem on Android Studio 4.1.3. Updating to Bumblebee 2021.1.1 Patch 3 solved it for me.
run this command :
sudo gem install ffi
if on running flutter doctor, it still says cocoapods not installed then run this command
sudo gem install cocoapods

Flutter: Runner.app/Info.plist does not exist. The Flutter "Thin Binary" build phase must run after "Copy Bundle Resources"

After upgrading flutter to flutter 1.22.4. I am getting the below error while building the Xcode Project.
Runner.app/Info.plist does not exist. The
Flutter "Thin Binary" build phase must run after "Copy Bundle
Resources".
Already tried the below options:
Flutter clean and run.
Removed derived data, clean project, and rebuild.
rm -Rf ios/Pods
rm ios/Podfile
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.podspec
rm -Rf ios/Flutter/Flutter.framework
flutter run
After trying all the above options still getting the same error.
Flutter doctor:
[✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B50 darwin-x64, locale en-US)
• Flutter version 1.22.4 at /Users/dhavalkansara/flutter 1.22.4
• Framework revision 1aafb3a8b9 (6 weeks ago), 2020-11-13 09:59:28 -0800
• Engine revision 2c956a31c0
• Dart version 2.10.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/dhavalkansara/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.9.1
[!] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] IntelliJ IDEA Community Edition (version 2020.2.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin installed
• Dart plugin version 202.8070
[✓] Connected device (1 available)
• iPhone 12 Pro Max (mobile) • 9D65DC5D-5DE8-485A-886F-FF26C0466391 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
! Doctor found issues in 1 category.
Project files structure:
Info.plist location in build setting:
Also raised an issue for the same on Flutter Github.
In Xcode Menu, choose "Product" > "Clean Build Folder".
Run the project again, it solved the issue.
Solution
Go to Runner(target app) > Build Phases > Run Script and update the run script with the one below.
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" build.
Also, verify that Runner(target app) > Build Phases > Thin Binary contains below scripts as suggested in XCode 11.4 Support by the flutter team.
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" embed
/bin/sh "$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh" thin
There are 2 steps to fix the issue after turn on your terminal window:
-You must navigate to your project folder that you already build with Flutter
-Then you will run as below :
$ flutter clean
$ flutter pub get
Then you build with the IOS simulator again. The issue will be solved.
Reason:
You have a clash between Xcode versions (old-new) in your app folder. You should clean the old one first and then rebuild it with the new one.
I went with #Dhaval Kansara's suggestion and the error was still there. But after a clean build the problem went away.
flutter clean in the project folder solved it for me

Flutter iOS build is stuck on "Running Xcode Build"

I recently got a mac to be able to test the iOS applications I made with Flutter/Dart. But when trying to transfer all my files to a Mac and try to test it, it gets on "Running Xcode Build."
I am importing 2 things in my pubspec.yaml file:
dependicies:
flutter:
sdk:
cupertino_icons: ^0.1.2
firebase_admob: ^0.9.0+10
In my podfile, which I was told to download on the google admobs documentation I have
pod 'Google-Mobile_Ads_SDK"
My Flutter Doctors reads:
[flutter] flutter doctor -v
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57, locale en-US)
• Flutter version 1.12.13+hotfix.5 at /Users/priscilla/Desktop/Temp/flutter
• Framework revision 27321ebbad (5 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/priscilla/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /usr/bin/java
✗ Could not determine java version
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.4
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
[✓] Connected device (1 available)
• iPhone 11 Pro Max • 754DF0BD-203E-4A0A-B785-E92D4B1D9C38 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)
! Doctor found issues in 2 categories.
And the change to my info.plist is: (The actual app ID is in my code, just didn't want to post it here)
<key>GADApplicationIdentifier</key>
<string>[APP_ID]</string>
If I were to create a new Flutter project from scratch, the given code runs perfectly fine. It is just when I try to import the files the project on my windows PC to my Mac.
I think a solution would be to create a new Flutter project and while creating import my files, but I am not sure how to do that. So at the moment, I created a new Flutter project, deleted all the files that comes loaded initially, then replaced them with my project files.
in my case, I use Firebase Firestore.
it doesn't stuck actually, but it takes waaaay too long to build in Xcode. don't forget to improve iOS build times as per the official documentation in here (don't forget to pick Dart Flutter as the language), and then scroll to find the optional section about how to Improve iOS & macOS build times by including the pre-compiled framework.
Currently, the Firestore SDK for iOS depends on code that can take
upwards of 5 minutes to build in Xcode. To reduce build times
significantly, you can use a pre-compiled version by adding this line
to the target 'Runner' do block in your Podfile:
please open that documentation to improve the build time, because the code maybe updated.
the code will be like this
target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => 'x.xx.x'
# ...
end
after adding that 1 line on your iOS podfile, don't forget to do flutter clean before rebuild the project. the second time you build the project it should be faster
NOTE:
if there is an error, then please ensure the tag in pod :tag => 'X.X.X' from the code in documentation is suitable with your cloud_firestore package version. sometimes the official documentation is not updated like the issue in here
I had removed the external devices specifically external monitors attached to Mac.
Then made the build.
My build time came from 10min on average to 0.5 to 2 min max.
iOS(Build) IPA building was taking around 14456.14 Sec i.e (more than 4 hrs) after updating to the below version it was reduced to 2143.3 Sec i.e. (less than 40 mins)
Changed From:
environment:
sdk: ">=2.7.0 <3.0.0"
Changes To:
environment:
sdk: '>=2.12.0 <3.0.0'
Change the whole project to Null-safety
Please follow https://dart.dev/null-safety/migration-guide
In My Experience, this first build indeed takes a long time - but after you run it once - the build time is reasonable.
If your build is stuck on Running Xcode build..., try the solution below:
cd Project Folder >
rm -R build
rm .dart_tool
rm .packages
rm -Rf ios/Pods
rm -Rf ios/.symlinks
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
pod cache clean --all
cd ios > pod deintegrate
pod setup
arch -x86_64 pod install
cd ..
flutter clean -v
flutter pub get
flutter clean && flutter run
If the above fails, clone the project again and flutter run.

Flutter Error: The current Flutter SDK version is 2.1.0-dev.0.0.flutter-be6309690f

I've just upgraded my flutter, after upgradation I am unable to run any flutter project on my Android Studio. I am getting this error message.
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.
pub get failed (1)
How can I downgrade Dart or how can I resolve this issue, I am running android studio on mac.
I've tried by changing flutter channels dev and master but it doesn't make a difference.
flutter doctor -v result:
[✓] Flutter (Channel dev, v0.6.0, on Mac OS X 10.13.4 17E202, locale en-IN)
• Flutter version 0.6.0 at /Users/pro/Downloads/flutter
• Framework revision 9299c02cf7 (5 days ago), 2018-08-16 00:35:12 +0200
• Engine revision e3687f70c7
• Dart version 2.1.0-dev.0.0.flutter-be6309690f
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/pro/Library/Android/sdk
• Android NDK location not configured (optional; useful for native
profiling support)
• Platform android-27, build-tools 27.0.3
• 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-
1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.0
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[!] Connected devices
! No devices available
flutter_built_redux package doesn't met the flutter dependency.
The error is caused by package not by flutter sdk.
see here
https://github.com/davidmarne/flutter_built_redux/blob/master/pubspec.yaml#L22
AND
you can post issue on flutter_built_redux package using this link
https://github.com/davidmarne/flutter_built_redux/issues/new?title=support%20for%20flutter%20sdk%202.1.0.dev&body=please%20upgrade%20the%20package%20for%20new%20flutter%20releases
Flutter includes a bundled Dart SDK (under its bin/cache directory) pinned to the same version used in the engine that we compile into your shipping iOS/Android app. As such, the only way to use Flutter with a different version of Dart is to use an older version of Flutter.
To do this, cd to the Flutter SDK directory. You can list the available versions by running git tag. To switch to a version, use git checkout. For example, to switch to v0.8.1 you’d run git checkout v0.8.1. When you’d like to switch back to the beta channel, run git checkout beta.
That said, generally I’d advise you to stick to beta and file an issue (or send a pull request) to the maintainer of any packages that haven’t yet been updated to Dart 2. You may also want to check the dependencies listed in your pubspec.yaml to see if there are newer versions available on pub.dartlang.org. It may just be a matter of updating your dependencies to a newer version.
I guess this is an quiver package dependency problem. Once in an update i had face same issue. That time i solve this by adding this lines to pubspec.yaml
dependency_overrides:
quiver: ^2.0.0+1
Flutter has the following channels, in increasing order of stability:
master
dev
beta
stable
Generally, I’d advise you to stick to the beta it works fine with all the packages.
It's not necessary but i think you should have to install Android Studio again with latest version.then add flutter and dart plugin there then Add Flutter SDK path in settings>Plugins>Flutter>Sdk-Path so locate your flutter sdk that you have installed in your PC may be located at C so add that path.And it may work.
And must have latest Flutter and Dart SDK installed.
You can download flutter SDK from here:
https://flutter.dev/docs/development/tools/sdk/releases

Resources