When you install a new version of Android Studio Eel (electric) and when you are trying to setup for flutter app development in your android studio, you might get an error in your terminal.
Android Studio
Unable to find bundled Java version.
There are many solutions found for Windows or Mac OS on internet to resolve this error -- but i am specifically making this video to resolve this error for Linux user. I am using Ubuntu 22.10 kinetic
Solution:
Go to your Android Studio folder, find folder named jbr, copy all content folder, and if you don't have, create a folder named jre and copy in jre folder, all contents from jbr folder. Case close. Error solved.
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /home/agatarshu/Android/Sdk
• Platform android-33, build-tools 33.0.1
• ANDROID_HOME = /home/agatarshu/Android/Sdk
✗ No Java Development Kit (JDK) found; You must have the environment variable JAVA_HOME set and the java binary in your PATH. You can download the JDK from https://www.oracle.com/technetwork/java/javase/downloads/.
Unable to find bundled Java version. |
Launching lib/main.dart on CPH2211 in debug mode...
Running Gradle task 'assembleDebug'...
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
location of your Java installation.
Exception: Gradle task assembleDebug failed with exit code 1
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. |
- enumerate: and, first of all, also, another, furthermore, finally, in addition
- cause: because, so, due to, while, since, therefore
- comparison/ contrast: same, less, rather, while, yet, opposite, much as, either
- conclusion: as a result, hence, consequently, therefore, in conclusion
- fuzzy signals: seems like, maybe, probably, almost
- emphasis: most of all, most noteworthy, especially relevant
- enumerate: and, first of all, also, another, furthermore, finally, in addition
- conclusion: as a result, hence, consequently, therefore, in conclusion
- In order to guide your reader, you should use plenty transition words. Transition words (also known as signal words) give direction to your readers. These words show the reader that you are summarizing (and, too), comparing (less than, rather) or concluding something (thus, consequently, hence).
- conclusion: as a result, hence, consequently, therefore, in conclusion
Comentarii