cuốn sách gpt4 ai đã làm

java - 无法解析 : com. android.support:support-v13:26

In lại Tác giả: Walker 123 更新时间:2023-11-29 04:25:53 28 4
mua khóa gpt4 Nike

在我将 TabLayout 添加到 .xml 布局之前,一切都正常工作和编译。在我添加它之后,该项目只是拒绝编译并且我所有的 .xml 文件都停止显示任何内容并且我所有的库导入都显示“无法解析符号 ...”。

我不明白为什么我之前编译良好的所有导入现在都简单地说:

Failed to resolve: com.android.support:support-v13:26

Failed to resolve: com.android.support:appcompat-v7:26

并且提供的按钮(例如“安装存储库和同步项目”)均不可点击。

请看一下 gradle 文件:

apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.example.prett.myapplication"
minSdkVersion 22
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'
}
}
productFlavors {
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
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:support-v13:26'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:25.3.1'
}

我试过“使缓存无效/重启”,但没有任何影响。

附言

编译'com.android.support:design:25.3.1'

说的是

This support library should not use a different version (25) than the compileSdkVersion (26)

这也会导致问题吗?

28 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress