如何解决这个问题&引用;'上缺少aapt2;C:\Users\dmgop\AppData\Local\Android\Sdk\build tools\27.0.3\aapt2.exe'&引用;

如何解决这个问题&引用;'上缺少aapt2;C:\Users\dmgop\AppData\Local\Android\Sdk\build tools\27.0.3\aapt2.exe'&引用;,android,android-layout,Android,Android Layout,我无法在手机上运行以下代码。以下是在android studio中完成的 This is a basic program on android to display 2 texviews and 1 button. 这是我的代码- [看起来您已经损坏了构建工具27.0.3。请删除目录C:\Users\dmgop\AppData\Local\Android\Sdk\build tools\27.0.3\,转到Android Studio中的Sdk管理器,重新下载构建工具27.0.3。这将为您解

我无法在手机上运行以下代码。以下是在android studio中完成的

This is a basic program on android to display 2 texviews and 1 button.
这是我的代码-

[

看起来您已经损坏了构建工具27.0.3。请删除目录
C:\Users\dmgop\AppData\Local\Android\Sdk\build tools\27.0.3\
,转到Android Studio中的Sdk管理器,重新下载构建工具27.0.3。这将为您解决此问题。

查看此目录,复制可能的
This is my code-
    <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"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical"
        tools:context=".MainActivity">
    <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="QUANTITY"
            />
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="0"
                android:textStyle="bold"
             />
        <Button
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="ORDER"
            />