fragment problem when building in my android device

+1 alvin joseph valdez · January 11, 2015
hey guys im having a problem with the meme generator I tried to build it to my device but it give me error and the app crash the first time i opened it after building. heres the log:

and the repository is : https://github.com/aoiserizawa/androidfragments 

01-11 12:41:07.992  20070-20070/com.serverus.memegenerator E/AndroidRuntime? FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.serverus.memegenerator/com.serverus.memegenerator.MainActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
            at android.app.ActivityThread.access$600(ActivityThread.java:165)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5391)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            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 fragment
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
            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.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
            at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
            at com.serverus.memegenerator.MainActivity.onCreate(MainActivity.java:14)
            at android.app.Activity.performCreate(Activity.java:5122)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
            at android.app.ActivityThread.access$600(ActivityThread.java:165)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5391)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            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.support.v4.app.SuperNotCalledException: Fragment TopSectionFragment{4150dc00 #0 id=0x7f08003f} did not call through to super.onAttach()
            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:905)
            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
            at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1206)
            at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2159)
            at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:297)
            at android.support.v7.app.ActionBarActivity.onCreateView(ActionBarActivity.java:547)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
            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.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
            at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
            at com.serverus.memegenerator.MainActivity.onCreate(MainActivity.java:14)
            at android.app.Activity.performCreate(Activity.java:5122)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
            at android.app.ActivityThread.access$600(ActivityThread.java:165)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5391)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            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)
