我知道这个问题一次又一次被问到,但我不理解所提供的任何答案,也许是因为它们与我的错误不太相关。
在我的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
答案 0 :(得分:0)
在您的布局service_list.xml
中,您尝试使用Android属性android:textinearLayoutStyle
。首先,它看起来像你做了一个错字,但其次没有类似的android属性,你可以参考。您是否意味着使用android:textStyle
?