Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using LibPhoneNumber google lib in Android

The library libphonenumber doesn't work on Android and the exception says: "Caused by: java.lang.UnsupportedOperationException: CANON_EQ flag not supported"

The description in the webpage says that the lib is for "Smartphones" but Android doesn't support CANON_EQ reg_ex flag..

Am I missing something?

like image 992
shaimagz Avatar asked Jan 27 '11 15:01

shaimagz


1 Answers

If you're using Android studio use

implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.32'

If you want to download the latest JAR file goto

http://mvnrepository.com/artifact/com.googlecode.libphonenumber/libphonenumber

like image 82
Bala Vishnu Avatar answered Nov 08 '22 20:11

Bala Vishnu