razorpay / razorpay-android-custom-sample-app

Sample app to demonstrate the custom UI integration
MIT License
13 stars 9 forks source link

Caused by: org.gradle.api.InvalidUserDataException: #22

Closed githubashutoshsoni closed 3 years ago

githubashutoshsoni commented 4 years ago

Caused by: org.gradle.api.InvalidUserDataException: Required keys [path] are missing from map {name=razorpay-android-3.8.8, ext=aar}

also followed all the procedure right. What am I doing wrong?

keep getting this error even when I have enabled this in my manifest <meta-data android:name="com.razorpay.ApiKey" android:value="rzp_test_5XXXXXXXX" />

PraveenGirishNadumani commented 4 years ago

Download the latest SDK from the below link and add the SDK to your lib folder manually http://rzp-mobile.s3.amazonaws.com/customui/razorpay-android-3.8.8.aar after adding the SDK to the lib folder add the below dependencies to the build.gradel file dependencies { implementation(name: "razorpay-android-3.8.8", ext: 'aar') }

techexe-code commented 4 years ago

Same issue

Required keys [path] are missing from map {name=razorpay-android-3.8.10, ext=aar}.

ayush-razorpay commented 3 years ago

Please find a working solution (workaround)

  1. Place the Razorpay aar file to libs under path app/libs. (download link) ​
  2. Add the following in app/build.gradle

          Add the following dependency : 
        `      compile(name:'razorpay-android-3.9.0', ext:'aar')`

3.Also, add the following in app/build.gradle file (At it at the end)

repositories{
    flatDir{
        dirs 'libs'
    }
}