Cannot resolve PhoneNumberUtil character

I am trying to use libphonenumber from https://github.com/googlei18n/libphonenumber , I already add it depending, but it shows that "it is not possible to resolve the PhoneNumberUtil character". Why is this? By the way, I am using android studio

+4
source share
3 answers

Thanks to everyone. I found my answer. I manually add compile 'com.googlecode.libphonenumber: libphonenumber: 7.0.4' to build.gradle

when I try to find it by searching in the add library, I can not find it

+6
source

Below are the instructions in 6 steps for Android Studio:

  • " → "
  • "".
  • "+" .
  • "1. " ( , , )
  • "libphonenumber"
  • lib "" ""

.

+3

Downlaod the libphonenumber Jar from Here libphonenumber-3.0.0-javadoc.jar

libphonenumber-3.0.0-javadoc.jar libs .

gradle,

compile files ('libs/libphonenumber-3.0.0-javadoc.jar' )

Apps gradle file should now look like below image

"" gradle "".

enter image description here

PhoneNumberUtil.

0
source

All Articles