E/LoadedApk: Unable to instantiate appComponentFactory only on Android Q (API 29)

you can try to add Java 1.8 compatibility

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
kotlinOptions {
    jvmTarget = "1.8"

add that code into your android { } at app/build.gradle

The error is pointing to the use of androidx CoreComponentFactory class(using AndroidX) but you are using old package com.android.support:multidex

so use androidx dependency as:

implementation 'androidx.multidex:multidex:2.0.1'

instead of

implementation 'com.android.support:multidex:2.0.1'

and make sure to use androidx imports in the application class as

import android.content.Context;
import androidx.multidex.MultiDex;
import androidx.multidex.MultiDexApplication;

public class YourApp extends MultiDexApplication {

    protected void attachBaseContext(Context base) {

Additionally: During the app Load-up, android Q uses the CoreComponentFactory instance internally whether you are using it in manifest or not, which is causing the issue.

Also, add multiDexEnabled true as defaultConfig{multiDexEnabled true }

Update: After the RCA, the componentfactory import issue was resolved with the androidx lib imports though there was another issue with the facebook sdk dependency in version 4.36.0 which was resolved by downgrading the version to 4.35.0(or use latest version integration) and also posted here.