Line 14 Error
Contents |
View Course 119 points Submitted by Amir over binary xml file line error inflating class fragment 1 year ago 14/14 Error on line 14. Why? 14 inventory['pocket'] :
Android View Inflateexception Error Inflating Class Fragment
['seashell'.'strange berry','lint'] 15 inventory['backpack'].sort() 16 inventory['backpack'].remove('dagger') 17 inventory['gold'].add(50) 8 votes permalink inventory = { 'pocket' : ['seashell', 'strange berry',
Binary Xml File Line #7 Error Inflating Class Fragment Maps
'lint'], 'gold' : 500, 'pouch' : ['flint', 'twine', 'gemstone'], # Assigned a new list to 'pouch' key 'backpack' : ['xylophone','dagger', 'bedroll','bread loaf'] } # Adding a key 'burlap bag' and assigning a list to it inventory['burlap bag'] = ['apple', 'small binary xml file line error inflating class custom view ruby', 'three-toed sloth'] # Sorting the list found under the key 'pouch' inventory['pouch'].sort() # Your code here inventory['backpack'].sort() inventory['backpack'].remove('dagger') inventory['gold'] += 50 200 points Submitted by Kenny John over 1 year ago 2 Comments Kenny John over 1 year ago Hope this helps just take a closer look in lane 1 and then go to lane 15 and add the rest. Thanks :) 0josh0 over 1 year ago Thanks 1 vote permalink it has to be = instead of the : 296 points Submitted by Rick Baum over 1 year ago 0 votes permalink the error was that I had used a period instead of a comma. 119 points Submitted by Amir over 1 year ago
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss https://www.codecademy.com/en/forum_questions/55478dcb937676dc800000f2 Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Binary XML file line #14: Error inflating class up vote 0 down vote favorite 1 I am creating an application http://stackoverflow.com/questions/12652539/binary-xml-file-line-14-error-inflating-class for android, at first i used one library project to include Panel functionality in the application and it worked fine. Later i found that my .apk file included my unused images and xml file of library project which increased the size of my application, so i decided to implement the panel functionality on my own. When i ran the application after making the changes i am getting the error 09-28 00:01:00.639: E/AndroidRuntime(1462): FATAL EXCEPTION: main 09-28 00:01:00.639: E/AndroidRuntime(1462): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.widgets.application/com.widgets.application.MainActivity}: android.view.InflateException: Binary XML file line #14: Error inflating class com.widgets.application.utils.Panel I am uploading my project here, please help me get rid of this problem http://www.mediafire.com/?m10u0y5cenqnb1u The log cat is as below 09-28 00:01:00.639: E/AndroidRuntime(1462): FATAL EXCEPTION: main 09-28 00:01:00.639: E/AndroidRuntime(1462): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.widgets.application/com.widgets.application.MainActivity}: android.view.InflateException: Binary XML file line #14: Error inflating class com.widgets.application.utils.Panel 09-28 00:01:00.639: E/AndroidRuntime(1462): at android.app.ActivityThread.performLaun
here for a quick overview of the site Help Center http://stackoverflow.com/questions/27358789/binary-xml-file-line-14-error-inflating-class-fragment Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x error inflating Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Binary XML file line #14: Error inflating class fragment up vote 0 down vote favorite I am using error inflating class appcompat_v7 for the first time and trying to create navigation drawer with it. Everything works fine if i create my project using pre-defined activities suggested by eclipse. But when i made changes on fragment_navigation_drawer file, i getting error and my app crashes whenever i run it. Error 12-08 17:31:40.347: E/AndroidRuntime(25507): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.apps.mobileclub/com.android.apps.mobileclub.ui.MainActivity}: android.view.InflateException: Binary XML file line #14: Error inflating class fragment 12-08 17:31:40.347: E/AndroidRuntime(25507): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298) 12-08 17:31:40.347: E/AndroidRuntime(25507): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360) 12-08 17:31:40.347: E/AndroidRuntime(25507): at android.app.ActivityThread.access$800(ActivityThread.java:144) 12-08 17:31:40.347: E/AndroidRuntime(25507): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278) 12-08 17:31:40.347: E/AndroidRuntime(25507): at android.os.Handler.dispatchMessage(Handler.java:102) 12-08 17:31:40.347: E/AndroidRuntime(25507): at android.os.Looper.loop(Looper.java:135) 12-08 17:31:40.347: E/AndroidRuntime(25507): at android.app.ActivityThread.main(ActivityThread.java:5221) 12-08 17:31:40.347: E/AndroidRuntime(25507): at java.lang.reflect.Method.invoke(Native Method) 12-08 17:31:40.347: E/AndroidRuntime(25507): at java.lang.reflect.Method.invoke(Method.java:372) 12-08 17:31:40.347: E/AndroidRuntime(25507): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899) 12-08 17:31:40.347: E/AndroidRuntime(25507): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694) 12-08 17:31:40.347: E/AndroidRuntime(25507): Caused by: android.view.InflateException: Binary XML file line #14: Error inflating class fragment 12-08 17:31:40.347: E/AndroidRuntime(25507): at android.view.LayoutInflater.createViewFromTag(Lay