1.问题:解决Minimum supported Gradle version is 3.3. Current version is 2.14.1问题
解决办法 http://blog.csdn.net/juladoe/article/details/64437441
2.Configuration with name 'default' not found 解决办法
解决办法:http://blog.csdn.net/u013531824/article/details/50781739
3.使用第三方库出现找不到so库UnsatisfiedLinkError错误的原因以及解决方案
解决办法:http://www.jianshu.com/p/b9a524f24b7e
4.Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31
is also present at [com.android.support:recyclerview-v7:26.0.0-alpha1] AndroidManifest.xml:24:9-38 value=(26.0.0-alpha1).
Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:25:5-27:34 to override.
原因:Manifest中的版本和library中引用的recyclerview版本不一样,需要在gradle中将其强制转换成相同的版本。
解决办法:在Gradle(Module:APP)中最后面加上
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'
}
}
}
}
5.android studio util.zip.ZipException: duplicate entry问题:
解决办法:是从这个网页https://stackoverflow.com/questions/39957924/java-util-zip-zipexception-duplicate-entry中的一个链接找到的解决办法:https://www.linkedin.com/pulse/how-find-dependencies-particular-dependency-gradle-hesamedin-kamalan-1。特此记录下来,纪念因此而耗费的一天时间。不多说,接着投入下一个bug了
6.
Error:Execution failed for task ':app:clean'. > Unable to delete directory
解决办法:http://blog.csdn.net/ding_GC/article/details/52702576。
出现原因:今天周一上班,打开as就出现了。天降横祸。。