You can also remove android-sdk directory after removing all sub files and change the name of android-sdk-latest to android-sdk. I have a problem when I want to remove all file into a new created latest directory: cannot remove latest to latest/latest. echo y | android-sdk-latest/cmdline-tools/latest/bin/sdkmanager "platform-tools" "platforms android-$" >/dev/null export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin:$PATH export ANDROID_HOME=$PWD/android-sdk-latest mv android-sdk/cmdline-tools/* android-sdk-latest/cmdline-tools/latest # then move all files to new created latest directory # create a new directory: android-sdk-latest/cmdline-tools/latest mkdir android-sdk-latest cd android-sdk-latest # create a new directory android-sdk-latest # unzip the zip and name it with 'android-sdk' wget -quiet -output-document=android-sdk.zip apt-get -quiet install -yes wget tar unzip lib32stdc++6 lib32z1 My solution on macOS: - apt-get -quiet update -yes Run flutter doctor -v in your terminal again. This tells where the latest sdkmanager is. Run /Users/myname/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager -install "cmdline-tools latest" in your terminal. Double check that you have sdkmanager under /Users/myname/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanagerįollow what Flutter implies us to do. Move the cmdline-tools under the sdk directory. Can someone tell me what folder I should select as my root folder I already tried using /Desktop/adt-bundle-mac/sdk as my root folder and it didn’t work. For me, it is /Users/myname/Library/Android/sdk. SmartGenius November 24, 2012, 8:27pm 1 I am a Mac user and when I clicked Build for my Unity Android game, it said Trying to locate Android SDK root folder. The Android SDK Location is where your Android SDK is installed. Open Android Studio and navigate to Preference > Appearance & Behavior > System Settings > Android SDK. messy with heading to root and all, you can just zip/rar/7z the folder. Let's why we have to create a new directory.įind out where the Android SDK is located. In the Create New Module window, select Android Library, and then select Next. You can have many versions of cmdline-tools but the latest directory means what is inside it is the latest one. TL DR If you look at the zip file name carefully, you'll find out that its name indicates that this is the latest one. That means creating a new directory latest under cmdline-tools and moving everything to latest. Change the folder hierarchy into cmdline-tools > latest. The original unzipped folder is cmdline-tools. I'm installing Android Studio for Flutter on my Mac. Now rename the second "cmdline-tools" to "latest" /opt/android-sdk/cmdline-tools/latest/bin/sdkmanager To get this to work, first create the path to your intended Android SDK /opt/android-sdk/cmdline-tools/ then unpack the SDK zip file to that location, and you will have /opt/android-sdk/cmdline-tools/cmdline-tools/bin/sdkmanager YOURPATH/cmdline-tools/latest/bin/sdkmanager How To Unpack and make sure you have this path to the sdkmanager. Package into its expected location: /cmdline-tools/latest/ YOURPATH/cmdline-tools/SOMETHING/bin but unpacks to /YOURPATH/cmdline-tools/bin for Linux anyway.Įrror: Either specify it explicitly with -sdk_root= or move this The problem seems to be that the sdkmanager expects to reside in an environment called. Earlier after unpacking, the top folder was called tools, but now the top folder is called cmdline-tools. įor "commandlinetools-linux-7302050_latest.zip" the process was different from earlier approaches. Obviously, I cannot select any of these directories as the path, and therefore I am stuck at this step in the build.Downloading the Android SDK 29+ (command line tools for Android) from. I get a multitude of folders called Android, but none of these folders contain the sdk directory, or even resemble what I'm looking for. When I follow the path Luke/Library/Android, However, when I attempt to use the finder in Unity, I have no idea where the sdk directory is located. Just be sure, I checked this path in the terminal and found the sdk directory. To attempt to find the correct path, I used the configure SDK manager within Android Studio. My problem is that I cannot find the Android SDK Root Folder, and therefore I cannot build the project. When I attempt to build with android, I am always prompted to 'Select Android SDK Root Folder'. I am currently developing an application using Unit圓D, and I would like to build the app on the android platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |