![]() ![]() With the necessary Android SDK components installed, you can use the SetupAndroid script to download and install the appropriate version of Android NDK. Each operating system requires a different step to finalize installation.Ĭlose your terminal window and reopen it.Įither close your terminal window and reopen it, or log out and log back in. Finalize the Android Studio Installation on Your OSĪfter completing all of the above steps, you need to finalize your installation to make sure your environment is fully set up before proceeding. Save the script and close your text editor.Ĥ. Set SDKMANAGER=%STUDIO_SDK_PATH%\cmdline-tools\8.0\bin\sdkmanager.bat Set SDKMANAGER=%STUDIO_SDK_PATH%\cmdline-tools\latest\bin\sdkmanager.bat In SetupAndroid.bat this line reads as follows: Locate the line specifying the variable SDKMANAGERPATH. Android toolchain - develop for Android devices (Android SDK version 33.0.Open your operating system's SetupAndroid script in a text editor. Then flutter doctorĪnd this is my console output: Doctor summary (to see all details, run flutter doctor -v): Hit Y to show all the licences and Y to each of them. So after the steps described above, I did the following in the console: flutter doctor -android-licenses Hope those may help someone in troubleshooting. I'm always puzzled why an installation package shouldn't contain all necessary dependencies but cause trouble (perhaps fun) to so many people?Īnyway, I'd like to add something to the zmofsx solution because, for me, the solution didn't fix the problem completely, and I had to do a few more steps described below. If it works, change your profile accordingly and relogin to Ubuntu. You can test this before messing with your profile, by the following command in a terminal PATH=$PATH:~/Android-SDK/platform-tools ANDROID_HOME=~/Android-SDK flutter doctorĪnd again change ~/Android-SDK to wherever you installed the android SDK. Having checked my android sdk + flutter setup, I also ended up adding the following to my path ~/Android-SDK/platform-tools Obviously if you installed the android sdk in a different directory, you just need to replace ~/ with the directory, so for example if you installed the sdk to /opt, then the command would beĪNDROID_HOME=/opt/Android-SDK flutter doctor To your ~/.profile script, then relogin to Ubuntu. If that worked, then add the env variable to your profile to make it persistent, by adding export ANDROID_HOME=~/Android-SDK So assuming you installed the SDK in your home directory, open a terminal and issue this command ANDROID_HOME=~/Android-SDK flutter doctor You need to set env variable ANDROID_HOME to the path you installed the android sdk for flutter to work. I had this issue when I installed on Ubuntu. Android Studio at /home/andi/Downloads/android-studio-ide-173.4907809-linux/android-studio.To resolve this, run: flutter doctor -android-licenses Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01).Java binary at: /home/andi/Downloads/android-studio-ide-173.4907809-linux/android-studio/jre/bin/java.Platform android-28, build-tools 28.0.2.Android NDK location not configured (optional useful for native profiling support).Android toolchain - develop for Android devices (Android SDK 28.0.2) ![]() Flutter version 0.7.3 at /home/andi/Downloads/flutter.I might need you to be really clear in the instructions because I'm new to the linux platform.įlutter doctor -v output: Flutter (Channel beta, v0.7.3, on Linux, locale en_IN) The closest issue I could find was: How to install SDK manager on linux ubuntu 16.04? but I couldn't really understand how to work the instructions. Try re-installing or updating your Android SDK, However, when I wanted to install Flutter, it gives exception: Doctor summary (to see all details, run flutter doctor -v):Įxception: Android sdkmanager tool not found (/usr/lib/android-sdk/tools/bin/sdkmanager). I followed all the steps as said to install Android Studio and it is working fine with all the SDKs. I newly started using Ubuntu 18.0 LTS this week, switching from Windows, and wanted to install Android Studio and Flutter back.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |