{"id":1713,"date":"2022-04-13T19:40:30","date_gmt":"2022-04-13T10:40:30","guid":{"rendered":"https:\/\/leenux.site\/?p=1713"},"modified":"2022-04-16T20:51:03","modified_gmt":"2022-04-16T11:51:03","slug":"flutter-android-application-java16-error-cannot-find-symbol-flutterfirebasemessagingservice-setpluginregistrantthis","status":"publish","type":"post","link":"https:\/\/leenux.kr\/?p=1713","title":{"rendered":"[Flutter] Android, Application.java:16: error: cannot find symbol FlutterFirebaseMessagingService.setPluginRegistrant(this);"},"content":{"rendered":"\n<p class=\"has-black-color has-text-color has-medium-font-size\"><strong>flutter, dart, gradle \uc744 \uc5c5\ub370\uc774\ud2b8 \uc774\ud6c4 cannot find symbol FlutterFirebaseMessagingService.setPluginRegistrant(this); \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud558\uc600\ub2e4. \uc6d0\uc778\uc740 \uae30\uc874 io.flutter.plugins.firebasemessaging\uc744 \ucc3e\uc744 \uc218 \uc5c6\ub294 \uac83\uc774\ub2e4. \uadf8\ub798\uc11c \uae00\ub798\uc2a4\uc5d0 Command + Enter\uc744 \ud588\uc744 \uacbd\uc6b0 &#8220;Import Class&#8221; \ub5a0 \uc2dc\ub3c4 \ud574\ubcf4\ub2c8 io.flutter.plugins.firebase.messaging\uc73c\ub85c \uacbd\ub85c\uac00 \uc7a1\ud600 1\ucc28 \ubb38\uc81c\ub294 \ud574\uacb0\ub418\uc5c8\ub2e4.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-black-background-color has-black-color is-style-wide\"\/>\n\n\n\n<p class=\"has-black-color has-text-color has-medium-font-size\"><strong>Application.java<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">package you.package.name;\n\nimport io.flutter.app.FlutterApplication;\nimport io.flutter.plugin.common.PluginRegistry;\nimport io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback;\nimport io.flutter.plugins.GeneratedPluginRegistrant;\nimport io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService;\n\npublic class Application extends FlutterApplication implements PluginRegistrantCallback {\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n        FlutterFirebaseMessagingService.setPluginRegistrant(this);\n    }\n\n    @Override\n    public void registerWith(PluginRegistry registry) {\n        FirebaseMessagingPluginRegistrant.registerWith(registry);\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"has-black-color has-text-color has-medium-font-size\"><strong>\ucf54\ub4dc \uc218\uc815 \ud6c4<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">import io.flutter.app.FlutterApplication;\nimport io.flutter.plugin.common.PluginRegistry;\nimport io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback;\nimport io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundService;\n\npublic class Application extends FlutterApplication implements PluginRegistrantCallback {\n\n    @Override\n    public void onCreate() {\n        super.onCreate();\n    FlutterFirebaseMessagingBackgroundService.setPluginRegistrant(this);\n    }\n\n    @Override\n    public void registerWith(PluginRegistry registry) {\n        \/\/FirebaseMessagingPluginRegistrant.registerWith(registry);\n    }\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-black-background-color has-black-color is-style-wide\"\/>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\"><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[Flutter] Android, Application.java:16: error: cannot find symbol FlutterFirebaseMessagingService.setPluginRegistrant(this); \uc5d0\ub7ec \ud574\uacb0\ud558\uae30<\/p>\n","protected":false},"author":1,"featured_media":1017,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,3],"tags":[],"_links":{"self":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/1713"}],"collection":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1713"}],"version-history":[{"count":1,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/1713\/revisions"}],"predecessor-version":[{"id":1714,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/posts\/1713\/revisions\/1714"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=\/wp\/v2\/media\/1017"}],"wp:attachment":[{"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leenux.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}