美文网首页
解决AS新建工程Error:Execution failed f

解决AS新建工程Error:Execution failed f

作者: Smile等待_def6 | 来源:发表于2018-08-11 09:36 被阅读12次

错误log:


image.png

解决办法:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
// 加上这段代码
configurations.all {
    resolutionStrategy.force 'com.android.support:support-annotations:27.1.1'
}

相关文章

网友评论

      本文标题:解决AS新建工程Error:Execution failed f

      本文链接:https://www.haomeiwen.com/subject/qmirbftx.html