[英]Preview mode not showing any In device preview in design tab in android studio?
I JUST UPDATED MY ANDROID STUDIO AND FACING THIS PROBLEM: 我刚刚更新了我的ANDROID工作室并面对了这个问题:
this is what i am getting at design tab no device at all in preview can't acess API levels enter image description here 这就是我在“设计”选项卡上获得的内容,预览中根本没有设备无法访问API级别,请在此处输入图像描述
the theme selection is just showing this , no description in right hand side
主题选择仅显示此内容,右侧没有描述
the text section of activity_main contains: activity_main的文本部分包含:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.example.akash.myapplicationddd.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!" />
</RelativeLayout>
this is my gradle(project): 这是我的gradle(项目):
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) { delete rootProject.buildDir enter code here
} 任务清洁(类型:删除){删除rootProject.buildDir
enter code here
}
please change your gradle file 请更改您的gradle文件
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
change to your updated studio version 更改为更新的Studio版本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.