Treceți la conținutul principal

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

 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.
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.


Please set the JAVA_HOME variable in your environment to match the
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.
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.




in your


  • 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

Postări populare de pe acest blog

NFT sau Non-Fungible Token

 NFT -urile ce sunt? NFT -urile sau Non-Fungible Token source photo: NFT Market NFT înseamnă " Non-Fungible Token " și se referă la o formă de activ digital care utilizează tehnologia blockchain pentru a confirma unicitatea și proprietatea unui obiect digital. Un NFT poate fi orice obiect digital, cum ar fi o imagine, un videoclip, un joc sau chiar un tweet. Ceea ce face un NFT unic este faptul că fiecare obiect digital are o înregistrare specifică pe blockchain, care confirmă proprietatea unică a acelui obiect digital. Aceasta face ca obiectul digital să fie imposibil de replicat sau deținut de către alți utilizatori. Cum funcționează? NFT-urile funcționează pe baza blockchain-ului Ethereum , iar achiziționarea unui NFT necesită achiziționarea unui alt tip de criptomonedă numită Ether (ETH). Utilizarea NFT-urilor este variată, dar principalul avantaj al unui NFT este că permite posesorului să dețină o proprietate unică și autentică asupra unui obiect digital. Aceasta poate f...

Ce este optimizarea SEO

  Ce este optimizarea SEO Optimizarea SEO (Search Engine Optimization) este procesul prin care se îmbunătățește vizibilitatea și poziționarea site-ului web în rezultatele căutărilor organice din motoarele de căutare, precum Google sau Bing. Scopul principal al optimizării SEO este de a ajuta site-ul web să atragă cât mai mulți vizitatori relevanti, care pot fi convertiți în clienți sau susținători ai brandului. Optimizarea SEO se bazează pe o serie de tehnici și tactici, care se încadrează în mai multe categorii, precum optimizarea conținutului, optimizarea tehnică a site-ului web și optimizarea link-urilor externe. Toate aceste categorii sunt importante pentru a îmbunătăți poziționarea site-ului în rezultatele căutărilor. Optimizarea conținutului se concentrează pe crearea și publicarea de conținut valoros și relevant, care poate fi accesat ușor de către utilizatori și motoarele de căutare. Acest conținut trebuie să fie optimizat prin utilizarea cuvintelor cheie relevante și prin ...

How to install XAMPP in Ubuntu 22.04 LTS

How to install XAMPP in Ubuntu 22.04 LTS with [ Apache + MariaDB + PHP + Perl ] To install XAMPP with Apache, MariaDB, PHP, and Perl on Ubuntu 22.04 LTS, you can follow these steps:  How to install XAMPP in Ubuntu 22.04 LTS  1. Download XAMPP :   2. Visit the official XAMPP website and download the Linux version of XAMPP that includes Apache, MariaDB, PHP, and Perl. Save the file to your Downloads folder. Open the Terminal: Open the Terminal by pressing Ctrl+Alt+T on your keyboard or searching for "Terminal" in the applications menu.   3. Navigate to the Downloads folder: Type cd ~/Downloads in the terminal and press Enter to navigate to your Downloads folder.  4. Change the permissions of the downloaded file:  Type chmod +x xampp-linux-x64-8.2.0-0-installer.run and press Enter to make the downloaded file executable. Change the filename to match the version you downloaded.  5. Run the XAMPP installer:  Type sudo ./xampp-linux-x64-...