-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Home
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:
- Enable Maven Repository in your project if it has not been done yet:
repositories {
mavenCentral()
}
- 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'
...
}
I would like to suggest this feature:
https://stackoverflow.com/questions/51962913/get-all-state-phone-code-in-a-country