I tried to add mXparser library downloaded from here.
I have downloaded zip file and extracted java part as the separate file. I've created 'libraries' file under Project structure and pasted this library inside. Then I've added include ':libraries:mXparser' inside settings.gradle file.
After this step I clicked File -> Project Structure -> Dependencies -> + -> Module dependency and I added this library and clicked "OK".
I'm getting these errors after compilation. How to fix them?
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :libraries:mXparser. Open File Show Details
Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :libraries:mXparser. Open File Show Details
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :libraries:mXparser. Open File Show Details
Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :libraries:mXparser. Open File Show Details
Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :libraries:mXparser. Open File Show Details
build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.51'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}