Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome crash with "NoClassDefFoundError" exception--device compatibility #31

Open
msahad opened this issue May 3, 2017 · 3 comments
Open

Comments

@msahad
Copy link

msahad commented May 3, 2017

In some devices (Samsung tab 3) Chrome app cannot be opened. Every time it crashes with following exception.

org.chromium.chrome.browser E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.chromium.chrome.browser, PID: 15079
java.lang.NoClassDefFoundError: org.chromium.chrome.browser.provider.ChromeBrowserProvider$1 at org.chromium.chrome.browser.provider.ChromeBrowserProvider.onCreate(ChromeBrowserProvider.java:248)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
at android.app.ActivityThread.installProvider(ActivityThread.java:5221)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4815)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4698)
at android.app.ActivityThread.access$1600(ActivityThread.java:172)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1365)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5598)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)

@msahad msahad changed the title Chrome crash with "no class found exception" Chrome crash with "NoClassDefFoundError" exception May 3, 2017
@JackyAndroid
Copy link
Owner

duplicate #2 #7

@msahad
Copy link
Author

msahad commented May 3, 2017

Instant run is already disabled. App crash even in release build. It happens only in some models like samsung tab 2 and some LG devices. In all other devices working fine.

@JackyAndroid JackyAndroid reopened this May 4, 2017
@JackyAndroid JackyAndroid changed the title Chrome crash with "NoClassDefFoundError" exception Chrome crash with "NoClassDefFoundError" exception--device compatibility May 4, 2017
@uplusplus
Copy link
Contributor

add the follow line:

    MultiDex.install(this);

to

org.chromium.chrome.browser.ChromeApplication#attachBaseContext

uplusplus added a commit to uplusplus/AndroidChromium that referenced this issue Nov 24, 2017
fix bug on android 4.4.2
JackyAndroid added a commit that referenced this issue Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants