Use the navigation pane to the left of android studio. If it's closed click the icon that looks like the android studio icon to the far left of android studio it should have text that is sideways, and normally says "1:project". I have solved this problem by simply downloading the package with a standard browser Firefox, Chrome, etc. I got same error and fixed that. Please add this line below the compileSdkVersion into you gradle file.
This worked for me. First click the icon at the top-right of the screen that looks like a cube with a blue arrow pointing down. Check the API level And click apply. After the download and installation is done, click the icon at the top-right of the screen that looks like a cube with a blue arrow pointing down, click the second tab which is "SDK TOOLS" and click the "Show Package Details" at the bottom of the pop-up above the "OK" button.
A list of versions will show. Check the API version you need and click Apply. In this case, If you encounter this issue. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to solve failed to find build tools revision Inside the Dockerfile you can see that the author executes a single command to install platform tools and build tools without any other interaction.
In the case the OP has put forth, the command would be adapted to:. If you want to install build tools, copy the preferred version from the list of packages available. I just had a heck of a time getting android sdk dependencies installed via command line and since the documentation that comes with the tools and online are woefully lacking, I thought I'd post what I discovered here.
I'm working with android sdk r There are two commands that you can run to list the available packages:. The package numbers for specific packages differ for each command above! For example, the former lists package API Given that the install commands each can take the package as a parameter, which package number do you use?
After much online searching and trial and error, I discovered that. No matter how many prompts you get, all of those will be answered.
The problem with yes is that it floods stdout with 'y' and there is virtually no delay between sending those characters and the version I had to deal with had no timeout option of any kind.
It will "pollute" stdout and the script will fail complaining about incorrect input. As a matter of fact, I blogged about it NSBogan , check it out for more details here if you are interested. If you do not need Android Studio, you can download the basic Android command line tools from developer. You can get a complete list of packages using the command.
Some packages require acceptance of the license agreement. Yes, I've had the same problem. Some of the file downloads are extremely slow or at least they have been in the last couple of days. If you want to download everything there's not a lot you can do about that. One thing you can do is filter the packages that are being downloaded using the -t switch. When I tried this the other day I got version For some reason the latest version I just had this problem, so I finally wrote a 1 line bash dirty solution by reading and parsing the list of aviable tools :.
Download android SDK from developer. It is worthy of note that android has removed the sdkmanager GUI but has a command line version of the sdkmanager in the bin folder which is located inside the tools folder. For more reference follow official document here. You only need android-sdk and python27 , expect. As stated in other responses, the build tools requires the --all flag to be installed.
You also better use a -t filter flag to avoid installing ALL the packages but there is no way to filter all the build tools. There are already features requests for these two points in AOSP bug tracker.
Feel free to vote for them, this might make them happen some day:. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 8 years, 3 months ago. Active 1 month ago. Viewed k times. Joined: Sep 22, Posts: Was stuck on this for far too long. Tried all kinds of solutions. Sylker , Mar 16, Joined: Mar 21, Posts: 2. I have the same problem, and i can't fix it I tried doing what muratti32 said, but it still doesn't work. Any suggestions? Joined: May 11, Posts: 5.
GradleMain "-Dorg. Minimum required is If you are using NDK, verify the ndk. Program p, UnityEditor. String error UnityEditor. String task, System. No, it did not work. Okay, it worked, switch from Gradle to Internal. There should be a solution for this Edit: it didn't work that way for me either..
Last edited: Mar 21, Joined: Feb 2, Posts: 1. Joined: Apr 2, Posts: 6. Joined: Apr 19, Posts: 2. None of the solutions is working for me. Am having the same error messages as the dick guy.
Joined: Apr 8, Posts: 1. Joined: Jun 16, Posts: 9. Joined: Mar 4, Posts: 4. Tryed everything and it didnt work. I have no idea why unity have a support, if they aint help.
Xylitogum likes this. Joined: Sep 5, Posts: 3. Thanks macdonaldcalum Solved because of your solution Joined: Jan 2, Posts: 1. It Works,Thankyou — Hari Enaganti. In gradle. Nicola Ben 8, 5 5 gold badges 35 35 silver badges 55 55 bronze badges. Heba Farouk Heba Farouk 1. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Introducing Content Health, a new way to keep the knowledge base up-to-date.
Podcast what if you could invest in your favorite developer? Featured on Meta.
0コメント