{"id":964,"date":"2023-03-11T19:43:24","date_gmt":"2023-03-11T11:43:24","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=964"},"modified":"2023-04-29T13:29:02","modified_gmt":"2023-04-29T05:29:02","slug":"glide-4-x-cannot-find-appglidemodule","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/11\/glide-4-x-cannot-find-appglidemodule\/","title":{"rendered":"Glide 4.x\u627e\u4e0d\u5230AppGlideModule"},"content":{"rendered":"<p>\u7ffb\u9605Release\u65e5\u5fd7\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/github.com\/bumptech\/glide\/releases\">https:\/\/github.com\/bumptech\/glide\/releases<\/a><\/p>\n<p>\u67e5\u770b<code>Glide 4.5.0<\/code> Release\u66f4\u65b0\u65e5\u5fd7\uff1a<code>Glide must be compiled against API 27<\/code><\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4\uff1a<code>Glide 4.5.0<\/code>\u53ca\u4ee5\u4e0a\u7248\u672c\u4e0d\u80fd\u4f7f\u7528API 27\u53ca\u4ee5\u4e0a\u7248\u672c\u7684SDK\u7f16\u8bd1<\/p>\n<p><!-- more --><\/p>\n<ul>\n<li>\u5982\u679c\u975e\u5f97\u4f7f\u7528API 27\u53ca\u4ee5\u4e0a\u7248\u672c\u7f16\u8bd1\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Glide 4.4.0<\/code>\u7248\u672c<\/li>\n<li>\u5982\u679c\u975e\u5f97\u4f7f\u7528Glide\u6700\u65b0\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528API 26\u8fdb\u884c\u7f16\u8bd1<\/li>\n<\/ul>\n<pre><code>dependencies {\n  implementation &quot;com.github.bumptech.glide:glide:4.4.0&quot;\n  annotationProcessor &#039;com.github.bumptech.glide:compiler:4.4.0&#039;\n}<\/code><\/pre>\n<p>\u53c2\u8003\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"http:\/\/bumptech.github.io\/glide\/doc\/download-setup.html#android-sdk-requirements\">http:\/\/bumptech.github.io\/glide\/doc\/download-setup.html#android-sdk-requirements<\/a><\/p>\n<h3>Android SDK Requirements<\/h3>\n<p><strong>Minimum SDK Version<\/strong> &#8211; Glide requires a minimum SDK version of <strong>14<\/strong> (Ice Cream Sandwich) or higher.<\/p>\n<p><strong>Compile SDK Version<\/strong> &#8211; Glide must be compiled against SDK version <strong>27<\/strong> (Oreo MR1) or higher.<\/p>\n<p><strong>Support Library Version<\/strong> &#8211; Glide uses support library version <strong>27<\/strong>.<\/p>\n<p>If you need or would prefer to use a different version of the support library you should exclude <code>&quot;com.android.support&quot;<\/code> from your Glide dependency in your <code>build.gradle<\/code> file. For example, if you\u2019d like to use v26 of the support library:<\/p>\n<pre><code>dependencies {\n  implementation (&quot;com.github.bumptech.glide:glide:4.7.1&quot;) {\n    exclude group: &quot;com.android.support&quot;\n  }\n  implementation &quot;com.android.support:support-fragment:26.1.0&quot;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7ffb\u9605Release\u65e5\u5fd7\uff1ahttps:\/\/github.com\/bumptech\/glide\/releases  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[209],"class_list":["post-964","post","type-post","status-publish","format-standard","hentry","category-java","tag-glide"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=964"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/964\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}