Android Studio Dependency


#1

Hie there , i am trying to add the pay now dependency to android studio 4 but i am getting this error

Unable to resolve dependency for ‘:app@debugUnitTest/compileClasspath’: Could not resolve org.apache.commons:commons-math3:3.6.1.
Show Details
Affected Modules: app

thank you in advance, fingers crossed

/////////////////////////////////here is a sample of my application level Gradle
buildscript {
repositories {
google()
jcenter()
mavenCentral()

}
dependencies {
    classpath "com.android.tools.build:gradle:4.0.0"
}

}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

////////////////sample of my application level gradle

apply plugin: ‘com.android.application’

android {
compileSdkVersion 29
buildToolsVersion “30.0.0”

defaultConfig {
    applicationId "com.example.myapplication"
    minSdkVersion 24
    targetSdkVersion 29
    versionCode 1
    versionName "1.0"

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {
implementation fileTree(dir: “libs”, include: ["*.jar"])
implementation ‘androidx.appcompat:appcompat:1.1.0’
implementation ‘androidx.constraintlayout:constraintlayout:1.1.3’
testImplementation ‘junit:junit:4.12’
androidTestImplementation ‘androidx.test.ext:junit:1.1.1’
androidTestImplementation ‘androidx.test.espresso:espresso-core:3.2.0’

implementation 'zw.co.paynow:java-sdk:1.1.1'

}