{"id":1397,"date":"2024-05-11T12:13:20","date_gmt":"2024-05-11T04:13:20","guid":{"rendered":"https:\/\/log.tanxiaodian.com\/?p=1397"},"modified":"2024-05-11T12:13:21","modified_gmt":"2024-05-11T04:13:21","slug":"%e9%94%99%e8%af%af%e8%ae%b0%e5%bd%95java-lang-illegalargumentexception-couldnt-find-meta-data-for-provider-with-authority","status":"publish","type":"post","link":"https:\/\/log.tanxiaodian.com\/?p=1397","title":{"rendered":"\u9519\u8bef\u8bb0\u5f55:java.lang.IllegalArgumentException: Couldn&#8217;t find meta-data for provider with authority"},"content":{"rendered":"\n<p>\u573a\u666f\uff1a\u4e0b\u8f7d\u6587\u4ef6 \u6bd4\u5982apk\u5305 \u6211\u4f7f\u7528\u4e86flutter_downloader\u63d2\u4ef6<\/p>\n\n\n\n<p>\u9519\u8bef:java.lang.IllegalArgumentException: Couldn&#8217;t find meta-data for provider with authority com.example.gyidle.flutter_downloader.provider<\/p>\n\n\n\n<p>\u5904\u7406: \u67e5\u8be2\u6b64\u9519\u8bef\u53d1\u73b0\u9700\u8981\u6dfb\u52a0AndroidManifest.xml\u6587\u4ef6\u7684\u5185\u5bb9\u63d0\u4f9b\u8005\u914d\u7f6e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        &lt;provider\n            android:name=\"androidx.core.content.FileProvider\"\n            android:authorities=\"{$applicationId}.provider\"\n            android:exported=\"false\"\n            android:grantUriPermissions=\"true\">\n            &lt;meta-data\n                android:name=\"android.support.FILE_PROVIDER_PATHS\"\n                android:resource=\"@xml\/file_paths_public\" \/>\n        &lt;\/provider> <\/code><\/pre>\n\n\n\n<p><strong>\u6dfb\u52a0\u5b8c\u6210\u540e \u9000\u51faflutter \u91cd\u65b0\u8fdb\u5165  \u4efb\u7136\u62a5\u9519<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java.lang.IllegalArgumentException: Couldn't find meta-data for provider with authority com.example.gyidle.flutter_downloader.provider<\/code><\/pre>\n\n\n\n<p>\u7ee7\u7eed\u89e3\u51b3:\u7d22\u6027\u6211\u5c31\u76f4\u63a5\u7528 com.example.gyidle.flutter_downloader.provider  \u7ed9\u4ed6\u5199\u6b7b<\/p>\n\n\n\n<p>\u518d\u6b21\u9000\u51faflutter \u91cd\u65b0\u8fdb\u5165  \u6210\u529f\u4e86<\/p>\n\n\n\n<p>\u7136\u540e\u6211\u53bb\u76ee\u5f55\u4e0b\u9762\u770b\u662f\u5426\u771f\u7684\u4e0b\u8f7d\u6210\u529f<\/p>\n\n\n\n<p>Android\/data\/com.example.gyidle\/files\/downloads\/app-release.apk<\/p>\n\n\n\n<p><strong>\u662f\u5b58\u5728\u7684 \u90a3\u4e48\u7ec8\u4e8e\u6210\u529f\u4e86<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u573a\u666f\uff1a\u4e0b\u8f7d\u6587\u4ef6 \u6bd4\u5982apk\u5305 \u6211\u4f7f\u7528\u4e86flutte&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/log.tanxiaodian.com\/?p=1397\">Continue reading<span class=\"screen-reader-text\">\u9519\u8bef\u8bb0\u5f55:java.lang.IllegalArgumentException: Couldn&#8217;t find meta-data for provider with authority<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[251],"tags":[258],"_links":{"self":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1397"}],"collection":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1397"}],"version-history":[{"count":1,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1397\/revisions"}],"predecessor-version":[{"id":1398,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=\/wp\/v2\/posts\/1397\/revisions\/1398"}],"wp:attachment":[{"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.tanxiaodian.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}