java.lang.NoClassDefFoundError: Failed resolution of: Lorg/chromium/content/R$attr

0
2019-12-18 18:22:35.208 19826-19826/? E/curitycenter:u: Not starting debugger since process cannot load the jdwp agent.
2019-12-18 18:22:35.274 19826-19826/? E/curitycenter:u: Invalid ID 0x00000000.
2019-12-18 18:22:35.668 19884-19884/? E/dboxed_process: Not starting debugger since process cannot load the jdwp agent.
2019-12-18 18:22:35.714 19801-19801/com.seal E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.seal, PID: 19801
    java.lang.NoClassDefFoundError: Failed resolution of: Lorg/chromium/content/R$attr;
        at com.mogoweb.chrome.impl.WebViewFactory$Preloader.<clinit>(WebViewFactory.java:49)
        at com.mogoweb.chrome.impl.WebViewFactory.getProvider(WebViewFactory.java:180)
        at com.mogoweb.chrome.WebView.getFactory(WebView.java:1648)
        at com.mogoweb.chrome.WebView.ensureProviderCreated(WebView.java:1643)
        at com.mogoweb.chrome.WebView.setOverScrollMode(WebView.java:1700)
        at android.view.View.<init>(View.java:4814)
        at android.view.View.<init>(View.java:4957)
        at android.view.ViewGroup.<init>(ViewGroup.java:659)
        at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55)
        at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:51)
        at com.mogoweb.chrome.WebView.<init>(WebView.java:446)
        at com.seal.ui.components.CustomWebView.<init>(CustomWebView.java:76)
        at com.seal.ui.components.CustomWebView.<init>(CustomWebView.java:65)
        at com.seal.ui.fragments.BaseWebViewFragment.createWebView(BaseWebViewFragment.java:132)
        at com.seal.ui.fragments.BaseWebViewFragment.init(BaseWebViewFragment.java:66)
        at com.seal.ui.managers.BasePhoneUIManager.addTab(BasePhoneUIManager.java:86)
        at com.seal.ui.managers.PhoneUIManager.addTab(PhoneUIManager.java:260)
        at com.seal.ui.managers.BaseUIManager.addTab(BaseUIManager.java:143)
        at com.seal.ui.managers.BaseUIManager.onNewIntent(BaseUIManager.java:303)
        at com.seal.ui.activities.SealBrowserActivity.onCreate(SealBrowserActivity.java:156)
        at android.app.Activity.performCreate(Activity.java:7232)
        at android.app.Activity.performCreate(Activity.java:7221)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2965)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3120)
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1840)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:207)
        at android.app.ActivityThread.main(ActivityThread.java:6878)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "org.chromium.content.R$attr" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.seal-8rXUJjBC1jxe3p29EkIiUQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.seal-8rXUJjBC1jxe3p29EkIiUQ==/lib/arm64, /system/lib64, /system/vendor/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:171)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.mogoweb.chrome.impl.WebViewFactory$Preloader.<clinit>(WebViewFactory.java:49) 
        at com.mogoweb.chrome.impl.WebViewFactory.getProvider(WebViewFactory.java:180) 
        at com.mogoweb.chrome.WebView.getFactory(WebView.java:1648) 
        at com.mogoweb.chrome.WebView.ensureProviderCreated(WebView.java:1643) 
        at com.mogoweb.chrome.WebView.setOverScrollMode(WebView.java:1700) 
        at android.view.View.<init>(View.java:4814) 
        at android.view.View.<init>(View.java:4957) 
        at android.view.ViewGroup.<init>(ViewGroup.java:659) 
        at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:55) 
        at android.widget.AbsoluteLayout.<init>(AbsoluteLayout.java:51) 
        at com.mogoweb.chrome.WebView.<init>(WebView.java:446) 
        at com.seal.ui.components.CustomWebView.<init>(CustomWebView.java:76) 
        at com.seal.ui.components.CustomWebView.<init>(CustomWebView.java:65) 
        at com.seal.ui.fragments.BaseWebViewFragment.createWebView(BaseWebViewFragment.java:132) 
        at com.seal.ui.fragments.BaseWebViewFragment.init(BaseWebViewFragment.java:66) 
        at com.seal.ui.managers.BasePhoneUIManager.addTab(BasePhoneUIManager.java:86) 
        at com.seal.ui.managers.PhoneUIManager.addTab(PhoneUIManager.java:260) 
        at com.seal.ui.managers.BaseUIManager.addTab(BaseUIManager.java:143) 
        at com.seal.ui.managers.BaseUIManager.onNewIntent(BaseUIManager.java:303) 
        at com.seal.ui.activities.SealBrowserActivity.onCreate(SealBrowserActivity.java:156) 
        at android.app.Activity.performCreate(Activity.java:7232) 
        at android.app.Activity.performCreate(Activity.java:7221) 
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272) 
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2965) 
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3120) 
        at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) 
        at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) 
        at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1840) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:207) 
        at android.app.ActivityThread.main(ActivityThread.java:6878) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876) 

This is my error, here is the error code

org.chromium.content.R.attr.select_dialog_multichoice = com.mogoweb.chrome.R.attr.select_dialog_multichoice;

R file in org.chromium.content

public final class R {
    /** Attributes */
    public static final class attr {
        public static int select_dialog_multichoice;
        public static int select_dialog_singlechoice;
    }
}

No R file found in org.chromium.content

But you can click com.mogoweb.chrome.R.attr.select_dialog_multichoice, it will enter the xml file

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.

     Use of this source code is governed by a BSD-style license that can be
     found in the LICENSE file.
-->

<resources>
    <attr name="select_dialog_multichoice" format="reference" />
    <attr name="select_dialog_singlechoice" format="reference" />
</resources>

The file location is in src / value / attrs_content.xml

Why does this happen? How to solve it? thank

android
google-chrome
asked on Stack Overflow Dec 19, 2019 by limengxin

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0