Skip to content
Chaitanya Pramod edited this page Apr 2, 2017 · 16 revisions

To add libphonenumber 8.2.0 to your Android Studio Project, add these to your project build.gradle file:

  1. Enable Maven Repository in your project if it has not been done yet:
repositories {
    mavenCentral()
}
  1. Add this line to your Gradle File to compile the dependencies:
dependencies {
    ...
    compile 'com.googlecode.libphonenumber:libphonenumber:8.2.0'
}

Your Gradle file should look similar to this:

    ...  
    }
    compileSdkVersion 24
    buildToolsVersion "24.0.0"
    defaultConfig {
        applicationId "your_package_name"
        minSdkVersion 15
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.PAKAGE_NAME
        }
    }
    productFlavors {
    }
}
  
repositories {
    mavenCentral()
}
  
dependencies {
    ...
    compile 'com.googlecode.libphonenumber:libphonenumber:8.2.0'
    ...
}
Clone this wiki locally