question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin with id 'kotlin-android' not found - fixed

See original GitHub issue

FIXED in 10.1.1

Thanks all for the report, sorry again 😢

Original report follows:

Bug description: Cant build project by Android Studio with next error:

A problem occurred evaluating project ':react-native-webview'.
> Plugin with id 'kotlin-android' not found.

To Reproduce: I just updated react-native-webview from 9.4.0 to 10.1.0.

Expected behavior: Build project successfully.

Environment:

  • OS: macOS
  • OS version: 10.15.4
  • react-native version: 0.62.2
  • react-native-webview version: 10.1.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:23
  • Comments:28 (3 by maintainers)

github_iconTop GitHub Comments

145reactions
Bardiamistcommented, May 28, 2020

I added in android/build.gradle

buildscript {
    ext {
        ...
        kotlinVersion = "1.3.72"
    }
    dependencies {
        ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
    }
}

That helped but I waiting guide from maintainers.

EDIT FROM MAINTAINER: this won’t be required in versions > 10.1.0, you might want to remove it if you don’t wanna risk importing 2 different versions for no reason. BTW this was a good workaround, thanks 😄

9reactions
EhteshamAnwarcommented, May 27, 2020

To Reproduce: I just installed react-native-webview ( using npm i react-native-webview) then tried to build my project got this error

1: Task failed with an exception.

  • Where: Build file ‘C:\Users\Dell\Documents\apps\audiomessage\node_modules\react-native-webview\android\build.gradle’ line: 27

  • What went wrong: A problem occurred evaluating project ‘:react-native-webview’.

Plugin with id ‘kotlin-android’ not found.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. ==============================================================================

2: Task failed with an exception.

  • What went wrong: A problem occurred configuring project ‘:react-native-webview’.

compileSdkVersion is not specified.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error:(1, 0) Plugin with id 'kotlin-android-extensions' not found
When i add this extensions in android studio preview, give me this error "Error:(1, 0) Plugin with id 'kotlin-android-extensions' not found.".
Read more >
I am getting this error in my android studio "Plugin with id ...
plugin with id 'kotlin-android' not found. One possible way to resolve it is, first, install the Kotlin plugin if it isn't installed.
Read more >
[Solved]-Plugin with id 'kotlin-android' not found. flutter-kotlin
Related Query · File Copy Flutter Plugin in Android with Kotlin · Gradle kotlin script, > Plugin with id `kotlin` not found ·...
Read more >
Incorrect Kotlin Gradle plugin version used [248824549]
Plugin [id: 'org.jetbrains.kotlin.android', version: '1.7.20-dev-1059', apply: false] was not found in any of the following sources:
Read more >
`kotlin-android` Gradle plugin can't be applied in plugins dsl
If something is still not working, please comment. kb1000 commented 31 Aug 2018 14:53 ... KotlinJvmCompile plugins { id("kotlin-android") } tasks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found