找不到 android 支持库
cannot find android support library
请注意我搜索了很多所以这不是一个重复的问题
搜索了这些没有答案
Can't find Android Support Package
Cant' find Android Support package
https://developer.android.com/topic/libraries/support-library/setup.html#using-apis
我只想能够使用
TabLayout 当我使用它时它说
无法解析 'TabLayout' 符号。
当我尝试导入它时
进口android.support.design.widget.TabLayout;
说也无法解析 'TabLayout'
我也搜索了那个错误,结果安装了我找不到的 android 支持库
这是一个搜索
那么如何安装该库?!!
Image of SDK
这里是 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;
请注意我搜索了很多所以这不是一个重复的问题
搜索了这些没有答案
Can't find Android Support Package
Cant' find Android Support package
https://developer.android.com/topic/libraries/support-library/setup.html#using-apis
我只想能够使用 TabLayout 当我使用它时它说 无法解析 'TabLayout' 符号。
当我尝试导入它时
进口android.support.design.widget.TabLayout; 说也无法解析 'TabLayout'
我也搜索了那个错误,结果安装了我找不到的 android 支持库
这是一个搜索
那么如何安装该库?!!
Image of SDK
这里是 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;