1

I am trying to add the truecaller sdk. But I'm facing this error:

Failed to resolve: :truesdk-0.7-releasePartner

I have Googled it a lot but haven't found a solution.

dependencies { implementation(name: "truesdk-0.7-releasePartner", ext: "aar") }
Rajasimman R
  • 496
  • 4
  • 14
junaid amjad
  • 83
  • 1
  • 2
  • 5

6 Answers6

3

There is a mismatch in the file provided with TC Sdk and the documentation, Basically the file name is truesdk-v0.7-releasePartner.aar, while the name as mentioned in documentation is truesdk-0.7-releasePartner.

You need to add 'v' before '0.7' while mentioning the dependency.

1

Did you try looking at the documentation mentioned here? It explains exactly how you can integrated the SDK to your Android app. (Step 2 on Using the SDK with your Android Studio Project ) https://github.com/truecaller/android-sdk


Specifically on your issue, it looks like you've not added the SDK aar to your lib folder. The SDK aar itself can be obtained along with the partner key and access credentials when you sign up as a developer here (https://developer.truecaller.com/ ) and add your app details.

Codevalley
  • 4,593
  • 7
  • 42
  • 56
1

You have to download the the aar file and add into the project by File > New Module > Import .jar/.aar Package. and then add implementation "com.truecaller.android.sdk:truecaller-sdk:0.8" Here is the link for the latest truecaller SDK-

1

I hope this helps someone, as other answers provided here did not work for me

Go to File->New->New Module

Select the "Import .JAR/.AAR Package" item and click next button

go to Project Structure (Ctrl+alt+shift+s) select dependencies from left panel click on + icon from declared dependencies select module dependency there you can see your Truecaller dependency, click on it and Voila! Done.

rookieDeveloper
  • 2,459
  • 1
  • 22
  • 44
0

Add the following lines to your build.gradle(root) file.

repositories {
    flatDir {
        dirs 'libs'
    }
}
Mikhail Kholodkov
  • 23,642
  • 17
  • 61
  • 78
0

Use the latest sdk

implementation "com.truecaller.android.sdk:truecaller-sdk:0.8"
Jarin Rocks
  • 975
  • 10
  • 17