Skip to content
ELAR Systems edited this page Aug 31, 2016 · 16 revisions

To add libphonenumber 7.6.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:

compile group: 'com.google.protobuf.nano', name: 'protobuf-javanano', version: '3.0.0-alpha-7'

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 group: 'com.google.protobuf.nano', name: 'protobuf-javanano', version: '3.0.0-alpha-7'
...
}

Clone this wiki locally