2. Add Dependencies
Add these below lines of code in build.gradle
in (Project level)
:
build.gradle
in (Project level)
:repositories {
...
mavenCentral()
}
Open build.gradle
of your app module and add below lines of code to add dependency.
build.gradle
of your app module and add below lines of code to add dependency. dependencies {
// One UPI Payment library
implementation files('libs/OneUPI.aar')
//Kotlin
implementation "androidx.core:core-ktx:1.7.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.10"
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.6.1'
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
}
Add Internet permission in your AndroidManifest.xml
file.
AndroidManifest.xml
file.<uses-permission android:name="android.permission.INTERNET"></uses-permission>
Last updated