2016-09-29 59 views
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 }

+0

张贴你的gradle – PriyankaChauhan

+0

sry我不知道最后一行来自哪里! – akitsme

+0

@Akash Kabir PLZ重新启动你的android studio,并用gradle同步你的项目 –

回答

0

请改变你的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 
} 

改变你更新的工作室版本

相关问题