Flutter doctor says Android Studio ✗ Unable to find bundled Java version
I then downloaded and installed JDK from here for mac M1, https://www.oracle.com/java/technologies/downloads/#jdk17-mac , arm version.
I got jdk path with java -version and got java version "17.0.1".
Got the path with /usr/libexec/java_home -V , /Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home
opened .zhsrc in a text editor and added the following
export PATH="$PATH:/Users/prettygirl/FlutterSDK/flutter/bin"
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-17.0.1.jdk/Contents/Home"
then ran the flutter doctor again, and it still shows the error mentioned above.
Computer: M1 Mac-mini (silicon) macOS monterey,
Android Studio Chipmunk | 2021.2.1 Canary 4
I encountered the same problem on my Mac (also an M1).
I just downloaded the JDK from the java website itself and everything was ok after that.
Related
I was trying to install flutter, I did all the procedure for android studio but now the "Windows Version (Unable to confirm if installed Windows version is 10 or greater)" issue appear, anybody knows how to solve this? I have W10.
i found this answer in another forum
i have the same problem but my app works just fine
try this :
flutter clean
....
flutter downgrade 1.6.3 or (1.6.6)
...
flutter channel stable
...
flutter upgrade
..
Then the editor will ask to do flutter packages get
and finally we do flutter run .
You can run the project as debug from the home file (optional).
to know if flutter is installed
run the flutter command in the cmd (Command line) :
flutter
and if you want to know the version:
flutter -v
and if you have installed the required tools to use flutter without problem :
flutter doctor
Iam using Mac and upgraded to Android studio "Bumblebee", only in Mac when I try to do: Build -> Flutter -> Build iOS it shows this warning:
Warning: CocoaPods not installed. Skipping pod install. CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. CocoaPods not installed or not in valid state. Process finished with exit code 1
But I did already this
gem install cocoapods Successfully installed cocoapods-1.11.2 Parsing documentation for cocoapods-1.11.2 Done installing documentation for cocoapods after 1 seconds 1 gem installed
When I do sudo gem install cocoapods I got:
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /usr/bin directory.
I did Invalidate Caches and pod install also, but it still shows same warning.
Flutter doctor
[✓] Flutter (Channel stable, 2.8.1, on macOS 11.0.1 20B29 darwin-x64, locale en-GB)
• Flutter version 2.8.1 at /Users/test/Downloads/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (6 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 30.0.3)
• Android SDK at /Users/test/Library/Android/sdk
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[!] Xcode - develop for iOS and macOS (Xcode 12.5.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
! Flutter recommends a minimum Xcode version of 13.0.0.
Download the latest version or update via the Mac App Store.
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2021.1)
• Android Studio at /Users/test/Desktop/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.11+0-b60-7590822)
How to fix it?
Regards
close android studio
open terminal -> run open /Applications/Android\ Studio.app
try again ...
problem comes with new android studio version bumblebee
android studio started from macs dock is not able to reach the environment variables when its started from mac os dock
UPDATE:
run chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv
now it works from dock
Just run this at terminal: run chmod +x /Applications/Android\ Studio.app/Contents/bin/printenv
The issue appears to be Cocopods not being installed with Big Sur or above. I found upgrading Ruby to a newer version and then installing Cocopods helped my coworker. Please follow the steps in the solution for installing Cocopods: Unable to install cocoa pods
It's now fixed with the latest patch on BumbleBee. Check this blog post.
i'm really new to NativeScript, i'm trying to install it properly, but I 've got an issue with javac , displayed with 'tns doctor' :
Javac version 14 is not supported. You have to install at least 1.8.0 and below 13.0.0.
and I ve already download and install JDK 8 manually but it does'nt detect it.
I've tried with "Configure for Local Guide" and I've got another issue like that :
Error: Cask 'adoptopenjdk8' is unavailable: No Cask with this name exists.
WARNING: Open JDK 8 not installed
Any idea ? Thanks
I'm runnning on IOS Catalina
try uninstalling your current version of java by
https://www.java.com/en/download/help/mac_uninstall_java.xml
and then installing java 8.
and as a newbee it would be great if you set up android studio first for emulator purposes..
I have a problem with latest version of Cytoscape 3.8.0 It doesnt start. I can see only logo and than nothing. Computer is running OSX 10.13.6. I am using successfully version Cytoscape 3.7.2 but I want to upgrade. When I run script mac.sh I got following:
Target Cytoscape version: 3.8.0
Your shell is bash
Compatible OS version found: 10.13
Pass: OS Version = 10.13.6
Pass: Following Oracle JDK found:
/Library/Java/JavaVirtualMachines/jdk-11.0.7.jdk
Fail: Java is not reachable.
Try re-installing Java 11.
I can confirm that java is in place /Library/Java/JavaVirtualMachines and versions jdk-11.0.7.jdk jdk-12.0.2.jdk jdk-14.0.1.jdk
I guess that version 37 and 38 work with java 11? I have reinstalled java 11 with same results as before. Version 38 doesnt start. When I try to start version 38 from terminal with cytoscape.sh I got long error message which starts with:
Unable to find any JVMs matching version "1.8".
karaf.base: /Applications/Cytoscape_v3.8.0/framework
JAVA_HOME: null
ERROR: Error parsing system bundle export statement: org.osgi.dto;version="1.0",org.osgi.resource;version="1.0",org.osgi.resource.dto;version="1.0...
I can paste whole error message if needed.
Any idea what should i do? Thanx.
Cytoscape 3.7.x requires Java 8. Cytoscape 3.8.0 requires Java 11. It looks like your java home is incorrect. If you do:
/usr/libexec/java_home
it should point to your java 11 installation. On my mac it says:
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Note that the "/Contents/Home" is important. To set your actual JAVA_HOME, do
export JAVA_HOME=`/usr/libexec/java_home -v 11`
I had this same problem. What Scooter Morris mentioned is correct, but I had to follow an additional link on stack overflow to get it fixed.
This is exactly what I did:
In my case I had to run:/usr/libexec/java_home -V to see the Java Virtual Machines I have installed and specify the V 11 using:
export JAVA_HOME=`/usr/libexec/java_home -v 11.0.7`
Then running the ./mac.sh command tells me everything checks out and Cytoscape can finnaly run :)
Edit: I should add that I can only run cytoscape by launching it from the terminal via:
cd /Applications/Cytoscape_v3.8.0
./cytoscape.sh
Clicking the app icon only results in the app crashing on load but it appears to work fine by launching it from the script. I don't have this issue on Mac OS 10.14 so maybe its a software version issue or some background app in my computer is getting in the way of launching the app normally.
On OSX, when running an android gradle build it gives me the following:
android-sdk-macosx/cmake/3.6.3155560/bin/cmake: cannot execute binary file
I've tried
chmod +x,
reinstalling the android sdk build tools
googling
OSX 10.11.6 Gradle 2.14.1 Android SDK 23.0.2
Its a Superpowered(.com) Android project
After upgrading to Android Studio 2.2, it installed cmake and it now works correctly. Its unclear exactly why as it seems to be the same exact version of cmake.
Part of the problem was that I was actually using the latest stable version of IntelliJ which is still using Android Studio <2.2 level.