What went wrong:
Could not determine the dependencies of task ‘:launcher: processDebugResources’.
Could not resolve all task dependencies for configuration ‘:launcher:debugRuntimeClasspath’.
Unities Solution:
If the Android build continues to fail, the likely issue is that there are some conflicting dependencies. For example, if you are using an SDK version with a dependency that is incompatible with Unity Mediation.
I hate to be ignorant, but I’m in over my head. How do I know which SDK to upgrade or where to even start looking for such SDK?
2 Likes
PatriotsvsSocialist:
What went wrong:
Could not determine the dependencies of task ‘:launcher: processDebugResources’.
Could not resolve all task dependencies for configuration ‘:launcher:debugRuntimeClasspath’.
Unities Solution:
If the Android build continues to fail, the likely issue is that there are some conflicting dependencies. For example, if you are using an SDK version with a dependency that is incompatible with Unity Mediation.
I hate to be ignorant, but I’m in over my head. How do I know which SDK to upgrade or where to even start looking for such SDK?
I am also having issues with this coming from using Admob plugin
Hello @PatriotsvsSocialist , @TonismoGames ,
Please use mainTemplate.gradle file instead of directly including the dependencies (Edit > Project Settings > Player > Android > Publishing Settings > Custom Main Gradle Template), make sure to clear out the binaries from the Plugins/Android folder (if applicable).
After that, make sure the dependencies have been resolved (you should see a popup asking you to resolve on build, click Resolve). Once that is done, please share your mainTemplate.gradle file here so we can look at what are the native dependencies being included in your build.
Thanks!
1 Like
DeclanMcPartlin:
Hello @PatriotsvsSocialist , @TonismoGames ,
Please use mainTemplate.gradle file instead of directly including the dependencies (Edit > Project Settings > Player > Android > Publishing Settings > Custom Main Gradle Template), make sure to clear out the binaries from the Plugins/Android folder (if applicable).
After that, make sure the dependencies have been resolved (you should see a popup asking you to resolve on build, click Resolve). Once that is done, please share your mainTemplate.gradle file here so we can look at what are the native dependencies being included in your build.
Thanks!
Hello, I encountered this same error. Also, here is my mainTemplate.gradle file:
// Android Resolver Repos Start
([rootProject] + (rootProject.subprojects as List)).each {
ext {
it.setProperty("android.useAndroidX", true)
it.setProperty("android.enableJetifier", true)
}
}
([rootProject] + (rootProject.subprojects as List)).each { project ->
project.repositories {
def unityProjectPath = $/file:///**DIR_UNITYPROJECT**/$.replace("\\", "/")
maven {
url "https://maven.google.com"
}
maven {
url "https://unity3ddist.jfrog.io/artifactory/unity-mediation-mvn-prod-local/" // Assets/Editor/MediationAdapterDependencies.xml:6
}
mavenLocal()
jcenter()
mavenCentral()
}
}
// Android Resolver Repos End
apply plugin: 'com.android.library'
**APPLY_PLUGINS**
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
implementation 'com.unity3d.mediation:mediation-sdk:[1.0,2.0[' // Assets/Editor/MediationAdapterDependencies.xml:8
implementation 'com.unity3d.mediation:unityads-adapter:[1.0,2.0[' // Assets/Editor/MediationAdapterDependencies.xml:10
// Android Resolver Dependencies End
**DEPS**}
// Android Resolver Exclusions Start
android {
packagingOptions {
exclude ('/lib/armeabi/*' + '*')
exclude ('/lib/mips/*' + '*')
exclude ('/lib/mips64/*' + '*')
exclude ('/lib/x86/*' + '*')
exclude ('/lib/x86_64/*' + '*')
}
}
// Android Resolver Exclusions End
android {
compileSdkVersion **APIVERSION**
buildToolsVersion '**BUILDTOOLS**'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
minSdkVersion **MINSDKVERSION**
targetSdkVersion **TARGETSDKVERSION**
ndk {
abiFilters **ABIFILTERS**
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
}
lintOptions {
abortOnError false
}
aaptOptions {
noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
}**PACKAGING_OPTIONS**
}**REPOSITORIES**
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**
1 Like
Unity Mediation has been deprecated. For more information, see: Important update about Unity Mediation