0
我想改變我的'com.android.support:recyclerview'的版本。一般來說,當你想改變Android的支持版本,你必須改變所有連接到com.android.support的依賴,所以我把最新版本是26.1.0,它不斷給我這個錯誤 請幫助我出去依賴關係版本錯誤我不能改變版本
Error:(47, 13) Failed to resolve: com.android.support:support-v4:26.1.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/Users/median1/AndroidStudioProjects/sora/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Error:(41, 13) Failed to resolve: com.android.support.constraint:constraint-layout:26.1.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/Users/median1/AndroidStudioProjects/sora/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Error:(46, 13) Failed to resolve: com.android.support:design:26.1.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/Users/median1/AndroidStudioProjects/sora/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Error:(46, 13) Failed to resolve: com.android.support:design:26.1.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/Users/median1/AndroidStudioProjects/sora/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Error:(38, 13) Failed to resolve: com.android.support:appcompat-v7:26.1.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/Users/median1/AndroidStudioProjects/sora/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Error:(39, 13) Failed to resolve: com.android.support:recyclerview-v7:26.1.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/Users/median1/AndroidStudioProjects/sora/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
Error:(40, 13) Failed to resolve: com.android.support:cardview-v7:26.1.0
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/Users/median1/AndroidStudioProjects/sora/app/build.gradle">Show in File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
,這些都是我的依賴
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.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support.constraint:constraint-layout:26.1.0'
compile 'com.google.firebase:firebase-database:11.0.2'
compile 'com.firebaseui:firebase-ui-database:0.4.2'
compile 'com.google.firebase:firebase-auth:11.0.2'
compile 'com.firebase:firebase-client-android:2.3.1'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.sunfusheng:marqueeview:1.2.0'
compile 'com.google.firebase:firebase-storage:11.0.2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.firebase:firebase-core:11.0.2'
testCompile 'junit:junit:4.12'
}
我固定的傢伙,我不知道它有一個選擇依賴關係 –