01-11 12:41:28.249  20070-20070/com.serverus.memegenerator I/Process? Sending signal. PID: 20070 SIG: 9
01-11 12:58:02.957  20664-20664/com.serverus.memegenerator D/dalvikvm? Zygote::ForkAndSpecialize : 0
01-11 12:58:02.960  20664-20664/com.serverus.memegenerator D/dalvikvm? zygote get new systemTid : 20664
01-11 12:58:02.960  20664-20664/com.serverus.memegenerator D/dalvikvm? Late-enabling CheckJNI
01-11 12:58:02.962  20664-20668/com.serverus.memegenerator D/dalvikvm? threadid=2: interp stack at 0x5a45b000
01-11 12:58:02.964  20664-20670/com.serverus.memegenerator D/dalvikvm? threadid=3: interp stack at 0x5a57b000
01-11 12:58:02.964  20664-20664/com.serverus.memegenerator D/jdwp? prepping for JDWP over ADB
01-11 12:58:02.964  20664-20664/com.serverus.memegenerator D/jdwp? ADB transport startup
01-11 12:58:02.965  20664-20670/com.serverus.memegenerator D/dalvikvm? Elevating priority from 0 to -8
01-11 12:58:02.966  20664-20671/com.serverus.memegenerator D/dalvikvm? threadid=4: interp stack at 0x5a69b000
01-11 12:58:02.966  20664-20671/com.serverus.memegenerator D/jdwp? JDWP: thread running
01-11 12:58:02.966  20664-20671/com.serverus.memegenerator D/jdwp? acceptConnection
01-11 12:58:02.968  20664-20672/com.serverus.memegenerator D/dalvikvm? threadid=5: interp stack at 0x5c9cc000
01-11 12:58:02.969  20664-20664/com.serverus.memegenerator D/dalvikvm? zygote get thread init done
01-11 12:58:02.969  20664-20664/com.serverus.memegenerator D/dalvikvm? create interp thread : stack size=128KB
01-11 12:58:02.969  20664-20664/com.serverus.memegenerator D/dalvikvm? create new thread
01-11 12:58:02.970  20664-20664/com.serverus.memegenerator D/dalvikvm? new thread created
01-11 12:58:02.970  20664-20664/com.serverus.memegenerator D/dalvikvm? update thread list
01-11 12:58:02.970  20664-20673/com.serverus.memegenerator D/dalvikvm? threadid=6: interp stack at 0x5cafd000
01-11 12:58:02.970  20664-20673/com.serverus.memegenerator D/dalvikvm? threadid=6: created from interp
01-11 12:58:02.970  20664-20664/com.serverus.memegenerator D/dalvikvm? start new thread
01-11 12:58:02.970  20664-20673/com.serverus.memegenerator D/dalvikvm? threadid=6: notify debugger
01-11 12:58:02.970  20664-20671/com.serverus.memegenerator D/jdwp? trying to receive file descriptor from ADB
01-11 12:58:02.970  20664-20673/com.serverus.memegenerator D/dalvikvm? threadid=6 (ReferenceQueueDaemon): calling run()
01-11 12:58:02.971  20664-20664/com.serverus.memegenerator D/dalvikvm? create interp thread : stack size=128KB
01-11 12:58:02.971  20664-20664/com.serverus.memegenerator D/dalvikvm? create new thread
01-11 12:58:02.971  20664-20664/com.serverus.memegenerator D/dalvikvm? new thread created
01-11 12:58:02.971  20664-20664/com.serverus.memegenerator D/dalvikvm? update thread list
01-11 12:58:02.971  20664-20674/com.serverus.memegenerator D/dalvikvm? threadid=7: interp stack at 0x5cc1d000
01-11 12:58:02.971  20664-20674/com.serverus.memegenerator D/dalvikvm? threadid=7: created from interp
01-11 12:58:02.971  20664-20664/com.serverus.memegenerator D/dalvikvm? start new thread
01-11 12:58:02.972  20664-20664/com.serverus.memegenerator D/dalvikvm? create interp thread : stack size=128KB
01-11 12:58:02.972  20664-20664/com.serverus.memegenerator D/dalvikvm? create new thread
01-11 12:58:02.972  20664-20664/com.serverus.memegenerator D/dalvikvm? new thread created
01-11 12:58:02.972  20664-20664/com.serverus.memegenerator D/dalvikvm? update thread list
01-11 12:58:02.972  20664-20674/com.serverus.memegenerator D/dalvikvm? threadid=7: notify debugger
01-11 12:58:02.972  20664-20674/com.serverus.memegenerator D/dalvikvm? threadid=7 (FinalizerDaemon): calling run()
01-11 12:58:02.976  20664-20675/com.serverus.memegenerator D/dalvikvm? threadid=8: interp stack at 0x5cd3d000
01-11 12:58:02.976  20664-20675/com.serverus.memegenerator D/dalvikvm? threadid=8: created from interp
01-11 12:58:02.976  20664-20664/com.serverus.memegenerator D/dalvikvm? start new thread
01-11 12:58:02.983  20664-20675/com.serverus.memegenerator D/dalvikvm? threadid=8: notify debugger
01-11 12:58:02.983  20664-20675/com.serverus.memegenerator D/dalvikvm? threadid=8 (FinalizerWatchdogDaemon): calling run()
01-11 12:58:03.016  20664-20676/com.serverus.memegenerator D/dalvikvm? threadid=9: interp stack at 0x5d15b000
01-11 12:58:03.016  20664-20677/com.serverus.memegenerator D/dalvikvm? threadid=10: interp stack at 0x5d27b000
01-11 12:58:03.017  20664-20664/com.serverus.memegenerator E/Trace? error opening trace file: No such file or directory (2)
01-11 12:58:03.042  20664-20664/com.serverus.memegenerator D/SystemTheme? sThemeResIdMap = {16974129=16974306, 16974128=16974305, 16974135=16974308, 16974134=16974307, 16973932=16974309, 16973933=16974310, 16973934=16974302, 16973935=16974303, 16974619=16974304, 16973931=16974302, 16973943=16974307, 16973937=16974305, 16973936=16974312, 16973938=16974306, 16974120=16974302, 16974607=16974304, 16974126=16974303, 16974127=16974312, 16973944=16974308, 16973947=16974311}
01-11 12:58:03.042  20664-20664/com.serverus.memegenerator D/SystemTheme? sPackageList = [android, com.android.gallery3d, com.android.settings, com.mediatek.voiceunlock, com.android.phone, com.android.providers.media, com.android.inputmethod.latin, com.android.systemui, com.android.browser, com.android.packageinstaller, com.mediatek.bluetooth, com.android.providers.downloads.ui, com.android.stk, com.android.music, com.mediatek.schpwronoff, com.android.contacts, com.mediatek.CellConnService, com.android.calendar, com.google.android.gsf.login, com.google.android.gsf]
01-11 12:58:03.047  20664-20664/com.serverus.memegenerator W/asset? AssetManager-->addDefaultAssets CIP path not exsit!
01-11 12:58:03.066  20664-20664/com.serverus.memegenerator D/dalvikvm? open_cached_dex_file : /data/app/com.serverus.memegenerator-1.apk /data/dalvik-cache/data@app@com.serverus.memegenerator-1.apk@classes.dex
01-11 12:58:03.097  20664-20664/com.serverus.memegenerator D/SystemTheme? useCustomThemeIfNeeded() : packageName = com.serverus.memegenerator; themeResId = 16974120
01-11 12:58:03.097  20664-20664/com.serverus.memegenerator D/SystemTheme? useCustomThemeIfNeeded() : packageName = com.serverus.memegenerator; themeResId = 2131427328
01-11 12:58:03.145  20664-20664/com.serverus.memegenerator I/dalvikvm? Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted
01-11 12:58:03.145  20664-20664/com.serverus.memegenerator W/dalvikvm? VFY: unable to resolve virtual method 11345: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V
01-11 12:58:03.145  20664-20664/com.serverus.memegenerator D/dalvikvm? VFY: replacing opcode 0x6f at 0x0000
01-11 12:58:03.145  20664-20664/com.serverus.memegenerator I/dalvikvm? Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll
01-11 12:58:03.145  20664-20664/com.serverus.memegenerator W/dalvikvm? VFY: unable to resolve virtual method 11351: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V
01-11 12:58:03.145  20664-20664/com.serverus.memegenerator D/dalvikvm? VFY: replacing opcode 0x6f at 0x0000
01-11 12:58:03.147  20664-20664/com.serverus.memegenerator I/dalvikvm? Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled
01-11 12:58:03.147  20664-20664/com.serverus.memegenerator W/dalvikvm? VFY: unable to resolve virtual method 9039: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V
01-11 12:58:03.147  20664-20664/com.serverus.memegenerator D/dalvikvm? VFY: replacing opcode 0x6e at 0x000e
01-11 12:58:03.148  20664-20664/com.serverus.memegenerator D/SystemTheme? useCustomThemeIfNeeded() : packageName = com.serverus.memegenerator; themeResId = 2131427499
01-11 12:58:03.153  20664-20664/com.serverus.memegenerator I/dalvikvm? Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations
01-11 12:58:03.153  20664-20664/com.serverus.memegenerator W/dalvikvm? VFY: unable to resolve virtual method 364: Landroid/content/res/TypedArray;.getChangingConfigurations ()I
01-11 12:58:03.153  20664-20664/com.serverus.memegenerator D/dalvikvm? VFY: replacing opcode 0x6e at 0x0002
01-11 12:58:03.154  20664-20664/com.serverus.memegenerator I/dalvikvm? Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType
01-11 12:58:03.154  20664-20664/com.serverus.memegenerator W/dalvikvm? VFY: unable to resolve virtual method 386: Landroid/content/res/TypedArray;.getType (I)I
01-11 12:58:03.154  20664-20664/com.serverus.memegenerator D/dalvikvm? VFY: replacing opcode 0x6e at 0x0002
01-11 12:58:03.213  20664-20664/com.serverus.memegenerator D/AndroidRuntime? Shutting down VM
01-11 12:58:03.213  20664-20664/com.serverus.memegenerator W/dalvikvm? threadid=1: thread exiting with uncaught exception (group=0x40f0b9a8)
01-11 12:58:03.213  20664-20664/com.serverus.memegenerator W/dalvikvm? threadid=1: uncaught exception occurred
01-11 12:58:03.213  20664-20664/com.serverus.memegenerator W/System.err? java.lang.RuntimeException: Unable to start activity ComponentInfo{com.serverus.memegenerator/com.serverus.memegenerator.MainActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
01-11 12:58:03.213  20664-20664/com.serverus.memegenerator W/System.err? at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at android.app.ActivityThread.access$600(ActivityThread.java:165)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at android.os.Handler.dispatchMessage(Handler.java:107)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at android.os.Looper.loop(Looper.java:194)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at android.app.ActivityThread.main(ActivityThread.java:5391)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at java.lang.reflect.Method.invokeNative(Native Method)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at java.lang.reflect.Method.invoke(Method.java:525)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
01-11 12:58:03.214  20664-20664/com.serverus.memegenerator W/System.err? at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
01-11 12:58:03.215  20664-20664/com.serverus.memegenerator W/System.err? at dalvik.system.NativeStart.main(Native Method)
01-11 12:58:03.215  20664-20664/com.serverus.memegenerator W/System.err? Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
01-11 12:58:03.217  20664-20664/com.serverus.memegenerator W/System.err? at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
01-11 12:58:03.217  20664-20664/com.serverus.memegenerator W/System.err? at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
01-11 12:58:03.217  20664-20664/com.serverus.memegenerator W/System.err? at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
01-11 12:58:03.217  20664-20664/com.serverus.memegenerator W/System.err? at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-11 12:58:03.217  20664-20664/com.serverus.memegenerator W/System.err? at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-11 12:58:03.217  20664-20664/com.serverus.memegenerator W/System.err? at android.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
01-11 12:58:03.218  20664-20664/com.serverus.memegenerator W/System.err? at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
01-11 12:58:03.218  20664-20664/com.serverus.memegenerator W/System.err? at com.serverus.memegenerator.MainActivity.onCreate(MainActivity.java:14)
01-11 12:58:03.218  20664-20664/com.serverus.memegenerator W/System.err? at android.app.Activity.performCreate(Activity.java:5122)
01-11 12:58:03.218  20664-20664/com.serverus.memegenerator W/System.err? at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150)
01-11 12:58:03.218  20664-20664/com.serverus.memegenerator W/System.err? at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
01-11 12:58:03.218  20664-20664/com.serverus.memegenerator W/System.err? ... 11 more
01-11 12:58:03.218  20664-20664/com.serverus.memegenerator W/System.err? Caused by: android.support.v4.app.SuperNotCalledException: Fragment TopSectionFragment{4150b820 #0 id=0x7f08003f} did not call through to super.onAttach()
01-11 12:58:03.219  20664-20664/com.serverus.memegenerator W/System.err? at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:905)
01-11 12:58:03.219  20664-20664/com.serverus.memegenerator W/System.err? at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
01-11 12:58:03.219  20664-20664/com.serverus.memegenerator W/System.err? at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1206)
01-11 12:58:03.219  20664-20664/com.serverus.memegenerator W/System.err? at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2159)
01-11 12:58:03.219  20664-20664/com.serverus.memegenerator W/System.err? at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:297)
01-11 12:58:03.219  20664-20664/com.serverus.memegenerator W/System.err? at android.support.v7.app.ActionBarActivity.onCreateView(ActionBarActivity.java:547)
01-11 12:58:03.219  20664-20664/com.serverus.memegenerator W/System.err? at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
01-11 12:58:03.220  20664-20664/com.serverus.memegenerator W/System.err? ... 21 more
01-11 12:58:03.220  20664-20664/com.serverus.memegenerator W/dalvikvm? threadid=1: calling UncaughtExceptionHandler
01-11 12:58:03.221  20664-20664/com.serverus.memegenerator E/AndroidRuntime? FATAL EXCEPTION: main
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.serverus.memegenerator/com.serverus.memegenerator.MainActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class fragment
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2351)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
            at android.app.ActivityThread.access$600(ActivityThread.java:165)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5391)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            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 fragment
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
            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.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
            at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
            at com.serverus.memegenerator.MainActivity.onCreate(MainActivity.java:14)
            at android.app.Activity.performCreate(Activity.java:5122)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
            at android.app.ActivityThread.access$600(ActivityThread.java:165)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5391)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            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.support.v4.app.SuperNotCalledException: Fragment TopSectionFragment{4150b820 #0 id=0x7f08003f} did not call through to super.onAttach()
            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:905)
            at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)
            at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1206)
            at android.support.v4.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2159)
            at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:297)
            at android.support.v7.app.ActionBarActivity.onCreateView(ActionBarActivity.java:547)
            at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
            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.support.v7.app.ActionBarActivityDelegateBase.setContentView(ActionBarActivityDelegateBase.java:228)
            at android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:102)
            at com.serverus.memegenerator.MainActivity.onCreate(MainActivity.java:14)
            at android.app.Activity.performCreate(Activity.java:5122)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1150)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2315)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2403)
            at android.app.ActivityThread.access$600(ActivityThread.java:165)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5391)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            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)
