`
liuguofeng
  • 浏览: 449445 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

: android.support.v4.app.SuperNotCalledException

 
阅读更多

09-20 18:44:40.842: E/AndroidRuntime(28757): FATAL EXCEPTION: main

09-20 18:44:40.842: E/AndroidRuntime(28757): android.support.v4.app.SuperNotCalledException: Fragment ChartFrameActivity{42d15ec0 #0 id=0x7f080000 android:switcher:2131230720:0} did not call through to super.onStart()

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.Fragment.performStart(Fragment.java:1526)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:957)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1104)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1467)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:472)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:141)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.view.ViewPager.populate(ViewPager.java:1068)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.view.ViewPager.populate(ViewPager.java:914)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1436)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.measureVertical(LinearLayout.java:833)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5056)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5056)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1396)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.measureVertical(LinearLayout.java:681)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.LinearLayout.onMeasure(LinearLayout.java:574)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5056)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)

09-20 18:44:40.842: E/AndroidRuntime(28757): at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2361)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.View.measure(View.java:15473)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1974)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1217)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1390)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1112)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4472)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.Choreographer.doCallbacks(Choreographer.java:555)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.Choreographer.doFrame(Choreographer.java:525)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.os.Handler.handleCallback(Handler.java:615)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.os.Handler.dispatchMessage(Handler.java:92)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.os.Looper.loop(Looper.java:137)

09-20 18:44:40.842: E/AndroidRuntime(28757): at android.app.ActivityThread.main(ActivityThread.java:4898)

09-20 18:44:40.842: E/AndroidRuntime(28757): at java.lang.reflect.Method.invokeNative(Native Method)

09-20 18:44:40.842: E/AndroidRuntime(28757): at java.lang.reflect.Method.invoke(Method.java:511)

09-20 18:44:40.842: E/AndroidRuntime(28757): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)

09-20 18:44:40.842: E/AndroidRuntime(28757): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)

09-20 18:44:40.842: E/AndroidRuntime(28757): at dalvik.system.NativeStart.main(Native Method)

 

 

解决办法

          你重写的方法@Override

public void onStart() {

Log.i(TAG, "onStart");

//super.onStart();//不能注释掉

}

 

分享到:
评论

相关推荐

    安卓最新com.android.support:support-v4:26.1.0

    安卓最新com.android.support:support-v4:26.1.0-这个算比较新的了

    Error:(26, 13) Failed to resolve: com.android.support:appcompat-v7:29.+ *****

    4. **更新项目依赖**:在`build.gradle`(Module:app)文件中,确认`compileSdkVersion`、`targetSdkVersion`以及`buildToolsVersion`的值。这三个值需要与你的SDK工具中的版本相匹配。在这个例子中,`...

    android支持包:android-support-v4

    **Android支持库:Android Support V4** Android Support Library V4,简称`android-support-v4`,是Android开发者广泛使用的库,旨在提供对Android早期版本的兼容性,同时包含许多先进的特性,使得应用能够运行在...

    android-support-v4.jar各种版本

    内容包含:android-support-v4_1.6.0_26_20120316.jar android-support-v4_1.6.0_26_20120623.jar android-support-v4_1.6.0_26_20120730.jar android-support-v4_1.6.0_26_20121109.jar android-support-v4_1.6.0_26...

    android-support-v4/v7 26 27 28三个版本下载

    `android-support-v4`库是为了保证在Android API Level 4(即Android 1.6)以上版本运行的功能兼容性,而`appcompat-v7`库则提供了对Android Material Design设计风格的支持,并且同样确保在低版本系统上的兼容。...

    android-support-v4.jar最新版

    **Android Support Library v4详解** Android Support Library v4是一个重要的组件,它为Android应用程序提供了向后兼容的功能。这个库使得开发者能够使用最新的API特性,即使目标设备运行的是早期版本的Android...

    Xamarin.Android.Support.v4.dll

    想找support_r19.1,Xamarin.Android.Support.v4.dll就是,直接在VS2015里面对项目右键添加引用即可,

    support-v4-28.0.0.aar

    support-v4-28.0.0.aar,用于Android开发使用的V4库,版本28,方便开发。

    android.support.v4.util.Pools使用

    `android.support.v4.util.Pools`库提供了一种机制,帮助开发者有效地重用对象,从而节省内存并提高性能。这个库主要包含两种类型的池:`SynchronizedPool`和`SimplePool`,它们都是基于对象池的设计模式。 ### 1. ...

    最新版android-support-v4.jar

    这是最新版的android-support-v4.jar,大小1MB多,比其它那种几百K的要大,因为这是最新的android-support-v4.jar,有最新的android.support.v4.view.animation类,现在是2015年10月,这是截至目前最新的jar包

    android.support:appcompat-v7:21.0.2

    在用android studio开发APP时,有些项目是为了2.1及以上版本而设计的,但不包含更低,所以要加上v7这个包。此V7包的版本为android.support:appcompat-v7:21.0.2,下载后解压,放在android SDK的extras文件夹下面,...

    解决android-support-v4.jar无法找到checkSelfPermission

    2. **导入错误**:检查你的代码中是否正确导入了`android.support.v4.content.ContextCompat`包。错误的导入可能导致编译错误。 3. **依赖问题**:如果使用Gradle,确保在build.gradle文件中添加了正确的依赖项,如...

    android.support.annotations.jar

    《深入理解Android支持库:android.support.annotations.jar》 在Android应用开发中,`android.support.annotations.jar`是一个至关重要的组件,它是Google为开发者提供的一种支持库,主要用于解决在Eclipse环境中...

    android.support.v4.jar android.support.v7.appcompat.jar

    两个java库,Unity发布安卓项目经常会有需要。 发包时遇到报错: ...<provider android:name="android.support.v4.content.FileProvider" 建议改为 <provider android:name="androidx.core.content.FileProvider

    android viewpager android-support-v4.jar

    标题中的“android viewpager android-support-v4.jar”指的是Android平台上的一个关键组件——ViewPager,以及它依赖的Android Support Library v4。ViewPager是Android SDK中用于实现页面滑动效果的控件,常见于...

    android-support-v4.jar包含源码(基于18)

    android-support-v4 源码,包含4.2之后引进的新的类,如FragmentTabHost, DrawerLayout等低版本v4包中没有的类

    Android旧版本包与AndroidX对照表.docx

    AndroidX:androidx.arch.core:core-common:2.0.0-rc01 旧版本包:android.arch.core:core AndroidX:androidx.arch.core:core:2.0.0-rc01 旧版本包:android.arch.core:core-testing AndroidX:androidx.arch....

    一劳永逸解决Failed to resolve:com.android.support:appcompat-v7:28.+

    一劳永逸方法 网上的其他方法比如修改...android-studio-ide-2.3.3\android-studio\plugins\android\lib\templates\gradle-projects\NewAndroidProject\root\ 找到build.gradle.ftl文件 编辑 ,在 allprojects

    解决android.support.v4.content.FileProvide找不到的问题

    <provider android:name=android.support.v4.content.FileProvider android:authorities=com.boxin.forklift.fileprovider android:exported=false android:grantUriPermissions=true> <meta-data android:...

    android-support-v4.jar.zip

    import android.support.v4.app.Fragment; ``` 四、最佳实践 1. **版本控制**:保持v4库的版本与项目中其他Android Support库版本一致,以避免可能出现的不兼容问题。 2. **合理使用Fragment**:尽管Fragment...

Global site tag (gtag.js) - Google Analytics