2

I am trying to update Android Studio 3.0.1 to 3.1 but after downloading and its starting patch but it shows error below. Error while updating Android studio to 3.1

Here is my simple.xml.ftl file

<?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>

Thanks in Advance.

Amrish Kakadiya
  • 974
  • 1
  • 7
  • 25

1 Answers1

0

I had this problem today when trying to upgrade from 3.1 to 3.1.1.

After cancelling the patching (during first attempt), I started with a new upgrade (from Help --> Check for Updates). Second time, the upgrade was successful.

Pablo Alfonso
  • 2,317
  • 1
  • 18
  • 24