0
我刚刚更新我的Android Studio和面临这样的问题:
这是我在设计选项卡上没有得到设备预览都不能接取API级别这里 输入图像描述 主题选择只是显示这个,在右手侧上没有描述预览模式不显示任何在android studio的设计选项卡中的设备预览?
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>
第
是我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()
}
}
任务干净(类型:删除){ 删除rootProject.buildDir enter code here
}
张贴你的gradle – PriyankaChauhan
sry我不知道最后一行来自哪里! – akitsme
@Akash Kabir PLZ重新启动你的android studio,并用gradle同步你的项目 –