找不到android支持库 [英] cannot find android support library
问题描述
请通知,我已经搜索了很多东西,所以这不是重复的问题
please notice that i searched a lot so this is not a duplicated question
没有答案地搜索了
如何添加"Android设计支持库" ADT插件将Eclipse移植到Eclipse?
https://developer.android.com/topic/libraries/support-library/setup.html#using-apis
我只想能够使用 TabLayout ,当我使用它时说 无法解析"TabLayout"符号.
i just want to be able to use TabLayout as when i use it it says cannot resolve 'TabLayout' symbol.
当我尝试导入它时
导入android.support.design.widget.TabLayout; 说也无法解析"TabLayout"
import android.support.design.widget.TabLayout; says also cannot resolve 'TabLayout'
我也搜索了该错误,结果导致安装了我找不到的android支持库
also i searched for that error and it results to install the android support library which i cannot find
这里是搜索 Android Studio无法解析符号"TabLayout"
那么如何安装该库呢?!
so how to install that library ?!!
这是gradle.build
here is the gradle.build
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "com.example.android.engtomiwak"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
}
预先感谢....
推荐答案
确保已添加依赖项:
compile 'com.android.support:design:23.1.1'
然后导入:
import android.support.design.widget.TabLayout;
这篇关于找不到android支持库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!