android.util.SuperNotCalledException: Activity {com.example.broadvasttest/com.example.broadvastte

本文针对Android开发者常遇到的SuperNotCalledException进行了详细解析,并提供了有效的解决方案。特别强调了在覆盖生命周期方法时调用super方法的重要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

                                     菜鸟错误大全(二)

我们都是从新手一步一个坑踩过来的,下面我们来讲讲会遇到的常见错误和解决办法:
android.util.SuperNotCalledException: Activity {com.example.broadvasttest/com.example.broadvasttest.MainActivity} did not call through to super.onDestroy():在重写 onStart()、onStop()、onResume()、onPause()、onDestroy() 等等函数的时候一定要在函数中加上一句 super.onXX();否则就会报相类似的问题

> Task :app:processDebugMainManifest FAILED [com.android.support:animated-vector-drawable:28.0.0] C:\Users\Administrator\.gradle\caches\transforms-3\3648fb114e268826532fb9efd04f940b\transformed\animated-vector-drawable-28.0.0\AndroidManifest.xml Warning: Namespace 'android.support.graphics.drawable' used in: com.android.support:animated-vector-drawable:28.0.0, com.android.support:support-vector-drawable:28.0.0. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:41:5-75 Warning: Element uses-permission#android.permission.INSTALL_PACKAGES at AndroidManifest.xml:41:5-75 duplicated with element declared at AndroidManifest.xml:10:5-74 F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:47:5-76 Warning: Element uses-permission#android.permission.CHANGE_WIFI_STATE at AndroidManifest.xml:47:5-76 duplicated with element declared at AndroidManifest.xml:35:5-76 F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:61:5-67 Warning: Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:61:5-67 duplicated with element declared at AndroidManifest.xml:31:5-67 F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:64:5-75 Warning: Element uses-permission#android.permission.READ_PHONE_STATE at AndroidManifest.xml:64:5-75 duplicated with element declared at AndroidManifest.xml:19:5-75 F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:65:5-69 Warning: Element uses-permission#android.permission.CALL_PHONE at AndroidManifest.xml:65:5-69 duplicated with element declared at AndroidManifest.xml:22:5-69 F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:91:9-105:20 Error: android:exported needs to be explicitly specified for element <activity#com.dosen.watchtest.MainActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:307:9-320:20 Error: android:exported needs to be explicitly specified for element <activity#com.dosen.watchtest.activity.PhotoActivity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:119:9-123:19 Error: android:exported needs to be explicitly specified for element <service#com.dosen.watchtest.alarm.AlarmKlaxon>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:111:9-117:20 Error: android:exported needs to be explicitly specified for element <receiver#com.dosen.watchtest.alarm.AlarmReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:125:9-133:20 Error: android:exported needs to be explicitly specified for element <receiver#com.dosen.watchtest.alarm.AlarmInitReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:148:9-152:20 Error: android:exported needs to be explicitly specified for element <receiver#com.dosen.watchtest.receiver.WakeLockBroadCast>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:154:9-158:20 Error: android:exported needs to be explicitly specified for element <receiver#com.dosen.watchtest.receiver.CloudOpenReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:160:9-164:20 Error: android:exported needs to be explicitly specified for element <receiver#com.dosen.watchtest.receiver.SmsReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:71:9-76:20 Error: android:exported needs to be explicitly specified for element <receiver#io.rong.callkit.VoIPBroadcastReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:80:9-84:20 Error: android:exported needs to be explicitly specified for element <receiver#io.rong.callkit.util.RTCPhoneStateReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. F:\git13\WatchTest1\app\src\main\AndroidManifest.xml:46:9-61:20 Error: android:exported needs to be explicitly specified for element <receiver#io.rong.push.rongpush.PushReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. 是什么问题
06-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值