java.lang.NoSuchMethodError: com.google.i18n.phonenumbers.PhoneNumberUtil.getSupportedRegions

966 views
Skip to first unread message

Kevin Law

unread,
Jul 15, 2011, 7:09:59 PM7/15/11
to libphonenum...@googlegroups.com
getSupportedRegions seems to typically work fine, except I've gotten a
lot of reports of crashes on android tablets.

"java.lang.NoSuchMethodError:
com.google.i18n.phonenumbers.PhoneNumberUtil.getSupportedRegions"

I haven't been able to reproduce it myself though. Does anyone know
under which conditions that method isn't available?

Thanks,
Kevin

Shaopeng

unread,
Jul 18, 2011, 5:32:14 AM7/18/11
to libphonenum...@googlegroups.com
Hello Kevin,

This seems to be odd. The method has been public. Which version of the library are we talking about here? It would help speed up debugging if you can obtain more information from users who reported the problem.

Cheers,

Shaopeng

Kevin Law

unread,
Jul 18, 2011, 1:17:49 PM7/18/11
to libphonenum...@googlegroups.com
Hey Shaopeng,

I'm seeing these errors through the android developers console, so
unfortunately I'm not able to reach out to the users.

We're seeing these errors on libphonenumber 3.6 and 3.7. This may not
be relevant, but of the users who reported the type of device all of
them were on android tablets. A relatively small percentage of our
android users use tablets.

Jul 17, 2011 6:11:32 AM1.1.7 not working on Asus android tap transform
Jul 12, 2011 5:46:55 PM1.1.6 لا استطيع تشغيل البرنامج على جهاز
موتورولا زووم (motorola xoom)
Jul 10, 2011 9:49:09 AM1.1.4 alwaye force close on my g slate, cant open it
Jul 10, 2011 4:04:05 AM1.1.4 doesnt work on samsung galaxy tab 10.1
Jun 29, 2011 5:54:46 AM1.1.4 not work on my tab

Is it possible the issue is related to android 3.0? I don't actually
have a device running that on hand, but I could probably get ahold of
one.

--Kevin

Kevin Law

unread,
Jul 18, 2011, 9:44:55 PM7/18/11
to libphonenum...@googlegroups.com
So I just found a googler with a tablet running android 3.0, and was
able to reproduce it. Let me know if there's any other information
that would help track this down now that I can reproduce it reliably.
If you have a tablet on hand, try downloading blip.me from the android
market. You'll see the crash on the second registration screen.

2011/7/18 Kevin Law <ke...@caminoreal-inc.com>:

Shaopeng

unread,
Jul 19, 2011, 4:54:16 AM7/19/11
to libphonenum...@googlegroups.com
Thanks for the info Kevin. Please raise an issue in the project site to keep track this, and I will try to investigate.

Thanks,

Shaopeng

2011/7/19 Kevin Law <ke...@caminoreal-inc.com>

Gustavo

unread,
Jun 18, 2012, 7:27:51 PM6/18/12
to libphonenum...@googlegroups.com
Are there any recommended solution for this issue?  We are also facing it now.    One option would be for us to change the package name of the libphonenumber libary distributed with our application but I prefer not to do that if there is an alternative solution.

Thx a lot,

Shaopeng

unread,
Jun 19, 2012, 4:02:47 AM6/19/12
to libphonenum...@googlegroups.com
Repackaging it might be the best way to solve this. By the way, you should only need to do this for devices running Honeycomb, as libphoenumber doesn't exist on Android before Honeycomb, and I have resolved this since ICS (I have repackaged the Android version of libphonenumber to com.android.i18n.phonenumbers).

Cheers,

Shaopeng

2012/6/19 Gustavo <gust...@gmail.com>
Reply all
Reply to author
Forward
0 new messages