Blockquote
I am new in Android studio, I created a program and got resource error, please help me to fix this problem.
it shows error that "This project contains resource errors, so aapt did not succeed, which can cause rendering failure. fix resource problem first.
please help me in solving this issue.
code:
<?xml version="1.0" encoding="utf-8"?>
<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"
android:gravity="center_horizontal"
tools:context=".MainActivity">
<!-- Display whether Bluetooth is avilable or not-->
<TextView
android:id="@+id/statusBluetoothTv"
android:layout_width="match_parent"
android:layout_height="14dp"
android:minWidth=""
android:text=" "
android:textAlignment="center"
android:textColor="#000"
android:textSize="20sp" />
<!--Bluetooth icon (on/off)-->
<ImageView
android:id="@+id/bluetoothIv"
android:layout_width="100dp"
android:layout_height="100dp"
<Button
android:id="@+id/onBtn"
android:minWidth="200dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Turn On"
style="@style/Base.Widget.AppCompat.Button.Colored" />
<!--off btn-->
<Button
android:id="@+id/offBtn"
android:minWidth="200dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Turn Off"
style="@style/Base.Widget.AppCompat.Button.Colored" />
<!--Discoverable Button-->
<Button
android:id="@+id/DiscoverableBtn"
android:minWidth="200dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Discover devices"
style="@style/Base.Widget.AppCompat.Button.Colored" />
<!--Get list of Paired devices button-->
<Button
android:id="@+id/pairedBtn"
android:minWidth="200dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Get paired Devices"
style="@style/Base.Widget.AppCompat.Button.Colored" />
<!--show paired devices here-->
<TextView
android:id="@+id/pairedTv"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minWidth="200dp"
android:text=""
android:textColor="#000" />