Failed to resolve: com.android.support:design:26.0.0
16lz
2021-01-23
“`
compile ‘com.android.support:appcompat-v7:26.+’
compile ‘com.android.support:design:26.+’
这个两个一定要匹配
apply plugin: ‘com.android.application’
android {
compileSdkVersion 26
buildToolsVersion “26.0.0”
defaultConfig { applicationId "com.example.tablayout" minSdkVersion 14 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"}buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' }}
}
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:design:26.+’
compile ‘com.android.support:support-v4:26.+’
testCompile ‘junit:junit:4.12’
}
“`
更多相关文章
- 一个二维码实现IOS和android两个平台的下载核心代码
- [Android] 一份代码,两个版本
- 【从头学android】在两个Activity之间实现界面切换
- 通用android studio gradle 文件(电商商家版,两个gradle不同)
- Android合并两个APP的具体做法(掌握)
- Android上在两个Activity之间传递Bitmap对象
- Android Project和app中两个build.gradle配置的区别