本文主要是介绍Android Studio gradle项目文件基本配置样例,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1、根目录下创建配置文件 dependencies.gradle(同项目build.gradle同一个目录,或引用目录)
ext {minSdkVersion = 14compileSdkVersion = 27targetSdkVersion = 27hamcrestVersion = '1.3'junitVersion = '4.12'runnerVersion = '0.5'supportVersion = '27.0.2'supportV4 = "com.android.support:support-v4:$supportVersion"supportDesign = "com.android.support:design:$supportVersion"supportAnnotations = "com.android.support:support-annotations:$supportVersion"supportAppCompat = "com.android.support:appcompat-v7:$supportVersion"recyclerviewV7 = "com.android.support:recyclerview-v7:$supportVersion"// Testjunit = "junit:junit:$junitVersion"testRunner = "com.android.support.test:runner:$runnerVersion"testRules = &#
这篇关于Android Studio gradle项目文件基本配置样例的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!