2016-09-29 10 views
0

私はちょうど私のアンドロイドSTUDIOを更新され、この問題に直面して:
これは私がデザイン]タブで、何のデバイスを取得していないのです何をまったくプレビューでAPIレベルをアセスすることはできませんされて がここに画像の説明を入力し テーマ選択は、ちょうどこのを示しています、右側には説明がプレビューモードが表示されないアンドロイドスタジオのデザインタブにデバイスプレビューが表示されていますか?

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カビールplzはあなたのアンドロイドのスタジオを再起動し、Gradleの同期が失敗したエラーが再度事が..with新しく作成されたアプリケーションは、私はプレビューモードを取得していますされ –

答えて

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 
} 

あなたへの変更スタジオバージョンに更新

関連する問題