Android App getting crash

Hi I’m tweaking your browser little bit to create my own.

The app is getting crashed and when I did the stack trace it is showing that fatal error.

2024-02-21 02:45:21.522 29343-29379 AndroidRuntime com.myapp.browser_default E FATAL EXCEPTION: CrAsyncTask #3 Process: com.myapp.browser_default, PID: 29343 java.lang.RuntimeException: An error occurred while executing doInBackground()
at Ie.done(chromium-MonochromePublic6432.aab-default-2202524:41)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:381)
at java.util.concurrent.FutureTask.setException(FutureTask.java:250)
at java.util.concurrent.FutureTask.run(FutureTask.java:269)
at Ie.run(chromium-MonochromePublic6432.aab-default-2202524:26)
at pe2.f(chromium-MonochromePublic6432.aab-default-2202524:64)
at ne2.run(chromium-MonochromePublic6432.aab-default-2202524:3)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)

Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/chromium/chrome/browser/partnercustomizations/myappCustomizationProviderDelegateImpl;
at vf1.n(chromium-MonochromePublic6432.aab-default-2202524:23)
at vf1.b(chromium-MonochromePublic6432.aab-default-2202524:1)
at He.call(chromium-MonochromePublic6432.aab-default-2202524:10)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at Ie.run(chromium-MonochromePublic6432.aab-default-2202524:26)
at pe2.f(chromium-MonochromePublic6432.aab-default-2202524:64)
at ne2.run(chromium-MonochromePublic6432.aab-default-2202524:3)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “org.chromium.chrome.browser.partnercustomizations.myappCustomizationProviderDelegateImpl” on path: DexPathList[[zip file “/data/app/~~2adfafaf123A==/com.myapp.browser_default-OCadfafaa123_8ZZAkO-sQ==/split_chrome.apk”],nativeLibraryDirectories=[/system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at vf1.n(chromium-MonochromePublic6432.aab-default-2202524:23)
at vf1.b(chromium-MonochromePublic6432.aab-default-2202524:1)
at He.call(chromium-MonochromePublic6432.aab-default-2202524:10)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at Ie.run(chromium-MonochromePublic6432.aab-default-2202524:26)
at pe2.f(chromium-MonochromePublic6432.aab-default-2202524:64)
at ne2.run(chromium-MonochromePublic6432.aab-default-2202524:3)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)

I checked my class and gn file and matched with your branch too,it is same.
I’m on 115 stable build for android,yours 1.56.x branch.

After this the cpp error I’m getting is:

myapp_main_delegate.cc file followed by ebounce_service_factory.cc
ipfs_service_factory.cc followed by permission_lifetime_manager_factory.

The code line in which it is showing error in myapp_main_delegate.cc

content::ContentBrowserClient* myappMainDelegate::CreateContentBrowserClient() {
  LOG(ERROR) << __func__ << "  :  1";
#if defined(CHROME_MULTIPLE_DLL_CHILD)
  return NULL;
#else
  if (chrome_content_browser_client_ == nullptr) {
    LOG(ERROR) << __func__ << "  :  2";
    chrome_content_browser_client_ =
        std::make_unique<myappContentBrowserClient>();
  }
  LOG(ERROR) << __func__ << "  :  3";
  return chrome_content_browser_client_.get();
#endif
}

Help me in this.

The crash is happening after the browser runs,the logo of my browser came,after that next activity should be welcome to myapp,do you want to make it default.

It is stuck on the when the logo came on that activity when the android browser starts.