Binary Xml File Line #2 Error Inflating Class Unknown
Contents |
here for a quick overview of binary xml file line #2: binary xml file line #2: error inflating class
Binary Xml File Line #2 Error Inflating Class Fragment
you might have Meta Discuss the workings and policies of this site About Us
Binary Xml File Line Error Inflating Class Custom View
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Android.view.inflateexception Error Inflating Class Fragment
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up android.view.InflateException: Binary XML file line #2: Error error inflating class textview inflating class here for a quick overview error inflating class imageview of the site Help Center Detailed answers to any caused by: java.lang.unsupportedoperationexception: can't convert to dimension: type=0x1 questions you might have Meta Discuss the workings and policies of this site error inflating class button About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow http://stackoverflow.com/questions/12996210/android-view-inflateexception-binary-xml-file-line-2-error-inflating-class-u Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Binary XML file line http://stackoverflow.com/questions/5810250/binary-xml-file-line-2-error-inflating-class-android-widget-linearlayout #2: Error inflating class android.widget.LinearLayout up vote 2 down vote favorite 1 I am completely lost with this one. My app works perfectly on API 2.1 on my handset and through the emulator. I have just run it through a 2.2 emulator and I am getting a crash and this error: 04-27 20:29:41.293: ERROR/AndroidRuntime(341): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ebp/com.ebp.ebpMainMenu}: android.view.InflateException: Binary XML file line #2: Error inflating class android.widget.LinearLayout 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.access$2200(ActivityThread.java:119) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.os.Handler.dispatchMessage(Handler.java:99) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.os.Looper.loop(Looper.java:123) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at android.app.ActivityThread.main(ActivityThread.java:4363) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at java.lang.reflect.Method.invokeNative(Native Method) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at java.lang.reflect.Method.invoke(Method.java:521) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860) 04-27 20:29:41.293: ERROR/AndroidRuntime(341): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) 04-27 20:29:41.293: ERROR/Android Support Search GitHub This repository https://crosswalk-project.org/jira/browse/XWALK-3531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel Watch 297 Star 6,096 Fork 1,280 mikepenz/MaterialDrawer Code Issues 1 Pull requests 0 Projects 0 Wiki Pulse Graphs New issue android.view.InflateException: Binary XML file line #2: Error inflating error inflating class ExportXMLWordPrintable Details Type: Bug Status: Resolved Priority: P2 Resolution: Cannot Reproduce Affects Version/s: Crosswalk 10 Fix Version/s: Crosswalk 10 Component/s: Crosswalk Project for Android Labels: TC-NONEED general Environment: android eclipse,use crosswalk as library OS: Android Severity: Normal Reporter Domain: qq.com (Find related issues) Description 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: