android 获取build,android-在升级到gradle 3时获取应用程序build....

我正在更新一个项目,其中所有项目都有许多不同的特性和风格.我能够解决项目中的所有库,但在更新应用程序build.gradle时遇到问题.下面是错误和gradle的.我显然误解了文档,无法找到正确的解决方案.如何在应用程序build.gradle级别解决此同步问题?

错误

Unable to resolve dependency for ':app@magicDebug/compileClasspath': Could not resolve project :vnfmdata.

Could not resolve project :vnfmdata.

Required by:

project :app

> Project :app declares a dependency from configuration 'implementation' to configuration 'regularDebug' which is not declared in the descriptor for project :vnfmdata.

应用程式build.gradle

android {

...

flavorDimensions flavor.default

productFlavors {

...

magic {

...

flavorDimensions flavor.default

// missingDimensionStrategy flavor.regular, flavor.regular

// matchingFallbacks = [flavor.regular]

dependencies {

...

implementation project(':vnfmdata')

// implementation project(path: ':vnfmdata', configuration: 'regularDebug') // pre gradle 3.0

...

}

}

}

}

___ gradle的同步以下两个库___

vnfmdata build.gradle

android {

...

flavorDimensions flavor.no_meridian, flavor.regular

productFlavors {

regular {

dimension flavor.regular

// Forces regular's flavor to point on LocationService meridian's flavor

// because their flavors' name are different

matchingFallbacks = [flavor.meridian]

}

no_meridian {

dimension flavor.no_meridian

// Will automatically point on LocationService no_meridian's flavor

// because they both have the same name

}

}

buildTypes {

release {}

}

...

}

dependencies {

...

implementation project(':vnlocationservice')

...

}

vnlocationservice build.gradle

android {

...

/** Flavors **/

flavorDimensions flavor.meridian, flavor.no_meridian

productFlavors {

no_meridian {

dimension flavor.no_meridian

}

meridian {

dimension flavor.meridian

dependencies {

implementation project(':third:Sas-Android')

implementation deps.support.compat_v26

implementation deps.play.ads

implementation deps.play.location

implementation deps.localytics

implementation 'com.arubanetworks.meridian:meridian:+@aar'

}

}

}

buildTypes {

release {}

}

...

}

dependencies {

...

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值