预览标签在Android Studio中不可见 [英] Preview tab is not visible in Android Studio

查看:145
本文介绍了预览标签在Android Studio中不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了一个android studio,并试图创建我的第一个项目.但是预览选项卡不可见. 我在视图"->工具"窗口中对其进行了检查,但该预览也不存在.

I have installed an android studio and tried to create my first project. But preview tab is not visible. I checked it in the View -> Tools Window but the preview is also not present there.

即使设计/文本选项卡在android studio中也不可见.我检查了stackoverflow中的早期文章,但无法解决此问题. 像这样一个: Android Studio布局预览在哪里?

Even Design/Text tab is not visible in the android studio. I checked the earlier posts in stackoverflow but have not been able to resolve this problem. Like this one : Where is Android Studio layout preview?

无法显示图片,因为这是我的第一个问题,我只有1个声誉. :(

Not able to show you the image as this is my first question and I have only 1 reputation. :(

请提出一种找到它的方法.

Please suggest a way to find it.

预先感谢

推荐答案

根据屏幕快照,您的项目结构与应有的结构不符.原因在图片中清晰可见,您的工具栏中的SDK按钮在屏幕截图中显示为灰色,这表示SDK路径中存在问题.

As per the screenshot your project structure is not as per it should be. Reason is clearly visible in the picture, Your SDK buttons in tool bar are grayed in screen shot that means there is some problem in the SDK path.

请从以下位置设置您的SDK路径

please set your SDK path from

 File > Project Structure > Android SDK

然后,使用工具栏中可用的微小gradle按钮将您的项目与gradle同步.

And after that sync your project with gradle using the tiny gradle button available in tool bar.

甚至没有预览,如果您的sdk路径不正确,您将看不到任何android特定的选项卡.

Not even the preview, you will not see any android specific tabs if your sdk path is not correct.

作为参考,正确的sdk之后,您的工作室将如下所示

For reference your studio will look like this after correct sdk

这篇关于预览标签在Android Studio中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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