Skip to content

运行时报错 java.lang.RuntimeException: Unable to get provider com.qiyi.lens.ui.database.LensProvider: java.lang.ClassNotFoundException:  #4

@ljf1172361058

Description

@ljf1172361058

具体报错信息:

java.lang.RuntimeException: Unable to get provider com.qiyi.lens.ui.database.LensProvider: java.lang.ClassNotFoundException: Didn't find class "com.qiyi.lens.ui.database.LensProvider" on path: DexPathList[[zip file "/data/app/

引入方式:

dependencies {
    debugImplementation 'com.iqiyi.lens:lens:1.2.3'
    releaseImplementation 'com.iqiyi.lens:lens-no-op:1.2.3'
}

Application onCreate 方法中的代码:

LensUtil.buildConfig()
                .defaultOpen(false)
//                .enableDeviceInfo(true)
//                .enableKeyLog(KeyLogConfig.builder().addFilter("Main").setMaxLine(1000))
//                .enableFPS(true)
//                .enableLaunchTime(true)
//                .setHookFrameWorkImpl(new HookFramework())
                .enableActivityAnalyzer(true)
                .enableNetworkAnalyze(false)
                .enableCrashInfo(true)
//                .addCustomBlockEntrance(customBlockEntrance, new BlockFactory())
//              .addCustomJumpEntrance(customJumpEntrance, new JumpAction())
                .initAsPluginMode(Lens.isSDKMode())
                .enableViewInfo(true)
                .show(Lens.wrapContext(mApplication), UIUtils.getScreenWidth(mApplication) / 5 * 3);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions