Click here to Skip to main content
15,887,746 members
Home / Discussions / Android
   

Android

 
SuggestionRe: How to display ListFragments with corresponding details fragments Pin
David Crow20-Nov-14 11:04
David Crow20-Nov-14 11:04 
SuggestionRe: Give Mee Lotsss Ideasss Pin
Richard MacCutchan16-Nov-14 23:46
mveRichard MacCutchan16-Nov-14 23:46 
QuestionGive Mee Lotsss Ideasss Pin
owais_ahmed_ansari13-Nov-14 2:02
owais_ahmed_ansari13-Nov-14 2:02 
RantRe: Give Mee Lotsss Ideasss Pin
Kornfeld Eliyahu Peter13-Nov-14 2:16
professionalKornfeld Eliyahu Peter13-Nov-14 2:16 
AnswerRe: Give Mee Lotsss Ideasss Pin
Richard MacCutchan13-Nov-14 2:59
mveRichard MacCutchan13-Nov-14 2:59 
QuestionHow to read files in the folder by clicking on the button Pin
Kroshandowski11-Nov-14 4:18
Kroshandowski11-Nov-14 4:18 
QuestionRe: How to read files in the folder by clicking on the button Pin
David Crow20-Nov-14 11:08
David Crow20-Nov-14 11:08 
QuestionBinary XML missing layout_width. Pin
ericgahn30-Oct-14 11:47
ericgahn30-Oct-14 11:47 
Hi All;

Please help as I am going nuts.

Whenever I start a new application I always run it 'naked' just to confirm that everything is ok. From this afternoon all applications I create are coming up with the error as in the logcat dump below. As far as I can see the activity_main.xml file is correct and there is only this one form in the project.

All old applications run ok without hiccups.

Any help appreciated.

Regards
Eric

activity_main.xml
XML
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingBottom="@dimen/activity_vertical_margin"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    tools:context="com.example.mysecondapp.MainActivity" >

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" />

</RelativeLayout>




LogCat Dump
10-30 17:36:54.762: I/dalvikvm(1792): Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted
10-30 17:36:54.762: W/dalvikvm(1792): VFY: unable to resolve virtual method 11378: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
10-30 17:36:54.762: D/dalvikvm(1792): VFY: replacing opcode 0x6f at 0x0000
10-30 17:36:54.772: I/dalvikvm(1792): Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll
10-30 17:36:54.772: W/dalvikvm(1792): VFY: unable to resolve virtual method 11384: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V
10-30 17:36:54.772: D/dalvikvm(1792): VFY: replacing opcode 0x6f at 0x0000
10-30 17:36:54.782: I/dalvikvm(1792): Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled
10-30 17:36:54.782: W/dalvikvm(1792): VFY: unable to resolve virtual method 8957: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V
10-30 17:36:54.782: D/dalvikvm(1792): VFY: replacing opcode 0x6e at 0x000e
10-30 17:36:54.792: D/AndroidRuntime(1792): Shutting down VM
10-30 17:36:54.792: W/dalvikvm(1792): threadid=1: thread exiting with uncaught exception (group=0xb2b10ba8)
10-30 17:36:54.812: E/AndroidRuntime(1792): FATAL EXCEPTION: main
10-30 17:36:54.812: E/AndroidRuntime(1792): Process: com.example.mysecondapp, PID: 1792
10-30 17:36:54.812: E/AndroidRuntime(1792): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.mysecondapp/com.example.mysecondapp.MainActivity}: java.lang.RuntimeException: Binary XML file line #27: You must supply a layout_width attribute.
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.app.ActivityThread.access$800(ActivityThread.java:135)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.os.Handler.dispatchMessage(Handler.java:102)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.os.Looper.loop(Looper.java:136)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at java.lang.reflect.Method.invokeNative(Native Method)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at java.lang.reflect.Method.invoke(Method.java:515)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at dalvik.system.NativeStart.main(Native Method)
10-30 17:36:54.812: E/AndroidRuntime(1792): Caused by: java.lang.RuntimeException: Binary XML file line #27: You must supply a layout_width attribute.
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:492)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:5948)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:6117)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.support.v7.internal.widget.ActionBarOverlayLayout$LayoutParams.<init>(ActionBarOverlayLayout.java:801)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.support.v7.internal.widget.ActionBarOverlayLayout.generateLayoutParams(ActionBarOverlayLayout.java:353)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.support.v7.internal.widget.ActionBarOverlayLayout.generateLayoutParams(ActionBarOverlayLayout.java:50)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:757)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.support.v7.app.ActionBarActivityDelegateBase.ensureSubDecor(ActionBarActivityDelegateBase.java:273)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:225)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at com.example.mysecondapp.MainActivity.onCreate(MainActivity.java:13)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.app.Activity.performCreate(Activity.java:5231)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
10-30 17:36:54.812: E/AndroidRuntime(1792): 	... 11 more
10-30 17:36:57.842: I/Process(1792): Sending signal. PID: 1792 SIG: 9


modified 6-Nov-14 6:02am.

AnswerRe: Binary XML missing layout_width. Pin
Dominic Burford3-Nov-14 0:40
professionalDominic Burford3-Nov-14 0:40 
GeneralRe: Binary XML missing layout_width. Pin
ericgahn5-Nov-14 20:27
ericgahn5-Nov-14 20:27 
GeneralRe: Binary XML missing layout_width. Pin
Richard MacCutchan5-Nov-14 22:38
mveRichard MacCutchan5-Nov-14 22:38 
QuestionRe: Binary XML missing layout_width. Pin
David Crow3-Nov-14 4:47
David Crow3-Nov-14 4:47 
AnswerRe: Binary XML missing layout_width. Pin
ericgahn5-Nov-14 20:28
ericgahn5-Nov-14 20:28 
GeneralRe: Binary XML missing layout_width. Pin
Richard MacCutchan5-Nov-14 22:41
mveRichard MacCutchan5-Nov-14 22:41 
Questionscreen record Pin
mahmoodebi28-Oct-14 21:29
mahmoodebi28-Oct-14 21:29 
AnswerRe: screen record Pin
Richard MacCutchan28-Oct-14 22:53
mveRichard MacCutchan28-Oct-14 22:53 
QuestionApplication Architecture Pin
ericgahn25-Oct-14 0:09
ericgahn25-Oct-14 0:09 
AnswerRe: Application Architecture Pin
Richard MacCutchan25-Oct-14 0:17
mveRichard MacCutchan25-Oct-14 0:17 
GeneralRe: Application Architecture Pin
ericgahn27-Oct-14 2:27
ericgahn27-Oct-14 2:27 
AnswerRe: Application Architecture Pin
Dominic Burford27-Oct-14 1:16
professionalDominic Burford27-Oct-14 1:16 
GeneralRe: Application Architecture Pin
ericgahn27-Oct-14 2:30
ericgahn27-Oct-14 2:30 
AnswerRe: Application Architecture Pin
gupta.avinash27-Oct-14 3:33
professionalgupta.avinash27-Oct-14 3:33 
GeneralRe: Application Architecture Pin
Dominic Burford27-Oct-14 4:24
professionalDominic Burford27-Oct-14 4:24 
GeneralRe: Application Architecture Pin
ericgahn27-Oct-14 4:51
ericgahn27-Oct-14 4:51 
GeneralRe: Application Architecture Pin
Dominic Burford27-Oct-14 6:50
professionalDominic Burford27-Oct-14 6:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.