0
Я очень очень новый, чтобы этом- просто сделать старт начинающего Android Развитие- поэтому я извиняюсь за это глупым вопрос :(Нет идентификатора ресурса найден для атрибута «Layout_below» в пакете «андроид»
Я попытался запустить мое приложение на свой телефон и получил следующие ошибки:
C:\Users\melod\AndroidStudioProjects\CardForMelody\app\src\main\re\layout\activity_main.xml
Error:(36) No resource identifier found for attribute 'Layout_below' in package 'android'
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException: Process 'command 'C:\Users\melod\AppData\Local\Android\Sdk\build-tools\24.0.1\aapt.exe'' finished with non-zero exit value 1
Information:BUILD FAILED
Может кто-нибудь помочь Мой код выглядит следующим образом:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.android.cardformelody.MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/rosetrim"
android:scaleType="centerCrop"/>
<TextView
android:id="@+id/Melody"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="34sp"
android:fontFamily="Thin"
android:layout_marginLeft="110dp"
android:layout_marginBottom="10dp"
android:layout_marginTop="200dp"
android:text="Melody..." />
<TextView
android:id="@+id/thebest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="20sp"
android:fontFamily="cursive"
android:layout_below="@id/Melody"
android:layout_marginLeft="170dp"
android:text="You're the best"
/>
<TextView
android:id="@+id/lovemelody"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="10sp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="120dp"
android:layout_marginRight="100dp"
android:Layout_below="[email protected]/thebest"
android:text="LOVE MELODY" />
Похоже, у вас есть несколько опечаток: 'android: Layout_below =" id @/thebest "' должно быть действительно 'android: layout_below =" @ + id/thebest "' - с нижним регистром 'l' в' layout_below 'и' @ + id' вместо 'id @' – Entea