Я новичок в Java и Android.
Я пытаюсь построить Android-браузер с помощью Android Studio на Win 7.
При попытке создать мое приложение отображается следующая ошибка:
Ошибка компиляции ресурса Android
Вывод: C: \ Users \ borinquenatl \ AndroidStudioProjects \ BrowserExample \ app \ src \ main \ res \ layout \ activity_main.xml: 34: ошибка: неправильно сформирован (недопустимый токен).
Команда: C: \ Users \ borinquenatl.gradle \ caches \ transforms-1 \ files-1.1 \ aapt2-3.2.1-4818971-windows.jar \ aa884e337f256396fb379397162453be \ aapt2-3.2.1-4818971-windows \ aapt2. exe compile --legacy \
-о \
C: \ Users \ borinquenatl \ AndroidStudioProjects \ BrowserExample \ app \ build \ промежуточные \ res \ merged \ debug \
C: \ Users \ borinquenatl \ AndroidStudioProjects \ BrowserExample \ приложение \ SRC \ главная \ Рез \ расположение \ activity_main.xml
Демон: AAPT2 aapt2-3.2.1-4818971-windows Демон # 1
Мой файл activity_main.xml:
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
>
<EditText
android:id="@+id/editTextLink"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/editTextLink"
android:inputType="text"
android:layout_weight="9"
/>
<Button
android:id="@+id/btn_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/btn_view"
android:textSize="18sp"
/>
</ LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="8"
android:orientation="horizontal"
>
<WebView
android:id="@+id/my_web_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
</WebView>
</LinearLayout>