Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.SecurityException: com.holoflow.story: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts #92

Open
gubaojian opened this issue Jun 28, 2024 · 0 comments

Comments

@gubaojian
Copy link

Android 14 启动出错

E/GeneratedPluginRegistrant(29241): Error registering plugin r_upgrade, com.example.r_upgrade.RUpgradePlugin
E/GeneratedPluginRegistrant(29241): java.lang.SecurityException: com.holoflow.story: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
E/GeneratedPluginRegistrant(29241): at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
E/GeneratedPluginRegistrant(29241): at android.os.Parcel.createException(Parcel.java:3041)
E/GeneratedPluginRegistrant(29241): at android.os.Parcel.readException(Parcel.java:3024)
E/GeneratedPluginRegistrant(29241): at android.os.Parcel.readException(Parcel.java:2966)
E/GeneratedPluginRegistrant(29241): at android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature(IActivityManager.java:6203)
E/GeneratedPluginRegistrant(29241): at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1863)
E/GeneratedPluginRegistrant(29241): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1803)
E/GeneratedPluginRegistrant(29241): at android.app.ContextImpl.registerReceiver(ContextImpl.java:1791)
E/GeneratedPluginRegistrant(29241): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:766)
E/GeneratedPluginRegistrant(29241): at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:766)
E/GeneratedPluginRegistrant(29241): at com.example.r_upgrade.common.manager.UpgradeManager.(UpgradeManager.java:111)
E/GeneratedPluginRegistrant(29241): at com.example.r_upgrade.RUpgradePlugin.initPlugin(RUpgradePlugin.java:41)
E/GeneratedPluginRegistrant(29241): at com.example.r_upgrade.RUpgradePlugin.onAttachedToActivity(RUpgradePlugin.java:74)
E/GeneratedPluginRegistrant(29241): at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add(FlutterEngineConnectionRegistry.java:157)
E/GeneratedPluginRegistrant(29241): at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:114)
E/GeneratedPluginRegistrant(29241): at java.lang.reflect.Method.invoke(Native Method)
E/GeneratedPluginRegistrant(29241): at io.flutter.embedding.engine.plugins.util.GeneratedPluginRegister.registerGeneratedPlugins(GeneratedPluginRegister.java:80)
E/GeneratedPluginRegistrant(29241): at io.flutter.embedding.android.FlutterFragmentActivity.configureFlutterEngine(FlutterFragmentActivity.java:737)
E/GeneratedPluginRegistrant(29241): at com.holoflow.story.MainActivity.configureFlutterEngine(MainActivity.kt:37)
E/GeneratedPluginRegistrant(29241): at io.flutter.embedding.android.FlutterFragment.configureFlutterEngine(FlutterFragment.java:1520)
E/GeneratedPluginRegistrant(29241): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:219)
E/GeneratedPluginRegistrant(29241): at io.flutter.embedding.android.FlutterFragment.onAttach(FlutterFragment.java:1056)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.Fragment.performAttach(Fragment.java:2922)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:464)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:275)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2189)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2100)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:2002)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3138)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:3072)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:251)
E/GeneratedPluginRegistrant(29241): at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:502)
E/GeneratedPluginRegistrant(29241): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1597)
E/GeneratedPluginRegistrant(29241): at android.app.Activity.performStart(Activity.java:8931)
E/GeneratedPluginRegistrant(29241): at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4036)
E/GeneratedPluginRegistrant(29241): at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:235)
E/GeneratedPluginRegistrant(29241): at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:215)
E/GeneratedPluginRegistrant(29241): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:187)
E/GeneratedPluginRegistrant(29241): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
E/GeneratedPluginRegistrant(29241): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2609)
E/GeneratedPluginRegistrant(29241): at android.os.Handler.dispatchMessage(Handler.java:106)
E/GeneratedPluginRegistrant(29241): at android.os.Looper.loopOnce(Looper.java:224)
E/GeneratedPluginRegistrant(29241): at android.os.Looper.loop(Looper.java:318)
E/GeneratedPluginRegistrant(29241): at android.app.ActivityThread.main(ActivityThread.java:8775)
E/GeneratedPluginRegistrant(29241): at java.lang.reflect.Method.invoke(Native Method)
E/GeneratedPluginRegistrant(29241): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
E/GeneratedPluginRegistrant(29241): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
E/GeneratedPluginRegistrant(29241): Caused by: android.os.RemoteException: Remote stack trace:
E/GeneratedPluginRegistrant(29241): at com.android.server.am.ActivityManagerService.registerReceiverWithFeature(ActivityManagerService.java:14692)
E/GeneratedPluginRegistrant(29241): at android.app.IActivityManager$Stub.onTransact$registerReceiverWithFeature$(IActivityManager.java:12213)
E/GeneratedPluginRegistrant(29241): at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3188)
E/GeneratedPluginRegistrant(29241): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2862)
E/GeneratedPluginRegistrant(29241): at android.os.Binder.execTransactInternal(Binder.java:1346)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant