没有找到Android SDK中 - Android电子工作室 [英] No Android SDK found - Android Studio

查看:638
本文介绍了没有找到Android SDK中 - Android电子工作室的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与Android 0.4.2 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问题
没有Android SDK中找到。请配置的Andr​​oid SDK。

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

我的设置SDK和JDK是这样的:Android的SDK位置:C:\\ ADT-束WINDOWS \\ SDK,我把路径我在Eclipse 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.

推荐答案

我正好遇到并解决了类似的问题。

I just encountered and solve a similar problem.

首先,你应该检查像描述的其他线程的目录。然后,你可以检查是否构建工具版本的匹配您的SDK版本。

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

(例如对于我的项目,在的build.gradle文件,你必须:。)

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

安卓{
      compileSdkVersion 21
      buildToolsVersion21.1.1}

android { compileSdkVersion 21 buildToolsVersion "21.1.1" }

然后打开SDK管理器,请确保您有SDK相同版本(21.1.1)安装在选定directoriy:

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

如果没有,请安装并重新启动Android的工作室。这对我的作品。

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

我也看到其他人说Android的运行工作室以管理员身份也将帮助:

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

<一个href=\"https://teamtreehouse.com/forum/i-am-getting-this-warning-message-rendering-problems-no-android-sdk-found-please-configure-an-android-sdk\" rel=\"nofollow\">https://teamtreehouse.com/forum/i-am-getting-this-warning-message-rendering-problems-no-android-sdk-found-please-configure-an-android-sdk

这篇关于没有找到Android SDK中 - Android电子工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