android – 错误无法解析符号TabLayout和’设计

android – 错误无法解析符号TabLayout和’设计,第1张

概述请帮忙:导入 android.support.design.widget.TabLayout时出错 它说“无法解决符号’设计’ 我的build.gradle: compileSdkVersion 26 buildToolsVersion "26.0.0" dependencies { compile fileTree(dir: 'libs', include 请帮忙:导入 android.support.design.Widget.TabLayout时出错
它说“无法解决符号’设计’

我的build.gradle:

compileSdkVersion 26     buildToolsversion "26.0.0"     dependencIEs {         compile filetree(dir: 'libs',include: ['*.jar'])         androIDTestCompile('com.androID.support.test.espresso:espresso-core:2.2.2',{             exclude group: 'com.androID.support',module: 'support-annotations'         })         compile 'com.androID.support:appcompat-v7:26'         compile 'com.androID.support.constraint:constraint-layout:1.0.2'         compile 'com.androID.support:support-v4:26'         testCompile 'junit:junit:4.12'     }
解决方法 你忘了添加设计支持库.只需在gradle app文件中添加此依赖项:
implementation 'com.androID.support:design:26.0.+'

Design Support Library

The Design package provIDes APIs to support adding material design components and patterns to your apps.

The Design Support library adds support for varIoUs material design components and patterns for app developers to build upon,such as navigation drawers,floating action buttons (FAB),snackbars,and TabLayout.

或者AndroIDX依赖:

implementation "com.Google.androID.material:material:1.0.0"
总结

以上是内存溢出为你收集整理的android – 错误无法解析符号TabLayout和’设计全部内容,希望文章能够帮你解决android – 错误无法解析符号TabLayout和’设计所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1137753.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存