当前位置: 首页 > 知识库问答 >
问题:

属性fab附加未找到

宇文勇
2023-03-14

使用材质组件时无法运行project。

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'android.arch.lifecycle:extensions:1.1.1'

    implementation 'com.facebook.fresco:fresco:1.11.0'
    implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
    implementation  'com.fxn769:pix:1.2.5'




    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:support-v4:28.0.0'

}

错误日志

Android资源链接输出失败:D:\Android Projects\Ghar3\app\src\main\res\layout\main\u layout。xml:23:错误:未找到fabAttached属性(又名com.reseaction.ghar:fabAttached)。错误:链接文件资源失败。

命令:C:\Users\Abdul Qadir。gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows。jar\93d85fd8448aa5b91b30eb47e2faac6a\aapt2-3.2.1-4818971-windows\aapt2。exe链接-I\D:\sdk\Android\sdk\platforms\Android-28\Android。jar \--manifest\D:\Android Projects\Ghar3\app\build\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest。xml \-o\D:\Android Projects\Ghar3\app\build\mediates\processed\u res\debug\processDebugResources\out\resources debug。ap \-R\@D:\Android Project\Ghar3\app\build\intermediates\incremental\processDebugResources\resources调试资源列表。美联社。txt \--自动添加覆盖\--java\D:\Android Projects\Ghar3\app\build\generated\not_namespaced\u r_class\u sources\debug\processDebugResources\r \--custom package\com。娱乐ghar \-0\apk \--输出文本符号\D:\Android Projects\Ghar3\app\build\intermediates\symbols\debug\R.txt \--无版本向量守护程序:AAPT2 AAPT2-3.2.1-4818971-windows守护程序#0

共有1个答案

方增
2023-03-14

该属性似乎已在androidx中删除。要附加操作栏,只需将属性app:layout_锚添加到您的晶圆厂。

<com.google.android.material.floatingactionbutton.FloatingActionButton
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_margin="16dp"
        app:fabSize="normal"
        android:src="@drawable/ic_add_white_24dp"
        app:layout_anchor="@id/bottom_app_bar"/>
 类似资料:
  • 有一个用户集合

  • 我正在为我的Spring启动应用程序编写联调,但当我尝试使用@TestProperty tySource覆盖一些属性时,它正在加载上下文xml中定义的属性文件,但不会覆盖注释中定义的属性。

  • 我有以下实体: 然后我创建我的存储库: 但我一开始就收到: 未找到MyTable类型的属性getCountOf 我到底做错了什么?

  • 本文向大家介绍wpf 附加的依赖项属性,包括了wpf 附加的依赖项属性的使用技巧和注意事项,需要的朋友参考一下 示例 何时使用 附加属性是一种依赖项属性,可以将其应用于任何属性,DependencyObject以增强了解该属性存在的各种控件或服务的行为。 附加属性的一些用例包括: 有一个父元素遍历其子元素并以某种方式作用于子元素。例如,Grid控制使用Grid.Row,Grid.Column,Gr

  • 问题内容: 我有一个实现JTree并默认使用Java属性文件填充树的应用程序;节点是键,值是节点的内容。该应用程序设计为动态的,因此实现了JButton和JTextField来接收新值并将这些值放入属性文件中的存在键中。 因此,例如,我在sample.properties文件中将以下行作为默认值 节点=猫,狗,老鼠 并使用JTextField和JButton输入“ rabbit”以追加到节点,如下

  • 我使用的是与node.js快递4.12.3和mysql db招摇过市2.0。 我创建了以下模式- 此处删除的_at字段将为空,并且在删除记录之前不会出现在数据库中。我的基于express的nodejs服务器返回的日期如下- [{id:4,“国家”:“g”,“创建时间”:“2018-01-29T04:51:46.000Z”,“删除时间”:null},{id:5,“国家”:“gaaaf”,“创建时间”