01-11 12:58:13.031  20664-20671/com.serverus.memegenerator D/jdwp? received file descriptor 45 from ADB
01-11 12:58:27.251  20664-20671/com.serverus.memegenerator D/jdwp? processIncoming
01-11 12:58:27.276  20664-20671/com.serverus.memegenerator D/jdwp? processIncoming
01-11 12:58:27.276  20664-20671/com.serverus.memegenerator D/jdwp? handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x40000037, flags=0x0, dataLen=0x8
01-11 12:58:35.318  20664-20671/com.serverus.memegenerator D/jdwp? processIncoming
01-11 12:58:35.319  20664-20671/com.serverus.memegenerator D/jdwp? handlePacket : cmd=0x1, cmdSet=0xC7, len=0x17, id=0x40000038, flags=0x0, dataLen=0xC
01-11 12:58:35.320  20664-20671/com.serverus.memegenerator D/jdwp? processIncoming
01-11 12:58:35.320  20664-20671/com.serverus.memegenerator D/jdwp? handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x40000039, flags=0x0, dataLen=0x8
01-11 12:58:35.321  20664-20671/com.serverus.memegenerator D/jdwp? processIncoming
01-11 12:58:35.323  20664-20671/com.serverus.memegenerator D/jdwp? handlePacket : cmd=0x1, cmdSet=0xC7, len=0x13, id=0x4000003A, flags=0x0, dataLen=0x8
01-11 12:58:35.323  20664-20671/com.serverus.memegenerator D/jdwp? processIncoming
01-11 12:58:35.323  20664-20671/com.serverus.memegenerator D/jdwp? handlePacket : cmd=0x1, cmdSet=0xC7, len=0x14, id=0x4000003B, flags=0x0, dataLen=0x9


