Android Studio support 26.0.0-alpha1 Failed to resolve: com.android.support:appcompat-v7:27.+ 報錯解決方法


  

AS下如何生成自定義的.jks簽名文件, 以及如何生成數字簽名

鏈接:http://www.cnblogs.com/smyhvae/p/4456420.html

鏈接:http://blog.csdn.net/sunbinkang/article/details/74990292

Android support 26.0.0-alpha1 產生的問題

重點在這里,強制使用相同版本的庫:
在moudle 的build.gradle中 添加上,版本自選.

 

configurations.all { resolutionStrategy.eachDependency { DependencyResolveDetails details -> def requested = details.requested if (requested.group == 'com.android.support') { if (!requested.name.startsWith("multidex")) { details.useVersion '25.3.0' } } } }


作者:silencefun
鏈接:https://www.jianshu.com/p/c7dee5dcf27a
來源:簡書
著作權歸作者所有。商業轉載請聯系作者獲得授權,非商業轉載請注明出處。
 

Failed to resolve: com.android.support:appcompat-v7:27.+ 報錯解決方法

app module build.gradle dependencies中默認配置如下:

 

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:27.+' compile 'com.android.support.constraint:constraint-layout:1.0.2' testCompile 'junit:junit:4.12' }

Studio 2.3版本應該在Root Project build.gradle allprojects配置如下:

 

allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } }

Studio 3.0版本應該在Root Project build.gradle allprojects配置如下:

 

allprojects { repositories { jcenter() google() } }


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM