play-services-plugins
play-services-plugins copied to clipboard
ERROR: Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71.
Describe the bug When running gradle sync, I receive the following error, after following instructions in the github page for configuring the plugin.
ERROR: Could not find org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.71. Searched in the following locations:
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.2.71/kotlin-stdlib-jdk8-1.2.71.pom
- https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.2.71/kotlin-stdlib-jdk8-1.2.71.jar Required by: project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 > com.android.tools.lint:lint-gradle-api:26.2.1 project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:gradle-api:3.2.1 project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 > androidx.databinding:databinding-compiler-common:3.2.1 project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdk-common:26.2.1 project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:common:26.2.1 project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools.build:manifest-merger:26.2.1 project :mobile > com.google.android.gms:oss-licenses-plugin:0.10.0 > com.android.tools.build:gradle:3.2.1 > com.android.tools.build:builder:3.2.1 > com.android.tools:sdklib:26.2.1 > com.android.tools:repository:26.2.1
To Reproduce
-
Open module's build.grade file
-
Add the two references to com.google.android.gms:oss-licenses-plugin:0.10.0
buildscript { repositories { // ... google() // or maven { url "https://maven.google.com" } for Gradle <= 3 } dependencies { // ... // Add this line: classpath 'com.google.android.gms:oss-licenses-plugin:0.10.0' } } apply plugin: 'com.android.application' apply plugin: 'com.google.android.gms.oss-licenses-plugin'
- Click sync gradle file.
Produces the error given above.
-
Comment out the two references to com.google.android.gms.oss-licenses-plugin
-
Resync the gradle file.
The error goes away.
Expected behavior
I expect my build.gradle file to sync properly, after following the instructions on the github page.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- Gradle version: 5.4.1
- Gradle plugin version: 3.5.3.
- Android Studio version [e.g. 3.5.3
- Plugin name and version: OSS Licenses 0.10.1, 0.10.0
Additional context
My project does not use Kotlin, and may be missing some configuration for kotlin.
Try adding jcenter()
to your list of repositories.
I am affected by this isse as well.
As soon as I add apply plugin: 'com.google.android.gms.oss-licenses-plugin'
to my app's builde.gradle, I receive the following error on building the project (Gradle sync works fine):
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:getDependencies'.
> Could not find kotlin-stdlib.23d0bdf2 (org.jetbrains.kotlin:kotlin-stdlib:1.3.71).
Searched in the following locations:
https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.71/kotlin-stdlib-1.3.71.23d0bdf2
project/build.gradle
buildscript {
ext {
repos = {
google()
jcenter()
maven { url 'https://jitpack.io' }
}
}
repositories repos
dependencies {
classpath 'com.android.tools.build:gradle:3.6.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.71'
classpath 'org.jetbrains.kotlin:kotlin-serialization:1.3.71'
classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.2.1'
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.2'
}
}
allprojects {
repositories repos
}
app/build.gradle
apply plugin: 'com.android.application'
apply plugin: 'com.google.android.gms.oss-licenses-plugin'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlinx-serialization'
apply plugin: 'androidx.navigation.safeargs.kotlin'