No android sdk found что делать

от admin

«No Android SDK found» error when building Android demo app #7261

I’m only following the README instructions to build the Android demo app.

I believe I have configured my ./WORKSPACE file correctly. This seems to be a different error to the obvious one you get if you haven’t update the WORKSPACE file.

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

Environment info

Operating System: Mac OS X 10.10.5

Installed version of CUDA and cuDNN: None

If installed from source, provide

  1. The commit hash ( git rev-parse HEAD )

I cloned (with submodules) today, so this is the current master code.

  1. The output of bazel version

If possible, provide a minimal reproducible example (We usually don’t have time to read hundreds of lines of your code)

Here’s the error:

Daniels-MacBook-Air:tensorflow Dan$ bazel build //tensorflow/examples/android:tensorflow_demo
.

.
ERROR: /private/var/tmp/_bazel_Dan/e9cc2fe61f735d74f6a33af534dffc47/external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/incrementaldeployment/BUILD:3:1: in android_library rule @bazel_tools//src/tools/android/java/com/google/devtools/build/android/incrementaldeployment:incremental_stub_application: No Android SDK found. Use the —android_sdk command line option to specify one.

Here’s the relevant section of my WORKSPACE file (Bazel 0.4.4 seems to require Android build tools 24.0.3 or newer, which is why I updated that too):

What other attempted solutions have you tried?

I tried the path both with and without the trailing slash.

I investigated how to pass the —android_sdk option to bazel based on this Bazel documentation:

I couldn’t figure out how to pass in that setting (plus I suspect it is supposed to come from the WORKSPACE file anyway). Here’s what I tried:

Android Studio — SDK и проблемы с установкой?

Решил я значит установить Android Studio, в процессе установке увидел ошибку, он не видит SKD, Выдаёт ошибку «no android sdk found». Смотрел на ютубе как устанавливать его)))
А на ютубе в процессе установке есть пункты которых у меня небыло, хотя устанавливал также, и с того же оф.сайта, скачал и установил SDK отдельно, думал щас путь к нему задам и всё будет ок, а хрен там, он его всё равно не видит, подскажите новичку где я затупил?

No Android SDK found — Android Studio

I have a problem with Android 0.4.2 Studio, when creating a new application, it tells me there is a problem with the rendering and shows me the following problem:

Renderering Problems No Android SDK found. Please configure an Android SDK.

My setup SDK and JDK is this: Android SDK location: C:\adt-bundle-windows\sdk, I put the path I use in Eclipse SDK, or there may be the problem, if someone has happened and what has been fixed, I’d like to give me the solution, thank you very much.

16 Answers 16

I just encountered and solve a similar problem.

First you should check the directory like other threads described. Then you can check whether the Build tool version matches your SDK version.

Читать:
Программа которая переделывает фото в рисунок

(e.g. for my project, in build.gradle file, you have:)

and then open you SDK manager, make sure you have the same version of sdk(21.1.1) installed in the selected directoriy:

If not, install it and restart Android Studio. It works for me.

I’ve also seen other guys saying run Android Studio as administrator would also help:

I got the same «No Android SDK Found» error message. plus no rendering for Design window, no little cellphone screen.

My SDK path was correct, pointing to where the (downloaded during setup) SDK lives.

During Setup of the SDK Mgr, I didn’t download the latest «preview edition (version 20)». (I thought it better to use the next most recent version (19)) Later I found, there was no dropdown choice in the AVD Manager to pick Version 19, only the default value of the preview, 20.

I thought «Maybe the rendering was based on a version that wasn’t present yet.» So, I downloaded all the «preview edition’s (version 20)» SDK Platform (2) and system images (4).

Once download/install completed, RESTARTED Android Studio and Viola! success. error message gone, rendering ok.

No Android SDK found — Ubuntu 14.04 LTS

I’m trying to install Android Studio on my Ubuntu 14.04 LTS. I’ve downloaded android-sdk-linux, executed it and downloaded files you see in this picture:

Directory: /home/user/Downloads/android-sdk-linux :
<code>Directory: /home/user/Downloads/android-sdk-linux</code>

After that I copied all of those floders to this directory: /Android/sdk Unfortunately when I run /Android/bin/studio.sh in bash to execute Android Studio installer I face this:

«Android Studio installer — No Android SDK found»:
Android Studio installer - No Android SDK found

What Should I do now? anybody knows the reason?

pomsky's user avatar

Shojajou's user avatar

1 Answer 1

Ubuntu Make

Ubuntu Make is a command line tool which allows you to download the latest version of popular developer tools on your installation, installing it longside all the required dependencies (which will only ask for root access if you don’t have all the required dependencies installed already), enable multi-arch on your system if you are on a 64 bit machine, integrate it with the Unity launcher… Basically, one command to get your system ready to develop with!

How to use it

Example: how to install Ubuntu Make and then, Android Studio.

Installing Ubuntu Make

If you are on latest development Ubuntu version, first, add the Ubuntu Make ppa:

Then, installing Ubuntu Make:

How to install android-sdk

And then, accept the installation path and Google license. It will download, install all requirements alongside Android Studio and latest android SDK itself, then configure and fit it into the system like by adding an Unity launcher icon…

And that’s it! Happy Android application hacking on Ubuntu. You will find the familiar experience with the android emulator and sdk manager + auto-updater to always be on the latest.

Похожие статьи