31 May 2014, 07:31
Generic-user-small

Dimitris Serafeimidis (1 post)

Greetings, I really dont understand the error i have done, so i could fix it. Is there any way you could help me figure it out?

I «Run as» the android project and i am getting this error message in logcat.

05-31 07:22:19.314: W/dalvikvm(319): threadid=1: thread exiting with uncaught exception (group=0x40015560)

05-31 07:22:19.324: E/AndroidRuntime(319): FATAL EXCEPTION: main

05-31 07:22:19.324: E/AndroidRuntime(319): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sudoku/com.example.sudoku.Sudoku}: java.lang.IllegalArgumentException: No view found for id 0x7f050041 (com.example.sudoku:id/container) for fragment PlaceholderFragment{4054fae8 #0 id=0x7f050041}

05-31 07:22:19.324: E/AndroidRuntime(319): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.app.ActivityThread.access$1500(ActivityThread.java:117)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.os.Handler.dispatchMessage(Handler.java:99)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.os.Looper.loop(Looper.java:123)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.app.ActivityThread.main(ActivityThread.java:3683)

05-31 07:22:19.324: E/AndroidRuntime(319): at java.lang.reflect.Method.invokeNative(Native Method)

05-31 07:22:19.324: E/AndroidRuntime(319): at java.lang.reflect.Method.invoke(Method.java:507)

05-31 07:22:19.324: E/AndroidRuntime(319): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)

05-31 07:22:19.324: E/AndroidRuntime(319): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)

05-31 07:22:19.324: E/AndroidRuntime(319): at dalvik.system.NativeStart.main(Native Method)

05-31 07:22:19.324: E/AndroidRuntime(319): Caused by: java.lang.IllegalArgumentException: No view found for id 0x7f050041 (com.example.sudoku:id/container) for fragment PlaceholderFragment{4054fae8 #0 id=0x7f050041}

05-31 07:22:19.324: E/AndroidRuntime(319): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:930)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1115)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1478)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:570)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.app.Activity.performStart(Activity.java:3791)

05-31 07:22:19.324: E/AndroidRuntime(319): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1620) 05-31 07:22:19.324: E/AndroidRuntime(319): … 11 more

If you need the code as well to figure out, please let me know. I didnt paste it now as i would like to avoid the long post.

Thanks.

02 Jun 2014, 07:26
Generic-user-small

Anthony Shaw (136 posts)

It’s probably very early in your code, or in the XML screen definition. Check the code for both of them very carefully and if you still cannot spot what the problem is post the code and I will have a look.

  You must be logged in to comment