Android Studio Preview是最新的空白更新

时间:2018-06-13 07:53:38

标签: android-studio

与gradle同步但仍无法正常工作。新更新有问题吗?

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
[enter image description here][1]android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">

<TextView
    android:layout_width="34dp"
    android:layout_height="53dp"
    android:text="Hello World!"
    android:textAppearance="@style/TextAppearance.AppCompat"
    android:visibility="visible" />

</LinearLayout

1 个答案:

答案 0 :(得分:0)

转到Gradle Scripts - &gt;的build.gradle(模块:应用)

Gradle

将alpha3更改为alpha1

        implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'

        implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'

Image