-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android Studio BumbleBee 2021.1.1]: flutter doctor shows CocoaPods not installed. Skipping pod install
#97251
Comments
Where is Cocoapods installed? The most likely explanation for the difference is that it's in a location that's in your path in a terminal, but not for UI applications. |
@NathanMDT |
This happened after I upgraded to Android Studio Bumblebee (2021.1.1) on Mac (Apple Silicon). No issues with the previous Android Studio version before. |
The same issue with AS Bumblebee on a Mac with Intel CPU |
Is this I check where my cocoapods are installed? I have tried installing it through brew as well. It is also on AS Bumblebee on a Mac. The Mac recently had an update to 12.1. |
Please check below links and see if they help: |
While the debug & run buttons on Android Studio fail due to the above, 'flutter run' works |
To clarify - the problem happens only when a flutter command (Doctor or build) is triggered from AS Bumblebee menu. |
A workaround from Stackoverflow is to start Android studio from the terminal:
|
I've also tested workarounds in #97072 (comment) #93475 (comment) and bunch of command line workarounds, but nothing works. All conditions are same as above comments. I'm doing my job with (+ my mac os desktop app is working well with AS menu's play button && after flutter clean in that desktop project, launching with play button for mac os desktop doesn't work too, but flutter run -d macos works. It seems like flutter clean triggers the first pod-not-installed error) |
Getting this issue on my M1 Macbook after updating to Bumblebee. Normal terminal and terminal in Android Studio both find pod okay, and flutter doctor reports no problems. Running flutter from the command line works fine (in AS too), but pressing the run or debug buttons on the AS toolbar give the error. |
For now, download the previous preview version: Android Studio Bumblebee (2021.1.1) RC 1 |
I have same issue and this problem appear when I upgraded to the new Android version, only in Mac when I try to do: Build -> Flutter -> Build iOS it shows this warning:
More info here How to fix it? |
Crazy that this goes to production to millions of users... spent hours now.... boring and lame. For me, the fix was to launch But honestly, I'm so disappointed. You handled this like it's a game, this is my actual job, I do not open Android Studio to spend hours fixing dumb issues....... |
This is nuts. Been at a standstill now, thinking its a widespread bug and would be surely addressed quickly. So do we wait more or will this take weeks/months to address? Do you all think this solution would help any? |
Thanks for your patience. I understand that this behavior is occuring using the latest version of Android Studio, ie, https://developer.android.com/studio/releases#bumblebee and based on above reports, it occurs on Intel as well as on M1. |
CocoaPods not installed. Skipping pod install
@mark8044 You can double-press shift to do a global search search and type "Virtual Device Manager" to open the device manager and that works. Just not from the button on the top bar or the menu. |
@TatsuUkraine since launching from the terminal fixes the issue, it really sounds like the path is defined in a script that gets run when you create a new shell after having logged in. For the IDE to see it, the path must be defined when running the login script. And, as I mentioned, everything works for me, which strongly suggests there is no problem in the plugin. |
I was rebooting and relogin yesterday and today. I didn't change any env variables. Only one difference between now and then - ide and plugin versions. And it was the same on 2 different MacBooks Intel and m1 based |
Can confirm this works. Thank you very much for this tip! Thanks again |
Im probably not understanding what you mean about an Android module to flutter project, but my app is primarily used on Android, and flutter doctor -v shows I successfully have android SDK installed, but this bug is occurring for me For now what I'm doing to get things to work as pre-bumblebee are
This has become my daily routine to get things going, hopefully this helps others and hopefully things get back on track Thanks |
it doesn't fix anything for me either |
thanks a lot it does work for me . Almost wasted a day to find something meaningful . |
One solution if using zsh is to do
then log out and log back in. Now when I open Android Studio from the dock I can launch Flutter apps in the iOS simulator. |
@jperezr21 doesn't work for me what flutter doctor says when you launch it from package.yaml actions (top right corner)? If we talking about launching the app on the simulator, the fact that it started to work for you may not mean that you fixed the issue. It may simply mean that pod install wasn't invoked during app build. SInce Pod installation doesn't invoke each time you build the app, I think it invokes only when iOS deps are changing ro you building the app after |
@TatsuUkraine you're right, when running flutter doctor from
so ignore my comment above. |
Thanks a lot for the solution. |
so I just installed Android Studio Arctic Fox | 2020.3.1 Patch 4, and I can say that all works fine there |
[I meant to post this Sunday but forgot to click Comment. I did post it in Flutter plugin issues.] It turns out, I did not do a proper test (as I claimed in a previous comment). It is broken for me, too. For some reason Android Studio Bumblebee is not getting the PATH from the login shell. I found this: That's the default value of PATH before any shell script runs. Not very useful for us. (In case anyone needs to know how to find that, I used the Flutter plugin to create a Java project in Android Studio -- something you should not be able to do. Then I added a run config for an Application and used the environment variable tool to display the values.) If I look at the same dialog using Chipmunk (canary) it shows a proper PATH value. I don't know how to fix it yet, but I'm going to talk with my team about possibilities. |
Update: We planned to release a new version of the plugin on Feb 1 but have decided to hold that until we have a fix for this problem. We have a couple possible solutions, but neither is likely to happen overnight. So, for now, the work-arounds are to go back to Arctic Fox or launch from a terminal via: If you installed Android Studio from the JetBrains Toolbox the path will be different, something like: |
Update: The Android Studio team is already aware of the problem. I don't know when it will get fixed but I expect a patch soon-ish. There is another work-around, that you only have to do once.
|
This comment has been minimized.
This comment has been minimized.
this worked! thank you) |
This comment was marked as resolved.
This comment was marked as resolved.
This comment has been minimized.
This comment has been minimized.
There is a new version of Bumblebee available that fixes this issue. |
If the menu item |
I think it successfully fixes the CocoaPods issue, at least I'm not getting that anymore as far as I can tell. However the device manager still doesn't work? |
@mark8044 I don't know if it's related to bumblebee update or not, I was able to solve it by adding Android to the project structure in the settings |
For me it broke with the first Bumblebee upgrade With that said, when you say thanks! |
then click on the project name and Add button And select the Android option there I personally didn't change any input values and saved it as it is |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Thanks for the feedback! If your issue is related to the Flutter framework itself,
please open an issue at
github.com/flutter/flutter.
Steps to Reproduce
Debug flutter project
Flutter doctor run from command
Says CocoaPods not installed.
And YES, I have tried uninstalling and reinstalling cocoacpods dozens of times.
IT IS INSTALLED.
But Android Studio doesn't know that.
Version info
Please paste the output of running
flutter doctor -v
here (available from the commandline or from
Tools > Flutter > Flutter Doctor
). It will provide the version of theFlutter framework as well as of the IntelliJ plugin.
Very interesting that the output of the flutter doctor from the command line is different from that of Tools-> Flutter >Flutter Doctor
First, from running flutter doctor -v
no issues are found.
But if using the menu option:
The text was updated successfully, but these errors were encountered: