Hello Everyone,
I am working on a chromium based Android browser and usring 99.0.4844.88 tag of chromium as a base.
Recently I had a requirement of adding an Ad Library to browser and show ads.
As per document of ad library we need to intialize SDK inside Application class, and did the same, initialized inside SplitChromeApplication->onCreate().. Like below
@Override
public void onCreate() {
finishPreload(CHROME_SPLIT_NAME);
super.onCreate();
Runa.init(this);
}
But after this implementation the app is crashing and giving below fatal error
-----------------------------------------------------------------------------------------------
[FATAL:resource_bundle.cc(1122)] Check failed: !data.empty(). Unable to find resource: 465. If this happens in a browser test running on Windows, it may be that dead-code elimination stripped out the code that uses the resource, causing the resource to be stripped out because the resource is not used by chrome.dll. See
https://crbug.com/1181150.
--------------------------------------------------------------------------------------------------
But when I tried to intialize same inside NewTabPage, it didin't crashed but the webpages stopped rendering and giving "Aw Snap" error. Also this lbrary uses webview internally to show ads.
The same library works perfectly with traditional Android studio projects.
Does anyone have any idea how to deal with the situation. It will great help if anyone suggest me some way forward to deal with it, currently I have no way to deal with the situation.
Thanks,
Deepak