无法找到要解析GlideModules

时间:2016-03-14 14:01:42

标签: android android-glide

我在我的项目中使用Glide,它完美无缺 问题是我不时遇到Fabric(Crashlytics)的崩溃 崩溃原因:无法找到解析GlideModules的元数据。 它发生在像#34; Affordable -A101"这样的奇怪设备中。 我认为它无法找到包裹的名称,但我不知道它为什么会发生以及如何解决它。

日志

Fatal Exception: java.lang.RuntimeException: Unable to create application com.infibond.base.BaseApplication: java.lang.RuntimeException: Unable to find metadata to parse GlideModules
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4544)
       at android.app.ActivityThread.access$1500(ActivityThread.java:151)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381)
       at android.os.Handler.dispatchMessage(Handler.java:110)
       at android.os.Looper.loop(Looper.java:193)
       at android.app.ActivityThread.main(ActivityThread.java:5299)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
       at dalvik.system.NativeStart.main(NativeStart.java)
Caused by java.lang.RuntimeException: Unable to find metadata to parse GlideModules
       at com.bumptech.glide.module.ManifestParser.parse(ManifestParser.java:35)
       at com.bumptech.glide.Glide.get(Glide.java:149)
       at com.infibond.base.BaseApplication.initGlide(BaseApplication.java:165)
       at com.infibond.base.BaseApplication.onCreate(BaseApplication.java:127)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4541)
       at android.app.ActivityThread.access$1500(ActivityThread.java:151)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1381)
       at android.os.Handler.dispatchMessage(Handler.java:110)
       at android.os.Looper.loop(Looper.java:193)
       at android.app.ActivityThread.main(ActivityThread.java:5299)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
       at dalvik.system.NativeStart.main(NativeStart.java)

ApplicationBase:

    @Override
    public void onCreate() {
        super.onCreate();
        if (InfiLogger.LOGGING.isLogEnabled(InfiLogger.LOGGING.LOG_FLAG_LIFECYCLE)) {
            InfiLogger.i(InfiLogger.LOGGING.TAG_LIFECYCLE, getClass().getSimpleName() + " onCreate()");
        }

        initCrashlytics();
        initCustomFontsLib();
        sInstance = (BaseApplication) this.getApplicationContext();
        sMainAppHandler = new Handler();

        // print current SHA code for package
        //JavaUtils.printSHACodesForPackage(getPackageName());

        // update app internet connectivity status
        InfiConnectivityBroadcastReceiver.updateConnectivity();

        AdobeCSDKFoundation.initializeCSDKFoundation(getApplicationContext());

        saveCurrentLocale();

        DBManager.initializeActiveAndroid(this);

        //initNewRelic();

        handleSSLHandshake();

        initGlide();
    }

    private void initGlide() {
        Glide.get(this).setMemoryCategory(MemoryCategory.HIGH);
    }

0 个答案:

没有答案