预期的使用jcenter实现下的入门文档中概述的配置,成功构建Android mopub库。设置build.gradle(项目)包括jcenter和moat -sdk-builds库。buildscript { ext.kotlin_version = '1.3.11' repositories { google() jcenter() mavenCentral() maven { url 'https://maven.google.com' } maven { url "https://s3.amazonaws.com/moat-sdk-builds" } } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:4.2.0' classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha09" }}allprojects { repositories { google() jcenter() }}task clean(type: Delete) { delete rootProject.buildDir} 尝试的解决方案当transitive = true在摇篮被注释了该应用版本,运行,而mopub库是根据外部库部分存在。是否transitive = true需要启用?如果是这样,我该如何解决找不到com.moat.analytics.mobile.mpub:moat-mobile-app-kit错误?implementation('com.mopub:mopub-sdk:5.4.1@aar') { //transitive = true}
添加回答
举报
0/150
提交
取消