Trying to add module to project. Plugin with id 'kotlin-android' not found

Looking at the library structure on Github, it seems you need to do the following

  • Go to YOUR project level build.gradle file (not the module level build.gradle)
  • Look at the repositories, dependencies in the Library's project level build.gradle file and copy them over to YOUR project level build.gradle file (including the kotlin-gradle-plugin dependency)

Note: in case you haven't worked with External variables syntax before, you can find those variables for this library in the root directory of the github repository.

In this case, writing

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"` 

will resolve to the following (you can directly write this in your project)

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.11"