App Bundle正在从libphonenumber删除资源

时间:2019-04-19 10:51:08

标签: android gradle resources apk bundle

我在设置要与App Bundles一起使用的应用程序时遇到问题。当我运行生成的APK时,我的一个依赖项缺少资源。依赖性是

'com.googlecode.libphonenumber:libphonenumber:7.7.2'. The missung resources are all the language format METADATA (PhoneNumberMetadataProto). :/

04-19 13:49:44.439 25369-25369/com.xxxxxxx.xxxxxxx E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.xxxxxxx.xxxxxxx, PID: 25369
    java.lang.IllegalStateException: missing metadata: /com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LT
        at com.google.i18n.phonenumbers.MultiFileMetadataSourceImpl.loadMetadataFromFile(MultiFileMetadataSourceImpl.java:117)
        at com.google.i18n.phonenumbers.MultiFileMetadataSourceImpl.getMetadataForRegion(MultiFileMetadataSourceImpl.java:72)
        at com.google.i18n.phonenumbers.PhoneNumberUtil.getMetadataForRegion(PhoneNumberUtil.java:2113)
        at com.google.i18n.phonenumbers.PhoneNumberUtil.parseHelper(PhoneNumberUtil.java:2965)
        at com.google.i18n.phonenumbers.PhoneNumberUtil.parse(PhoneNumberUtil.java:2829)
        at com.google.i18n.phonenumbers.PhoneNumberUtil.parse(PhoneNumberUtil.java:2819)
        at net.rimoto.intlphoneinput.IntlPhoneInput.getPhoneNumber(IntlPhoneInput.java:344)
        at net.rimoto.intlphoneinput.IntlPhoneInput.isValid(IntlPhoneInput.java:367)
        at net.rimoto.intlphoneinput.IntlPhoneInput$1.onItemSelected(IntlPhoneInput.java:62)
        at android.widget.AdapterView.fireOnSelected(AdapterView.java:931)
        at android.widget.AdapterView.dispatchOnItemSelected(AdapterView.java:920)
        at android.widget.AdapterView.-wrap1(AdapterView.java)
        at android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:890)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5422)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

0 个答案:

没有答案