首页 文章

错误:链接文件资源失败:守护程序:AAPT2 aapt2-3.2.0-alpha14-4748712-linux守护程序#0

提问于
浏览
0

我知道这个问题一次又一次被问到,但我不明白已提供的任何答案,也许是因为它们与我的错误不太相关 .

在我的Android Studio项目中构建Gradle后,我收到以下错误:

Android resource linking failed

输出:

W/ResourceType( 2455): For resource 0x0101053d, entry index(1341) is beyond type entryCount(1329)
W/ResourceType( 2455): For resource 0x0101053e, entry index(1342) is beyond type entryCount(1329)
W/ResourceType( 2455): For resource 0x0101053b, entry index(1339) is beyond type entryCount(1329)
W/ResourceType( 2455): For resource 0x0101053c, entry index(1340) is beyond type entryCount(1329)
/home/sakhile/Downloads/ud851-Exercises-student/Lesson03-Green-Recycler-View/Tasker/app/src/main/res/layout/service_list.xml:47: error: attribute android:textinearLayoutStyle not found.
error: failed linking file resources.

Command: /home/sakhile/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-alpha14-4748712-linux.jar/1d98a9485ac4d9eebc41ea1399977a49/aapt2-3.2.0-alpha14-4748712-linux/aapt2 link -I\
        /home/sakhile/Downloads/Sdk/platforms/android-25/android.jar\
        --manifest\
        /home/sakhile/Downloads/ud851-Exercises-student/Lesson03-Green-Recycler-View/Tasker/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
        -o\
        /home/sakhile/Downloads/ud851-Exercises-student/Lesson03-Green-Recycler-View/Tasker/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
        -R\
        @/home/sakhile/Downloads/ud851-Exercises-student/Lesson03-Green-Recycler-View/Tasker/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
        --auto-add-overlay\
        --java\
        /home/sakhile/Downloads/ud851-Exercises-student/Lesson03-Green-Recycler-View/Tasker/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
        --custom-package\
        com.example.sakhile.tasker\
        -0\
        apk\
        --output-text-symbols\
        /home/sakhile/Downloads/ud851-Exercises-student/Lesson03-Green-Recycler-View/Tasker/app/build/intermediates/symbols/debug/R.txt\
        --no-version-vectors
Daemon:  AAPT2 aapt2-3.2.0-alpha14-4748712-linux Daemon #0

1 回答

  • 0

    在您的布局 service_list.xml 中,您正在尝试使用android属性 android:textinearLayoutStyle . 首先,它看起来像你没有类似的android属性,你可以参考 . 您是否意味着使用 android:textStyle

相关问题