activity_main.xml
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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"
tools:context=".MainActivity">
<cocktail-provider
android:id="@+id/cocktail-provider"
android:previewImage="@drawable/apps_edge"
android:label="@string/app_name"
android:launchOnClick="mainapp.MainActivity"
android:description="Edge Panel Widget"
android:cocktailWidth="550"
android:configure="com.example.myapplication2"
>
</cocktail-provider>
</androidx.constraintlayout.widget.ConstraintLayout>
在构建时,它给出了 app\src\main\res\layout\activity_main.xml:12 的错误:'AAPT: error: attribute android:cocktailWidth not found.', 'AAPT: error: 'Edge Panel Widget' is incompatible with属性描述 (attr) 参考。, 'AAPT: error: attribute android:launchOnClick not found.', 'AAPT: error: resource drawable/apps_edge (aka com.example.myapplication2:drawable/apps_edge) not found.'
我应该怎么做才能修复它?