I hope somebody help me with this Im very new to java and android thanks in advance

Post a Reply

Replies

Oldest  Newest  Rating
+1 Amit . · January 11, 2015
I think the problem is in BottomPictureFragment.java and TopSectionFragment.java in this line  
import android.support.v4.app.Fragment;


change it to 

import android.app.Fragment;
0 alvin joseph valdez · January 11, 2015
but if I removed that it gives my extends Fragment an error

/images/forum/upload/2015-01-11/7d6e3fe072ed32e52097ce9bca6ae691.png
0 Troy Jones · January 12, 2015
Look for these...


Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class fragment

0 k00na k · May 2, 2015
I am currently having the same problem and im also new to android development. I wish there was a link to source code so i could go compare and check for errors without watching the whole set of tutorials again.... 
0 Erik Anderson · May 4, 2015
Here is the source code for my meme generator that works. The code is pretty much identical to the one from the tuts but i've change the colour and size on the font for the text. And im also pretty new to this so there is a lot of comments in Swedish that i couldnt be botherd to delete, so have that in mind, and if someone who is swedish and looks at comments. Im not 100% sure if they are correct. Anyway hope the code help u guys out.

MainActivity.java
http://pastebin.com/miTRaagf

TopSectionFragment.java
http://pastebin.com/2j3spSQh

BottomSectionFragment.java
http://pastebin.com/3gzUa0wK

activity_main.xml
http://pastebin.com/CJmrbS4R

bottom_picture_fragment.xml
http://pastebin.com/3E4bDWyL

top_section_fragment.xml
http://pastebin.com/K8dJ5EFc
  • 1

Java / Android Development

106,991 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator