赞
踩
- dependencies {
- classpath 'com.android.tools.build:gradle:3.1.2'
- }
- #Tue Feb 12 15:41:56 CST 2019
- distributionBase=GRADLE_USER_HOME
- distributionPath=wrapper/dists
- zipStoreBase=GRADLE_USER_HOME
- zipStorePath=wrapper/dists
- distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
那是大家将引入的第三方工程的依赖包全都设置成了implementation,为什么不能设置成implementation?
新版本需要我们将compile替换成implementation,当然我们不能完全都替换成implementation,我们先来看一下implementation和compile的故事:api或compile关键字引用的包对于其他module来说是可见的,而implementation关键字引用的包对于其他module来说是不可见的。
- buildTypes {
- debug {
- }
- web6 {
- }
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。