Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Facebook Account Kit Crash - missing metadata: /com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CN

I am suddenly getting a number of crash reports around this the past few weeks. The crashes indicated missing metadata for certain country code. Most of them have been one of:

  • PhoneNumberMetadataProto_CN
  • PhoneNumberMetadataProto_BR
  • PhoneNumberMetadataProto_IR

The crashes seems to have occurred out of nowhere. I attempted to upgrade the AccountKit version from 4.28.0 to 4.31.0. This resulted in a moving where the crash occurred from com.facebook.accountkit.internal.Utility.parseNumber to com.facebook.accountkit.ui.PhoneNumberTextWatcher.getFormattedNumber but the crash is still occurring.

My next plan of attack is to try including the com.googlecode.libphonenumber dependency directly via Gradle instead of letting it just get included transitively from the AccountKit SDK, but I'm not holding my breath that it will fix the problem. Any other ideas are much appreciated.

like image 323
Cain Wong Avatar asked Mar 22 '18 23:03

Cain Wong


People also ask

Does Facebook app keep crashing on Android device?

Sadly, Facebook app, similar to other apps isn’t free of bugs and crashes at times. If you are facing an issue where the Facebook app keeps crashing on your Android device, you have come to the right place. Here, I will share 9 solutions to fix the Facebook app. Let’s get started. 1. Reboot Phone

How to fix Facebook not responding on Android phone?

Step 1: Open device Settings on your phone and tap on Apps & notifications or App Manager depending on the option present in your device. Step 2: If the apps are available directly, tap on all apps, otherwise tap on Installed apps. Step 3: Under Installed apps, tap on Facebook. Step 4: Tap on Storage and hit the Clear cache button. 4. Clear Data

How do I get a Facebook app ID?

To get a Facebook App ID, configure your app's settings, and import the Facebook SDK for Android, click on the button below and follow the instructions. To use the Facebook SDK in an Android Studio project, add the SDK as a build dependency and import the SDK.

Where can I download the Facebook SDK for Android?

You can also download the entire current Android SDK. See facebook/facebook-android-sdk on GitHub. Facebook SDK for Android v4.12.0 through v4.13.1 has an app events logging bug.


1 Answers

I am having same problem here. i am endup with adding dependency in gradle (like your next plan). Its working fine.

dependencies {
    ...
    compile 'com.googlecode.libphonenumber:libphonenumber:8.+'
}
like image 107
Johny Jugianto Avatar answered Nov 04 '22 01:11

Johny Jugianto