错误:在更新Android Studio 3.1时发现了一些冲突

时间:2018-03-29 05:35:46

标签: android android-layout android-studio android-studio-3.1

我正在尝试将Android Studio 3.0.1更新为3.1但是在下载及其启动补丁之后却显示错误如下。 Error while updating Android studio to 3.1

这是我的 simple.xml.ftl 文件

<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
<#if hasAppBar && appBarLayoutName??>
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:showIn="@layout/${appBarLayoutName}"
</#if>
    tools:context="${packageName}.${activityClass}">

<#if isNewProject!false>
    <TextView
<#if includeCppSupport!false>
        android:id="@+id/sample_text"
</#if>
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Hello World!"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

</#if>
</android.support.constraint.ConstraintLayout>

先谢谢。

1 个答案:

答案 0 :(得分:0)

我尝试从3.1升级到3.1.1时遇到了这个问题。

取消修补后(首次尝试时),我开始进行新的升级(来自帮助 - >检查更新)。第二次,升级成功。