2016-06-16 3 views
1

나는 2.2 미리보기 3 최근 안드로이드 Studio를 업그레이드하지만 글고 스타일은 미리보기에서 변경이처럼, 그것은을 enter image description here안드로이드 스튜디오 2.2 글고 국경

하지만 내 휴대 전화에서 실행 enter image description here

<?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" 
    tools:context="com.hyh.newlearn.MainActivity"> 

    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:text="Hello World!" /> 

    <EditText 
     android:id="@+id/et_show" 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:layout_centerInParent="true" 
     android:hint="Hello World"/> 

</RelativeLayout> 

을 styles.xml :

<resources> 

    <!-- Base application theme. --> 
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 
     <!-- Customize your theme here. --> 
     <item name="colorPrimary">@color/colorPrimary</item> 
     <item name="colorPrimaryDark">@color/colorPrimaryDark</item> 
     <item name="colorAccent">@color/colorAccent</item> 
    </style> 

</resources> 

왜? 어떻게 처리할까요? 내가 클래스 경로 'com.android.tools.build:gradle:2.2.0-alpha3'를 사용하는 경우

답변

1
buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.0-alpha3' 
//  classpath 'com.android.tools.build:gradle:1.5.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 
} 

, 그것은 오류보기를 표시합니다.

classpath 'classpath'com.android.tools.build:gradle:1.5.0 ''을 사용하면 올바른보기가 표시됩니다.

0

동일한 문제가 발생했습니다.

Yuhao, 여기에 내 질문에

android edittext on sdk version from 16-19 shown incorrectly.

하지만 내가 그것을 API의 나오긴 생각했다.

당신이 옳았습니다. 마지막 안정 버전 인 을 사용해야합니다. com.android.tools.build:gradle:2.1.0 '