java.lang.RuntimeException: Unable to start activity ComponentInfo{yinote.android/yinote.android.noteedit.NoteEditActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView

JIRA | 路辉 | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    1.use crosswalk as library in eclipse 2.replace webview for the rich text editor 3.no confusion before signature, everything was normal 4.To confuse the signature ========================= Expected Outcome:everything was normal ========================= Actual Outcome:app crash, Caused by:Binary XML file line #2: Error inflating class org.xwalk.core.XWalkView ========================= Test Case Source Code ===================== proguard.cfg: -libraryjars ..\\crosswalk-webview-10.39.235.15-arm -dontwarn com.googlecode.eyesfree.braille.** -keep class com.googlecode.eyesfree.braille.**{*;} -dontwarn javax.annotation.** -keep class javax.annotation.**{*;} -dontwarn org.chromium.** -keep class org.chromium.**{*;} -dontwarn org.xwalk.core.** -keep class org.xwalk.core.**{*;} -keep class org.xwalk.core.internal.**{*;} java code: public class XXXX extends RelativeLayout: // umeditor = new WebView(getContext()); xwalkviewLayout = (LinearLayout) LinearLayout.inflate(getContext(), R.layout.custom_webview, null); LinearLayout.LayoutParams walklayoutParams =new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, UISizeConfig.getScreenHeight()-DsUtils.getDensityDimen(UI_NOTE_OTHER_WEIGHT_LENGTH)); walklayoutParams.leftMargin = (int) (UI_NOTE_TEXT_X_MARGIN * density); walklayoutParams.rightMargin = (int) (UI_NOTE_TEXT_X_MARGIN * density); xwalkviewLayout.setLayoutParams(walklayoutParams); contentLayout.addView(xwalkviewLayout); umeditor = (XWalkView) xwalkviewLayout.findViewById(R.id.xwalkview); .... .... custom_webview.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/xwalkview_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <org.xwalk.core.XWalkView android:id="@+id/xwalkview" android:layout_width="match_parent" android:layout_height="match_parent" > </org.xwalk.core.XWalkView> </LinearLayout> -------------------------------------------- log: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{yinote.android/yinote.android.noteedit.NoteEditActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358) at android.app.ActivityThread.access$600(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView at android.view.LayoutInflater.createView(LayoutInflater.java:613) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at android.view.View.inflate(View.java:16556) at yinote.android.noteedit.EditMainViewGroup.<init>(Unknown Source) at yinote.android.noteedit.EditMainViewGroup.<init>(Unknown Source) at yinote.android.noteedit.be.<init>(Unknown Source) at yinote.android.noteedit.NoteEditActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:5122) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) ... 11 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) at android.view.LayoutInflater.createView(LayoutInflater.java:587) ... 24 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.xwalk.core.ReflectionHelper.handleException(Unknown Source) at org.xwalk.core.ReflectionHelper.createInstance(Unknown Source) at org.xwalk.core.XWalkView.<init>(Unknown Source) ... 27 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) ... 29 more Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 at android.content.res.Resources.getText(Resources.java:237) at android.content.res.Resources.getString(Resources.java:321) at android.content.Context.getString(Context.java:327) at org.xwalk.core.internal.XWalkUIClientInternal.initResources(Unknown Source) at org.xwalk.core.internal.XWalkUIClientInternal.<init>(Unknown Source) at org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(Unknown Source) at org.xwalk.core.internal.XWalkViewInternal.init(Unknown Source) at org.xwalk.core.internal.XWalkViewInternal.<init>(Unknown Source) at org.xwalk.core.internal.XWalkViewBridge.<init>(Unknown Source) ... 31 more --------------i think this is the main info----------------------------------------------------------more info---------------------------------------- public class EditMainViewGroup extends RelativeLayout { .............. LayoutInflater inflater = (LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); xwalkviewLayout = (LinearLayout) inflater.inflate(R.layout.custom_webview, null); LinearLayout.LayoutParams walklayoutParams =new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, UISizeConfig.getScreenHeight()-DsUtils.getDensityDimen(UI_NOTE_OTHER_WEIGHT_LENGTH)); walklayoutParams.leftMargin = (int) (UI_NOTE_TEXT_X_MARGIN * density); walklayoutParams.rightMargin = (int) (UI_NOTE_TEXT_X_MARGIN * density); xwalkviewLayout.setLayoutParams(walklayoutParams); contentLayout.addView(xwalkviewLayout); umeditor = (XWalkView) xwalkviewLayout.findViewById(R.id.xwalkview); .......... } public class EditActivity{ ................... mNoteContent = mMainViewGroup.getUmeditor(); mNoteContent.clearCache(true); mNoteContent.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); mNoteContent.addJavascriptInterface(new Object() { ................ ............... @JavascriptInterface public String getResDirWeb() { return Global.resDirWeb; } }, "test"); mNoteContent.load("file:///android_asset/umeditor.html",null);

    JIRA | 2 years ago | 路辉
    java.lang.RuntimeException: Unable to start activity ComponentInfo{yinote.android/yinote.android.noteedit.NoteEditActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView
  2. 0

    [XWALK-3531] android.view.InflateException: Binary XML file line #2: Error inflating class org.xwalk.core.XWalkView - Crosswalk-Project JIRA

    crosswalk-project.org | 8 months ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{yinote.android/yinote.android.noteedit.NoteEditActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView
  3. 0

    1.use crosswalk as library in eclipse 2.replace webview for the rich text editor 3.no confusion before signature, everything was normal 4.To confuse the signature ========================= Expected Outcome:everything was normal ========================= Actual Outcome:app crash, Caused by:Binary XML file line #2: Error inflating class org.xwalk.core.XWalkView ========================= Test Case Source Code ===================== proguard.cfg: -libraryjars ..\\crosswalk-webview-10.39.235.15-arm -dontwarn com.googlecode.eyesfree.braille.** -keep class com.googlecode.eyesfree.braille.**{*;} -dontwarn javax.annotation.** -keep class javax.annotation.**{*;} -dontwarn org.chromium.** -keep class org.chromium.**{*;} -dontwarn org.xwalk.core.** -keep class org.xwalk.core.**{*;} -keep class org.xwalk.core.internal.**{*;} java code: public class XXXX extends RelativeLayout: // umeditor = new WebView(getContext()); xwalkviewLayout = (LinearLayout) LinearLayout.inflate(getContext(), R.layout.custom_webview, null); LinearLayout.LayoutParams walklayoutParams =new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, UISizeConfig.getScreenHeight()-DsUtils.getDensityDimen(UI_NOTE_OTHER_WEIGHT_LENGTH)); walklayoutParams.leftMargin = (int) (UI_NOTE_TEXT_X_MARGIN * density); walklayoutParams.rightMargin = (int) (UI_NOTE_TEXT_X_MARGIN * density); xwalkviewLayout.setLayoutParams(walklayoutParams); contentLayout.addView(xwalkviewLayout); umeditor = (XWalkView) xwalkviewLayout.findViewById(R.id.xwalkview); .... .... custom_webview.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/xwalkview_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <org.xwalk.core.XWalkView android:id="@+id/xwalkview" android:layout_width="match_parent" android:layout_height="match_parent" > </org.xwalk.core.XWalkView> </LinearLayout> -------------------------------------------- log: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{yinote.android/yinote.android.noteedit.NoteEditActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358) at android.app.ActivityThread.access$600(ActivityThread.java:156) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:153) at android.app.ActivityThread.main(ActivityThread.java:5299) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(Native Method) Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView at android.view.LayoutInflater.createView(LayoutInflater.java:613) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) at android.view.LayoutInflater.inflate(LayoutInflater.java:489) at android.view.LayoutInflater.inflate(LayoutInflater.java:396) at android.view.LayoutInflater.inflate(LayoutInflater.java:352) at android.view.View.inflate(View.java:16556) at yinote.android.noteedit.EditMainViewGroup.<init>(Unknown Source) at yinote.android.noteedit.EditMainViewGroup.<init>(Unknown Source) at yinote.android.noteedit.be.<init>(Unknown Source) at yinote.android.noteedit.NoteEditActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:5122) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270) ... 11 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) at android.view.LayoutInflater.createView(LayoutInflater.java:587) ... 24 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.xwalk.core.ReflectionHelper.handleException(Unknown Source) at org.xwalk.core.ReflectionHelper.createInstance(Unknown Source) at org.xwalk.core.XWalkView.<init>(Unknown Source) ... 27 more Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) ... 29 more Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 at android.content.res.Resources.getText(Resources.java:237) at android.content.res.Resources.getString(Resources.java:321) at android.content.Context.getString(Context.java:327) at org.xwalk.core.internal.XWalkUIClientInternal.initResources(Unknown Source) at org.xwalk.core.internal.XWalkUIClientInternal.<init>(Unknown Source) at org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(Unknown Source) at org.xwalk.core.internal.XWalkViewInternal.init(Unknown Source) at org.xwalk.core.internal.XWalkViewInternal.<init>(Unknown Source) at org.xwalk.core.internal.XWalkViewBridge.<init>(Unknown Source) ... 31 more --------------i think this is the main info----------------------------------------------------------more info---------------------------------------- public class EditMainViewGroup extends RelativeLayout { .............. LayoutInflater inflater = (LayoutInflater)getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); xwalkviewLayout = (LinearLayout) inflater.inflate(R.layout.custom_webview, null); LinearLayout.LayoutParams walklayoutParams =new LinearLayout.LayoutParams( LinearLayout.LayoutParams.MATCH_PARENT, UISizeConfig.getScreenHeight()-DsUtils.getDensityDimen(UI_NOTE_OTHER_WEIGHT_LENGTH)); walklayoutParams.leftMargin = (int) (UI_NOTE_TEXT_X_MARGIN * density); walklayoutParams.rightMargin = (int) (UI_NOTE_TEXT_X_MARGIN * density); xwalkviewLayout.setLayoutParams(walklayoutParams); contentLayout.addView(xwalkviewLayout); umeditor = (XWalkView) xwalkviewLayout.findViewById(R.id.xwalkview); .......... } public class EditActivity{ ................... mNoteContent = mMainViewGroup.getUmeditor(); mNoteContent.clearCache(true); mNoteContent.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); mNoteContent.addJavascriptInterface(new Object() { ................ ............... @JavascriptInterface public String getResDirWeb() { return Global.resDirWeb; } }, "test"); mNoteContent.load("file:///android_asset/umeditor.html",null);

    JIRA | 2 years ago | 路辉
    java.lang.RuntimeException: Unable to start activity ComponentInfo{yinote.android/yinote.android.noteedit.NoteEditActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [XWALK-3531] android.view.InflateException: Binary XML file line #2: Error inflating class org.xwalk.core.XWalkView - Crosswalk-Project JIRA

    crosswalk-project.org | 1 year ago
    android.view.InflateException: Binary XML file line #8: Error inflating class org.xwalk.core.XWalkView
  6. 0

    This is my log : My cordova android version is 3.6.4 , also crash on 3.5.1 Can you help me D/AudioPolicyManagerALSA( 256): isStreamActive: 0 E/ALSAStreamOps( 256): setParameters(): keyRouting with device2 0x2 D/AudioHardwareALSA( 256): device = 0x2,mCurDevice 0x2 I/AudioHardwareALSA( 256): Device and mCurDevice is the same, no need to routing I/AudioFlinger( 256): setAppName(), name=[system_server], active=[1] W/AudioFlinger( 256): session id 1025 not found for pid 847 D/ALSADevice( 256): route: devices 0x2 in mode 0 D/ALSADevice( 256): setEndpDevice: device 2 D/ALSADevice( 256): setMixerControl:: name DS1 DAP Endpoint count 1 D/ALSADevice( 256): DMID value: 0 D/ALSADevice( 256): setMixerControl:: name DS1 Security count 1 D/ALSADevice( 256): switchDevice: device 0x2 mode:0 D/ALSADevice( 256): getUCMDevice for output device: devices:2 is input device:0 D/ALSADevice( 256): switchDevice: rxDevice Speaker devices:0x2 D/ALSADevice( 256): getUCMDevice for input device: devices:0 is input device:1 D/ALSADevice( 256): No valid input device: 0 D/ALSADevice( 256): switchDevice: txDevice:(null) devices:0x2 D/alsa_ucm( 256): snd_use_case_set(): uc_mgr 0xb867d380 identifier _enadev value Speaker D/ALSADevice( 256): switchDevice: mCurTxUCMDevice DMIC Endfire mCurRxDevDevice Speaker D/ALSADevice( 256): rx_ACDB_id=14, tx_ACDB_id=41 D/alsa_ucm( 256): snd_use_case_set(): uc_mgr 0xb867d380 identifier _verb value HiFi Lowlatency D/alsa_ucm( 256): Set mixer controls for Speaker enable 1 D/alsa_ucm( 256): acdb_id 14 cap 1 enable 1 D/ACDB-LOADER( 256): ACDB -> send_audio_cal, acdb_id = 14, path = 0 D/ACDB-LOADER( 256): ACDB -> send_adm_topology D/ACDB-LOADER( 256): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID D/ACDB-LOADER( 256): ACDB -> send_audtable D/ACDB-LOADER( 256): ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE D/ACDB-LOADER( 256): ACDB -> AUDIO_SET_AUDPROC_CAL D/ACDB-LOADER( 256): ACDB -> send_audvoltable D/ACDB-LOADER( 256): ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE D/ACDB-LOADER( 256): ACDB -> AUDIO_SET_AUDPROC_VOL_CAL D/ACDB-LOADER( 256): ACDB -> AUDIO_SET_AFE_CAL D/alsa_ucm( 256): Setting mixer control: SLIM RX1 MUX, value: AIF1_PB I/ActivityManager( 847): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.test.tros/.barbarian bnds=[206,856][342,992]} from pid 1287 D/alsa_ucm( 256): Setting mixer control: SLIM_0_RX Channels, value: One D/alsa_ucm( 256): Setting mixer control: RX4 MIX1 INP1, value: RX1 D/alsa_ucm( 256): Setting mixer control: RX4 Digital Volume, value: 70 D/alsa_ucm( 256): Setting mixer control: SPK DAC Switch, value: 1 D/alsa_ucm( 256): Setting mixer control: COMP0 Switch, value: 1 D/alsa_ucm( 256): Set mixer controls for HiFi Lowlatency enable 1 D/alsa_ucm( 256): Setting mixer control: SLIMBUS_0_RX Audio Mixer MultiMedia5, value: 1 D/ALSADevice( 256): close: handle 0xb8783ba0 h 0x0 D/ALSADevice( 256): open: handle 0xb8783ba0, format 0x2 D/ALSADevice( 256): Music case D/ALSADevice( 256): Device value returned is hw:0,15 D/ALSADevice( 256): flags 0, devName hw:0,15 D/ALSADevice( 256): handle->format: 0x2 D/ALSADevice( 256): setHardwareParams: reqBuffSize 960 channels 2 sampleRate 48000 D/ALSADevice( 256): setHardwareParams: buffer_size 7680, period_size 960, period_cnt 8 D/dalvikvm(28162): Late-enabling CheckJNI I/ActivityManager( 847): Start proc com.test.tros for activity com.test.tros/.barbarian: pid=28162 uid=10085 gids={50085, 3003, 1015, 1028} I/NotifierManager( 1287): onUnregister: miui.maml.NotifierManager$BroadcastNotifier@42ddcc08 I/RenderThread( 1287): RenderThread paused, waiting for signal D/dalvikvm( 254): GC_EXPLICIT freed 40K, 56% free 6512K/14720K, paused 2ms+1ms, total 38ms D/dalvikvm(28162): Trying to load lib /data/data/com.lbe.security.miui/app_hips/liblbeclient.so 0x426ebfa8 D/dalvikvm(28162): Added shared lib /data/data/com.lbe.security.miui/app_hips/liblbeclient.so 0x426ebfa8 D/dalvikvm( 254): GC_EXPLICIT freed <1K, 56% free 6512K/14720K, paused 2ms+2ms, total 20ms D/dalvikvm( 254): GC_EXPLICIT freed <1K, 56% free 6512K/14720K, paused 1ms+1ms, total 15ms D/PhoneStatusBar( 1067): disable: < expand icons alerts ticker system_info back home recent clock > W/ActivityThread(28162): Application com.test.tros can be debugged on port 8100... I/AudioFlinger( 256): setAppName(), name=[system_server], active=[0] I/CordovaLog(28162): Changing log level to DEBUG(3) I/CordovaLog(28162): Found start page location: index.html D/Whitelist(28162): Unlimited access to network resources D/CordovaActivity(28162): CordovaActivity.onCreate() W/XWalkInternalResources(28162): org.xwalk.core.R$styleis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$stringis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$menuis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$layoutis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$idis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$drawableis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$dimenis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$attris not found. W/XWalkInternalResources(28162): org.xwalk.core.R$dimenis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$coloris not found. W/XWalkInternalResources(28162): org.xwalk.core.R$styleis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$drawableis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$layoutis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$idis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$stringis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$styleis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$stringis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$mipmapis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$menuis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$layoutis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$idis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$drawableis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$dimenis not found. W/XWalkInternalResources(28162): org.xwalk.core.R$coloris not found. W/XWalkInternalResources(28162): org.xwalk.core.R$attris not found. W/System.err( 847): java.lang.SecurityException: WifiService: Neither user 10085 nor current process has android.permission.CHANGE_WIFI_STATE. W/System.err( 847): at android.app.ContextImpl.enforce(ContextImpl.java:1603) W/System.err( 847): at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1632) W/System.err( 847): at com.android.server.wifi.WifiService.enforceChangePermission(WifiService.java:314) W/System.err( 847): at com.android.server.wifi.WifiService.getWifiServiceMessenger(WifiService.java:760) W/System.err( 847): at android.net.wifi.IWifiManager$Stub.onTransact(IWifiManager.java:416) W/System.err( 847): at android.os.Binder.execTransact(Binder.java:388) W/System.err( 847): at dalvik.system.NativeStart.run(Native Method) D/dalvikvm(28162): Trying to load lib /data/app-lib/com.test.tros-2/libxwalkcore.so 0x4271f530 D/dalvikvm(28162): Added shared lib /data/app-lib/com.test.tros-2/libxwalkcore.so 0x4271f530 I/LibraryLoader(28162): Time to load native libraries: 28 ms (timestamps 2975-3003) I/LibraryLoader(28162): Expected native library version number "",actual native library version number "" I/LibraryLoader(28162): Expected native library version number "",actual native library version number "" I/chromium(28162): [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0 I/BrowserStartupController(28162): Initializing chromium process, singleProcess=true W/AudioManagerAndroid(28162): Requires BLUETOOTH permission D/libEGL (28162): loaded /vendor/lib/egl/libEGL_adreno.so D/libEGL (28162): loaded /vendor/lib/egl/libGLESv1_CM_adreno.so D/libEGL (28162): loaded /vendor/lib/egl/libGLESv2_adreno.so I/Adreno-EGL(28162): <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_3.2_RB2.04.03.00.129.098_msm8226_JB_3.2_RB2__release_AU () I/Adreno-EGL(28162): OpenGL ES Shader Compiler Version: 20.00.08 I/Adreno-EGL(28162): Build Date: 03/04/14 Tue I/Adreno-EGL(28162): Local Branch: I/Adreno-EGL(28162): Remote Branch: quic/jb_3.2_rb2.32 I/Adreno-EGL(28162): Local Patches: NONE I/Adreno-EGL(28162): Reconstruct Branch: AU_LINUX_ANDROID_JB_3.2_RB2.04.03.00.129.098 + NOTHING W/chromium(28162): [WARNING:proxy_service.cc(909)] PAC support disabled because there is no system implementation W/ContentViewCore(28162): Setting contentDescription to 'Web View' as no value was specified. W/ResourceType(28162): No package identifier when getting value for resource number 0x00000000 W/System.err(28162): java.lang.reflect.InvocationTargetException W/System.err(28162): at java.lang.reflect.Constructor.constructNative(Native Method) W/System.err(28162): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) W/System.err(28162): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:226) W/System.err(28162): at org.xwalk.core.XWalkView.<init>(XWalkView.java:185) W/System.err(28162): at org.apache.cordova.CordovaWebView.<init>(CordovaWebView.java:139) W/System.err(28162): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:301) W/System.err(28162): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:336) W/System.err(28162): at com.test.tros.barbarian.onCreate(barbarian.java:65) W/System.err(28162): at android.app.Activity.performCreate(Activity.java:5133) W/System.err(28162): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) W/System.err(28162): at com.lbe.security.service.core.client.internal.InstrumentationDelegate.callActivityOnCreate(InstrumentationDelegate.java:76) W/System.err(28162): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178) W/System.err(28162): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2264) W/System.err(28162): at android.app.ActivityThread.access$600(ActivityThread.java:144) W/System.err(28162): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259) W/System.err(28162): at android.os.Handler.dispatchMessage(Handler.java:99) W/System.err(28162): at android.os.Looper.loop(Looper.java:137) W/System.err(28162): at android.app.ActivityThread.main(ActivityThread.java:5137) W/System.err(28162): at java.lang.reflect.Method.invokeNative(Native Method) W/System.err(28162): at java.lang.reflect.Method.invoke(Method.java:525) W/System.err(28162): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:756) W/System.err(28162): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:572) W/System.err(28162): at miui.dexspy.DexspyInstaller.main(DexspyInstaller.java:171) W/System.err(28162): at dalvik.system.NativeStart.main(Native Method) W/System.err(28162): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 W/System.err(28162): at android.content.res.Resources.getText(Resources.java:240) W/System.err(28162): at android.content.res.MiuiResources.getText(MiuiResources.java:131) W/System.err(28162): at android.content.res.Resources.getString(Resources.java:326) W/System.err(28162): at android.content.Context.getString(Context.java:337) W/System.err(28162): at org.xwalk.core.internal.XWalkUIClientInternal.initResources(XWalkUIClientInternal.java:62) W/System.err(28162): at org.xwalk.core.internal.XWalkUIClientInternal.<init>(XWalkUIClientInternal.java:57) W/System.err(28162): at org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(XWalkViewInternal.java:355) W/System.err(28162): at org.xwalk.core.internal.XWalkViewInternal.init(XWalkViewInternal.java:335) W/System.err(28162): at org.xwalk.core.internal.XWalkViewInternal.<init>(XWalkViewInternal.java:211) W/System.err(28162): at org.xwalk.core.internal.XWalkViewBridge.<init>(XWalkViewBridge.java:49) W/System.err(28162): ... 24 more D/AndroidRuntime(28162): Shutting down VM W/dalvikvm(28162): threadid=1: thread exiting with uncaught exception (group=0x4208f898) E/AndroidRuntime(28162): FATAL EXCEPTION: main E/AndroidRuntime(28162): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.tros/com.test.tros.barbarian}: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException E/AndroidRuntime(28162): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2214) E/AndroidRuntime(28162): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2264) E/AndroidRuntime(28162): at android.app.ActivityThread.access$600(ActivityThread.java:144) E/AndroidRuntime(28162): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1259) E/AndroidRuntime(28162): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(28162): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime(28162): at android.app.ActivityThread.main(ActivityThread.java:5137) E/AndroidRuntime(28162): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime(28162): at java.lang.reflect.Method.invoke(Method.java:525) E/AndroidRuntime(28162): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:756) E/AndroidRuntime(28162): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:572) E/AndroidRuntime(28162): at miui.dexspy.DexspyInstaller.main(DexspyInstaller.java:171) E/AndroidRuntime(28162): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime(28162): Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException E/AndroidRuntime(28162): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:207) E/AndroidRuntime(28162): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:234) E/AndroidRuntime(28162): at org.xwalk.core.XWalkView.<init>(XWalkView.java:185) E/AndroidRuntime(28162): at org.apache.cordova.CordovaWebView.<init>(CordovaWebView.java:139) E/AndroidRuntime(28162): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:301) E/AndroidRuntime(28162): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:336) E/AndroidRuntime(28162): at com.test.tros.barbarian.onCreate(barbarian.java:65) E/AndroidRuntime(28162): at android.app.Activity.performCreate(Activity.java:5133) E/AndroidRuntime(28162): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) E/AndroidRuntime(28162): at com.lbe.security.service.core.client.internal.InstrumentationDelegate.callActivityOnCreate(InstrumentationDelegate.java:76) E/AndroidRuntime(28162): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2178) E/AndroidRuntime(28162): ... 12 more E/AndroidRuntime(28162): Caused by: java.lang.reflect.InvocationTargetException E/AndroidRuntime(28162): at java.lang.reflect.Constructor.constructNative(Native Method) E/AndroidRuntime(28162): at java.lang.reflect.Constructor.newInstance(Constructor.java:417) E/AndroidRuntime(28162): at org.xwalk.core.ReflectionHelper.createInstance(ReflectionHelper.java:226) E/AndroidRuntime(28162): ... 21 more E/AndroidRuntime(28162): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 E/AndroidRuntime(28162): at android.content.res.Resources.getText(Resources.java:240) E/AndroidRuntime(28162): at android.content.res.MiuiResources.getText(MiuiResources.java:131) E/AndroidRuntime(28162): at android.content.res.Resources.getString(Resources.java:326) E/AndroidRuntime(28162): at android.content.Context.getString(Context.java:337) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkUIClientInternal.initResources(XWalkUIClientInternal.java:62) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkUIClientInternal.<init>(XWalkUIClientInternal.java:57) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(XWalkViewInternal.java:355) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkViewInternal.in it(XWalkViewInternal.java:335) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkViewInternal.<init>(XWalkViewInternal.java:211) E/AndroidRuntime(28162): at org.xwalk.core.internal.XWalkViewBridge.<init>(XWalkViewBridge.java:49) E/AndroidRuntime(28162): ... 24 more W/ActivityManager( 847): Force finishing activity com.test.tros/.barbarian I/Process (28162): Sending signal. PID: 28162 SIG: 9 I/ActivityManager( 847): Process com.test.tros (pid 28162) has died. I/RenderThread( 1287): RenderThread resumed I/NotifierManager( 1287): onRegister: miui.maml.NotifierManager$BroadcastNotifier@42ddcc08 D/PhoneStatusBar( 1067): disable: < expand icons alerts ticker system_info back home recent clock > W/InputMethodManagerService( 847): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@43696530 attribute=null, token = android.os.BinderProxy@428b8e50

    JIRA | 2 years ago | ariesjia
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.tros/com.test.tros.barbarian}: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.content.res.Resources$NotFoundException

    String resource ID #0x0

    at android.content.res.Resources.getText()
  2. Android Platform
    Context.getString
    1. android.content.res.Resources.getText(Resources.java:237)
    2. android.content.res.Resources.getString(Resources.java:321)
    3. android.content.Context.getString(Context.java:327)
    3 frames
  3. org.xwalk.core
    XWalkViewBridge.<init>
    1. org.xwalk.core.internal.XWalkUIClientInternal.initResources(Unknown Source)
    2. org.xwalk.core.internal.XWalkUIClientInternal.<init>(Unknown Source)
    3. org.xwalk.core.internal.XWalkViewInternal.initXWalkContent(Unknown Source)
    4. org.xwalk.core.internal.XWalkViewInternal.init(Unknown Source)
    5. org.xwalk.core.internal.XWalkViewInternal.<init>(Unknown Source)
    6. org.xwalk.core.internal.XWalkViewBridge.<init>(Unknown Source)
    6 frames
  4. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.constructNative(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:417)
    2 frames
  5. org.xwalk.core
    XWalkView.<init>
    1. org.xwalk.core.ReflectionHelper.createInstance(Unknown Source)
    2. org.xwalk.core.XWalkView.<init>(Unknown Source)
    2 frames
  6. Java RT
    Constructor.newInstance
    1. java.lang.reflect.Constructor.constructNative(Native Method)
    2. java.lang.reflect.Constructor.newInstance(Constructor.java:417)
    2 frames
  7. Android Platform
    View.inflate
    1. android.view.LayoutInflater.createView(LayoutInflater.java:587)
    2. android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
    3. android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
    4. android.view.LayoutInflater.inflate(LayoutInflater.java:489)
    5. android.view.LayoutInflater.inflate(LayoutInflater.java:396)
    6. android.view.LayoutInflater.inflate(LayoutInflater.java:352)
    7. android.view.View.inflate(View.java:16556)
    7 frames
  8. yinote.android.noteedit
    NoteEditActivity.onCreate
    1. yinote.android.noteedit.EditMainViewGroup.<init>(Unknown Source)
    2. yinote.android.noteedit.EditMainViewGroup.<init>(Unknown Source)
    3. yinote.android.noteedit.be.<init>(Unknown Source)
    4. yinote.android.noteedit.NoteEditActivity.onCreate(Unknown Source)
    4 frames
  9. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5122)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2270)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
    5. android.app.ActivityThread.access$600(ActivityThread.java:156)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
    7. android.os.Handler.dispatchMessage(Handler.java:99)
    8. android.os.Looper.loop(Looper.java:153)
    9. android.app.ActivityThread.main(ActivityThread.java:5299)
    9 frames
  10. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  11. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
    2 frames
  12. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame