![](/img/trans.png)
[英]X Android SDK file not found : C:\Users\\AppData\Local\Android\Sdk\build-tools\29.0.3\aapt
[英]How to solve this? - “aapt2 is missing on 'C:\Users\dmgop\AppData\Local\Android\Sdk\build-tools\27.0.3\aapt2.exe' ”
This is a basic program on android to display 2 texviews and 1 button.
我无法在手机上运行以下代码。 以下已在android studio中完成。
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"
/>
[
您似乎已损坏了构建工具27.0.3。 删除目录C:\\Users\\dmgop\\AppData\\Local\\Android\\Sdk\\build-tools\\27.0.3\\
,转到Android Studio中的SDK Manager,然后重新下载构建工具27.0.3。 这应该为您解决此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.