Home > other >  Error: error: "with attribute android: background (attr) reference | color are not compatible
Error: error: "with attribute android: background (attr) reference | color are not compatible

Time:10-20

I can't run my application, and certain attributes can't identify because the application build results suggested that does not support resources. How can I repair all resources value? It might be a dependency problems? Android studio can read the dependence and the allocation of resources. How is it related to android resources incompatibility problem: this is my XML

<? The XML version="1.0" encoding="utf-8"?>
XMLNS: android="http://schemas.android.com/apk/res/android"
XMLNS: app="http://schemas.android.com/apk/res-auto"
XMLNS: fab="http://schemas.android.com/apk/res-auto"
Android: layout_width="match_parent"
Android: layout_height="match_parent"

The android: id="@ + id/toolBar"
Android: layout_width="match_parent"
Android: layout_height="wrap_content"
Android: minHeight="? Attr/actionBarSize
"App: contentInsetLeft="0 dp"
App: contentInsetStart="16 dp"
Android: background="@ color/colorPrimary"
/& gt;

Android: layout_width="match_parent"
Android: layout_height="wrap_content"
Android: layout_below="@ + id/toolBar"
The android: id="@ + id/add_reminder_layout_top"
Android: orientation="vertical"

Android: layout_width="match_parent"
Android: layout_height="50 dp"
The android: id="@ + id/reminder_title"
Android: layout_marginLeft="32 dp"
Android: layout_marginTop="10 dp"
Android: hint="Name"
Android: textSize="20 sp"
Android: minLines="1"
Android: background="@ android: color/transparent"
Android: drawableLeft="@ drawable/ic_person_black_24dp"
Android: drawablePadding="12 dp"
Android: gravity="center | start"
Android: textColor="@ android: color/background_dark"
Android: scrollHorizontally="false"
Android: textColorHint="@ android: color/background_dark"
Android: inputType="textCapWords"
Android: layout_marginRight="16 dp"
/& gt;
Android: layout_width="match_parent"
Android: layout_height="50 dp"
The android: id="@ + id/phone_no"
Android: layout_marginLeft="32 dp"
Android: hint="phone Number"
Android: layout_marginTop="15 dp"
Android: layout_marginBottom="10 dp"
Android: textSize="20 sp"
Android: background="@ android: color/transparent"
Android: drawableLeft="@ drawable/ic_phone_black_24dp"
Android: drawablePadding="12 dp"
Android: gravity="center | start"
Android: textColor="@ android: color/background_dark"
Android: scrollHorizontally="false"
Android: textColorHint="@ android: color/background_dark"
Android: inputType="phone"
Android: layout_marginRight="16 dp"
/& gt;

XMLNS: android="http://schemas.android.com/apk/res/android"
Android: layout_width="fill_parent"
Android: layout_height="fill_parent"
Android: layout_below="@" + id/add_reminder_layout_top & gt;
Android: layout_width="match_parent"
Android: layout_height="wrap_content"
Android: orientation="vertical" & gt;
Android: layout_width="match_parent"
Android: layout_height="72 dp"
Android: layout_marginTop="8 dp"
Android: text="@ string/details"
The android: id="@ + id/details"
Android: textSize="15 sp"
Android: gravity="center_vertical"
Android: layout_marginLeft="72 dp"
Android: textColor="@ android: color/primary_text_light"/& gt;
Android: layout_width="match_parent"
Android: layout_height="72 dp"
Android: clickable="true"
The android: onClick="setDate"
The android: id="@ + id/date"
Android: background="@ drawable/ic_launcher_foreground"

Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
The android: id="@ + id/date_icon"
Android: layout_alignParentLeft="true"
Android: layout_marginLeft="16 dp"
Android: layout_marginRight="32 dp"
The android: SRC="https://bbs.csdn.net/topics/@drawable/ic_date"
Android: layout_centerVertical="true"/& gt;
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
Android: orientation="vertical"
Android: layout_toRightOf="@" + id/date_icon & gt;
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
The android: id="@ + id/date_text"
Android: textSize="15 dp"
Android: text="@ string/date"/& gt;
Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
The android: id="@ + id/set_date"
Android: textSize="15 dp"
/& gt;



Android: layout_width="match_parent"
Android: layout_height="72 dp"
Android: clickable="true"
The android: onClick="setTime"
The android: id="@ + id/time"
Android: background="? Android: attr/selectableItemBackground "& gt;


Android: layout_width="wrap_content"
Android: layout_height="wrap_content"
The android: id="@ + id/time_icon"
Android: layout_alignParentLeft="true"
Android: layout_marginLeft="16 dp"
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related