{"id":4487,"date":"2021-08-18T18:41:35","date_gmt":"2021-08-18T10:41:35","guid":{"rendered":"http:\/\/122.152.205.50\/wordpress\/?p=4487"},"modified":"2026-05-24T18:34:32","modified_gmt":"2026-05-24T10:34:32","slug":"androidstudio%e7%9a%84%e5%90%84%e7%a7%8d%e5%9d%91","status":"publish","type":"post","link":"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487","title":{"rendered":"AndroidStudio\u76f8\u5173\u7684\u5404\u79cdissue\u8bb0\u5f55"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_16 counter-hierarchy counter-decimal ez-toc-grey\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><i class=\"ez-toc-glyphicon ez-toc-icon-toggle\"><\/i><\/a><\/span><\/div>\n<nav><ul class=\"ez-toc-list ez-toc-list-level-1\"><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#202422\" title=\"2024.2.2\">2024.2.2<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-1\"><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#%E5%85%B6%E5%AE%83%E7%89%88%E6%9C%AC\" title=\"\u5176\u5b83\u7248\u672c\">\u5176\u5b83\u7248\u672c<\/a><ul class=\"ez-toc-list-level-5\"><li class=\"ez-toc-heading-level-5\"><ul class=\"ez-toc-list-level-5\"><li class=\"ez-toc-heading-level-5\"><ul class=\"ez-toc-list-level-5\"><li class=\"ez-toc-heading-level-5\"><ul class=\"ez-toc-list-level-5\"><li class=\"ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#1Android_Studio%E4%B8%AD%E7%9A%84Gradle%E9%9D%A2%E6%9D%BF%E6%B2%A1%E6%9C%89Task%E4%BB%BB%E5%8A%A1%E5%88%97%E8%A1%A8\" title=\"1.Android Studio\u4e2d\u7684Gradle\u9762\u677f\u6ca1\u6709Task\u4efb\u52a1\u5217\u8868\">1.Android Studio\u4e2d\u7684Gradle\u9762\u677f\u6ca1\u6709Task\u4efb\u52a1\u5217\u8868<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#2Warning_debug_info_can_be_unavailable_Please_close_other_application_using_ADB%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95\" title=\"2.Warning: debug info can be unavailable. Please close other application using ADB\u89e3\u51b3\u529e\u6cd5\">2.Warning: debug info can be unavailable. Please close other application using ADB\u89e3\u51b3\u529e\u6cd5<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#3Android_studio_%E8%AE%BE%E7%BD%AE%E4%BB%A3%E7%90%86%E5%90%8E%E6%B8%85%E9%99%A4%E4%B8%8D%E4%BA%86\" title=\"3.Android studio \u8bbe\u7f6e\u4ee3\u7406\u540e\u6e05\u9664\u4e0d\u4e86\">3.Android studio \u8bbe\u7f6e\u4ee3\u7406\u540e\u6e05\u9664\u4e0d\u4e86<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#4%E5%AF%BC%E5%85%A5%E5%88%AB%E4%BA%BA%E7%9A%84%E9%A1%B9%E7%9B%AE%E6%8A%A5%E9%94%99_can_not_found_build_tools_xxx\" title=\"4.\u5bfc\u5165\u522b\u4eba\u7684\u9879\u76ee\u62a5\u9519:can not found build tools xxx\">4.\u5bfc\u5165\u522b\u4eba\u7684\u9879\u76ee\u62a5\u9519:can not found build tools xxx<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#5%E4%BD%A0%E7%9A%84%E4%B8%BB%E6%9C%BA%E4%B8%AD%E8%BD%AF%E4%BB%B6%E4%B8%AD%E6%AD%A2%E4%BA%86%E4%B8%80%E4%B8%AA%E5%B7%B2%E5%BB%BA%E7%AB%8B%E7%9A%84%E8%BF%9E%E6%8E%A5\" title=\"5.\u4f60\u7684\u4e3b\u673a\u4e2d\u8f6f\u4ef6\u4e2d\u6b62\u4e86\u4e00\u4e2a\u5df2\u5efa\u7acb\u7684\u8fde\u63a5\">5.\u4f60\u7684\u4e3b\u673a\u4e2d\u8f6f\u4ef6\u4e2d\u6b62\u4e86\u4e00\u4e2a\u5df2\u5efa\u7acb\u7684\u8fde\u63a5<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-8\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#6This_project_uses_AndroidX_dependencies_but_the_androiduseAndroidX_property_is_not_enabled\" title=\"6.This project uses AndroidX dependencies, but the &#8216;android.useAndroidX&#8217; property is not enabled.\">6.This project uses AndroidX dependencies, but the &#8216;android.useAndroidX&#8217; property is not enabled.<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-9\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#7%22_IS_NOT_TRANSLATED_IN_%E2%80%A6%E2%80%A6\" title=\"7.\u201c***&quot; IS NOT TRANSLATED IN \u2026\u2026..\">7.\u201c***&quot; IS NOT TRANSLATED IN \u2026\u2026..<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-10\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#8AAPT_error_failed_to_read_PNG_signature_file_does_not_start_with_PNG_signature\" title=\"8.AAPT: error: failed to read PNG signature: file does not start with PNG signature.\">8.AAPT: error: failed to read PNG signature: file does not start with PNG signature.<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-11\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#9Could_not_initialize_class_orgcodehausgroovyreflectionReflectionCache\" title=\"9.Could not initialize class org.codehaus.groovy.reflection.ReflectionCache\">9.Could not initialize class org.codehaus.groovy.reflection.ReflectionCache<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-12\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#10%E6%81%A2%E5%A4%8D%E8%8B%B1%E6%96%87%E8%AF%AD%E8%A8%80\" title=\"10.\u6062\u590d\u82f1\u6587\u8bed\u8a00\">10.\u6062\u590d\u82f1\u6587\u8bed\u8a00<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-13\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#11Minimum_supported_Gradle_version_is_611_Current_version_is_48\" title=\"11.Minimum supported Gradle version is 6.1.1. Current version is 4.8.\">11.Minimum supported Gradle version is 6.1.1. Current version is 4.8.<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-14\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#12Unable_to_load_class_javaxxmlbindannotationXmlSchema\" title=\"12.Unable to load class &#8216;javax.xml.bind.annotation.XmlSchema&#8217;.\">12.Unable to load class &#8216;javax.xml.bind.annotation.XmlSchema&#8217;.<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-15\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#13gradle%E4%B8%8B%E8%BD%BD%E6%85%A2\" title=\"13.gradle\u4e0b\u8f7d\u6162\">13.gradle\u4e0b\u8f7d\u6162<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-16\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#14android_studio_gradle_task_wrapper_not_found_in_project\" title=\"14.android studio gradle task wrapper not found in project\">14.android studio gradle task wrapper not found in project<\/a><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-5\"><a class=\"ez-toc-link ez-toc-heading-17\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#15\" title=\"15.\">15.<\/a><\/li><\/ul><\/li><\/ul><\/li><li class=\"ez-toc-page-1 ez-toc-heading-level-3\"><a class=\"ez-toc-link ez-toc-heading-18\" href=\"http:\/\/xinyiworld.top\/wordpress_it\/?p=4487\/#Kotlin%E7%9B%B8%E5%85%B3%E9%97%AE%E9%A2%98\" title=\"Kotlin\u76f8\u5173\u95ee\u9898\">Kotlin\u76f8\u5173\u95ee\u9898<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"202422\"><\/span>2024.2.2<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<ul>\n<li>\u7535\u8111\u610f\u5916\u65ad\u7535\u91cd\u542f\u540e\u6240\u6709\u9879\u76ee\u7f16\u8bd1\u62a5\u9519 Illegal Capacity: -1<br \/>\n\u901a\u8fc7\u67e5\u770b<code>C:\\Users\\Administrator\\AppData\\Local\\Google\\AndroidStudio2024.2\\log\\idea.log<\/code><br \/>\n\u641c\u7d22<code>Caused by<\/code><\/li>\n<\/ul>\n<pre><code class=\"language-bash\">Caused by: org.gradle.api.GradleException: Could not read cache value from &#039;C:\\Users\\Administrator\\.gradle\\daemon\\8.10.2\\registry.bin&#039;.\nCaused by: java.lang.IllegalArgumentException: Illegal Capacity: -1<\/code><\/pre>\n<p>\u6700\u7ec8\uff0c\u5c06<code>C:\\Users\\Administrator\\.gradle\\daemon\\8.10.2\\registry.bin.lock<\/code>\u6587\u4ef6\u5220\u9664\u91cd\u65b0\u6253\u5f00\u9879\u76ee\u5c31\u597d\u4e86\u3002<\/p>\n<h1><span class=\"ez-toc-section\" id=\"%E5%85%B6%E5%AE%83%E7%89%88%E6%9C%AC\"><\/span>\u5176\u5b83\u7248\u672c<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<h5><span class=\"ez-toc-section\" id=\"1Android_Studio%E4%B8%AD%E7%9A%84Gradle%E9%9D%A2%E6%9D%BF%E6%B2%A1%E6%9C%89Task%E4%BB%BB%E5%8A%A1%E5%88%97%E8%A1%A8\"><\/span>1.Android Studio\u4e2d\u7684Gradle\u9762\u677f\u6ca1\u6709Task\u4efb\u52a1\u5217\u8868<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p><a href=\"https:\/\/blog.csdn.net\/qq_41680720\/article\/details\/118025933\">https:\/\/blog.csdn.net\/qq_41680720\/article\/details\/118025933<\/a><\/p>\n<p>1\uff09\u70b9\u51fbAndroid Studio\u2013&gt;Preference\u2013&gt;\u9009\u62e9Experimental(\u5b9e\u9a8c\u6027\u9009\u9879)\u2013&gt;\u5728Gradle\u4e00\u680f\u4e2d\u53d6\u6d88\u52fe\u9009&quot;Do not build Gradle task list during Gradle sync&quot;<\/p>\n<p>2\uff09\u70b9\u51fbFile\u2013&gt;Sync Project with Gradle Files\u5373\u53ef<\/p>\n<h5><span class=\"ez-toc-section\" id=\"2Warning_debug_info_can_be_unavailable_Please_close_other_application_using_ADB%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95\"><\/span>2.Warning: debug info can be unavailable. Please close other application using ADB\u89e3\u51b3\u529e\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>\u5f00\u5173\u4e00\u4e0b\u5f00\u53d1\u8005\u9009\u9879\uff0c\u6216\u8005\u91cd\u542f\u624b\u673a\u3002<\/p>\n<h5><span class=\"ez-toc-section\" id=\"3Android_studio_%E8%AE%BE%E7%BD%AE%E4%BB%A3%E7%90%86%E5%90%8E%E6%B8%85%E9%99%A4%E4%B8%8D%E4%BA%86\"><\/span>3.Android studio \u8bbe\u7f6e\u4ee3\u7406\u540e\u6e05\u9664\u4e0d\u4e86<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>\u901a\u8fc7ide\u91cc\u7684http proxy\u662f\u65e0\u6cd5\u5220\u9664\u7684<br \/>\n<a href=\"https:\/\/www.jianshu.com\/p\/3f9381ef71e4\">https:\/\/www.jianshu.com\/p\/3f9381ef71e4<\/a><\/p>\n<p>\u9879\u76ee\u7ed3\u6784\u5207\u6362\u6210Android<br \/>\n\u6253\u5f00Gradle Scripts\u680f<br \/>\n\u53d1\u73b0\u6709\u4e24\u4e2agradle.properties<br \/>\n\u627e\u5230.gradle\u4e0b\u7684gradle.properties\u6587\u4ef6\u6e05\u9664\u3002<\/p>\n<h5><span class=\"ez-toc-section\" id=\"4%E5%AF%BC%E5%85%A5%E5%88%AB%E4%BA%BA%E7%9A%84%E9%A1%B9%E7%9B%AE%E6%8A%A5%E9%94%99_can_not_found_build_tools_xxx\"><\/span>4.\u5bfc\u5165\u522b\u4eba\u7684\u9879\u76ee\u62a5\u9519:can not found build tools xxx<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p><img src=\"http:\/\/xinyiworld.top\/wordpress_it\/wp-content\/uploads\/2021\/08\/000C8C35-AAA9-4f31-BC8C-705CD886997B.png\" alt=\"\" \/><\/p>\n<h5><span class=\"ez-toc-section\" id=\"5%E4%BD%A0%E7%9A%84%E4%B8%BB%E6%9C%BA%E4%B8%AD%E8%BD%AF%E4%BB%B6%E4%B8%AD%E6%AD%A2%E4%BA%86%E4%B8%80%E4%B8%AA%E5%B7%B2%E5%BB%BA%E7%AB%8B%E7%9A%84%E8%BF%9E%E6%8E%A5\"><\/span>5.\u4f60\u7684\u4e3b\u673a\u4e2d\u8f6f\u4ef6\u4e2d\u6b62\u4e86\u4e00\u4e2a\u5df2\u5efa\u7acb\u7684\u8fde\u63a5<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>\u4e00\u822c\u662f\u7535\u8111\u6ca1\u6709\u8054\u7f51\u6216\u8005\u7f51\u7edc\u4e0d\u597d\uff0c\u53ef\u80fd\u4f60\u505a\u4e86\u4e00\u4e9b\u9700\u8981\u7f51\u7edc\u7684\u64cd\u4f5c\uff1a\u5982\u5207\u6362BuildVariants.<\/p>\n<h5>6.This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled.<\/h5>\n<p>\u53ef\u80fd\u539f\u56e01\uff1adown\u4e0b\u6765\u7684as\u9879\u76ee\u91cc\u7f3a\u5c11gradle.properties\u6587\u4ef6.<\/p>\n<h5><span class=\"ez-toc-section\" id=\"7%22_IS_NOT_TRANSLATED_IN_%E2%80%A6%E2%80%A6\"><\/span>7.\u201c***&quot; IS NOT TRANSLATED IN \u2026\u2026..<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p><a href=\"https:\/\/blog.csdn.net\/admans\/article\/details\/84998741\">https:\/\/blog.csdn.net\/admans\/article\/details\/84998741<\/a><br \/>\n<a href=\"https:\/\/blog.csdn.net\/u011050129\/article\/details\/103523031\">https:\/\/blog.csdn.net\/u011050129\/article\/details\/103523031<\/a><\/p>\n<p>app \u7684build.gradle\u6587\u4ef6\u4e2d\uff0candroid \u6807\u7b7e\u4e0b\u4f7f\u7528<br \/>\n<code> lintOptions { disable &#039;MissingTranslation&#039;, &#039;ExtraTranslation&#039; }<\/code><\/p>\n<h5><span class=\"ez-toc-section\" id=\"8AAPT_error_failed_to_read_PNG_signature_file_does_not_start_with_PNG_signature\"><\/span>8.AAPT: error: failed to read PNG signature: file does not start with PNG signature.<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>\u5728app\/build.gradle\u6587\u4ef6\u4e2d\u52a0\u4ee5\u4e0b\u4ee3\u7801\u540e\uff0c\u91cd\u6784\u9879\u76ee<\/p>\n<pre><code class=\"language-groovy\">aaptOptions.cruncherEnabled = false\naaptOptions.useNewCruncher = false<\/code><\/pre>\n<h5><span class=\"ez-toc-section\" id=\"9Could_not_initialize_class_orgcodehausgroovyreflectionReflectionCache\"><\/span>9.Could not initialize class org.codehaus.groovy.reflection.ReflectionCache<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p><a href=\"https:\/\/www.jianshu.com\/p\/9b58d2fd9423\">https:\/\/www.jianshu.com\/p\/9b58d2fd9423<\/a><br \/>\n\u5b89\u88c5\u7684android studio\u8fc7\u65b0\uff0c\u4f46\u662f\u4f7f\u7528\u7684gradle\u7248\u672c\u592a\u65e7\u3002<br \/>\n\u4e00\u822c\u66f4\u65b0\u81f3\u65b0\u5efa\u9879\u76ee\u9ed8\u8ba4\u7684gradle\u7248\u672c\u5373\u53ef\u3002<\/p>\n<h5><span class=\"ez-toc-section\" id=\"10%E6%81%A2%E5%A4%8D%E8%8B%B1%E6%96%87%E8%AF%AD%E8%A8%80\"><\/span>10.\u6062\u590d\u82f1\u6587\u8bed\u8a00<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p><a href=\"https:\/\/blog.csdn.net\/leelfcn\/article\/details\/123792512\">https:\/\/blog.csdn.net\/leelfcn\/article\/details\/123792512<\/a><\/p>\n<h5><span class=\"ez-toc-section\" id=\"11Minimum_supported_Gradle_version_is_611_Current_version_is_48\"><\/span>11.Minimum supported Gradle version is 6.1.1. Current version is 4.8.<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>\u8fd9\u91cc\u76844.8\u6307\u7684\u662f<code>grale\/wrapper\/gradle-wrapper.properties<\/code>\u4e2d\u7684distributionUrl\u6307\u5b9a\u7684gradle\u7248\u672c\uff0c\u4e0e\u5de5\u7a0b\u6839\u76ee\u5f55\u4e0b\u7684build.gradle\u4e2d\u7684classpath\u7248\u672c\u4e0d\u4e00\u81f4\u3002\u6839\u636e\u7248\u672c\u5173\u7cfb\u5bf9\u5e94\u8868 \uff08\u5b98\u7f51\uff1a<a href=\"https:\/\/developer.android.com\/studio\/releases\/gradle-plugin#updating-plugin\">https:\/\/developer.android.com\/studio\/releases\/gradle-plugin#updating-plugin<\/a>\uff09\u5bf9\u4e0a\u5373\u53ef\u3002<\/p>\n<h5>12.Unable to load class 'javax.xml.bind.annotation.XmlSchema'.<\/h5>\n<p>gradle-wrapper\u4e2dgradle\u7248\u672c\u548c\u9879\u76ee\u7ea7build.gradle\u4e2dgradle\u63d2\u4ef6\u7248\u672c\u4e0d\u5339\u914d<\/p>\n<h5><span class=\"ez-toc-section\" id=\"13gradle%E4%B8%8B%E8%BD%BD%E6%85%A2\"><\/span>13.gradle\u4e0b\u8f7d\u6162<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>\u914d\u7f6ealiyun\u955c\u50cf<a href=\"https:\/\/www.codeleading.com\/article\/45626249099\/\">https:\/\/www.codeleading.com\/article\/45626249099\/<\/a><\/p>\n<pre><code class=\"language-groovy\">    maven{ url &#039;https:\/\/maven.aliyun.com\/repository\/jcenter&#039;}\n    maven { url &#039;https:\/\/maven.aliyun.com\/repository\/google&#039; }    \n    maven { url &#039;https:\/\/maven.aliyun.com\/repository\/gradle-plugin&#039; }\n    maven { url &#039;https:\/\/maven.aliyun.com\/repository\/public&#039; }\n\n    #distributionUrl=https\\:\/\/services.gradle.org\/distributions\/gradle-6.1.1-all.zip\ndistributionUrl=https:\/\/mirrors.cloud.tencent.com\/gradle\/gradle-6.1.1-all.zip<\/code><\/pre>\n<p>\u6ce8\u610f\u4e00\u5b9a\u662f\u5e26all\u7684\u7248\u672c<\/p>\n<p>\u5982\u679c\u4f9d\u7136\u6162\uff0c\u5f00\u542fVPN\uff0c\u4ecegoogle\u5b98\u7f51<a href=\"https:\/\/services.gradle.org\/distributions\/\">https:\/\/services.gradle.org\/distributions\/<\/a> \u4e0b\u8f7dgradle\u5305\uff0c\u7136\u540e\u6309\u7167<br \/>\n<a href=\"https:\/\/xmanyou.com\/manual-install-gradle-for-android-studio\/\">https:\/\/xmanyou.com\/manual-install-gradle-for-android-studio\/<\/a>\u6559\u7a0b\u5c06-all.zip\u7684gradle\u5305\u653e\u5230<code>C:\\Users\\admin\\.gradle\\wrapper\\dists\\gradle-5.4.1-all\\3221gyojl5jsh0helicew7rwx<\/code>\u76ee\u5f55\u4e0b\u3002<\/p>\n<h5><span class=\"ez-toc-section\" id=\"14android_studio_gradle_task_wrapper_not_found_in_project\"><\/span>14.android studio gradle task wrapper not found in project<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<p>\u76f4\u63a5\u6253\u5f00\u4e86module\uff0c\u800c\u6ca1\u6709\u6253\u5f00\u9879\u76ee\u3002<\/p>\n<h5><span class=\"ez-toc-section\" id=\"15\"><\/span>15.<span class=\"ez-toc-section-end\"><\/span><\/h5>\n<pre><code class=\"language-bash\">Could not install Gradle distribution from &#039;https:\/\/services.gradle.org\/distributions\/gradle-8.11.1-bin.zip&#039;.\nReason: java.net.SocketTimeoutException: Connect timed out<\/code><\/pre>\n<p>\u89e3\u6cd5\u529e\u6cd5\uff0c\u89c1https:\/\/blog.csdn.net\/weixin_46078387\/article\/details\/143787889<\/p>\n<p>\u5c06<code>android\/gradle\/gradle.wrapper.properties<\/code>\u4e0b\u9762\u7684\u6e90\u6362\u6210\u56fd\u5185\u7684\u963f\u91cc\u4e91\u6216\u662f\u817e\u8baf\u4e91<\/p>\n<p>\u817e\u8baf\u4e91<br \/>\n<a href=\"https:\/\/mirrors.cloud.tencent.com\/gradle\/\">https:\/\/mirrors.cloud.tencent.com\/gradle\/<\/a><br \/>\n\u963f\u91cc\u4e91<br \/>\n<a href=\"https:\/\/mirrors.aliyun.com\/macports\/distfiles\/gradle\/\">https:\/\/mirrors.aliyun.com\/macports\/distfiles\/gradle\/<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Kotlin%E7%9B%B8%E5%85%B3%E9%97%AE%E9%A2%98\"><\/span>Kotlin\u76f8\u5173\u95ee\u9898<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>\n<p>Could not initialize class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImp<br \/>\n<a href=\"https:\/\/blog.csdn.net\/cpcpcp123\/article\/details\/110731969\">https:\/\/blog.csdn.net\/cpcpcp123\/article\/details\/110731969<\/a><\/p>\n<\/li>\n<li>\n<p>settings.gradle.kts \u8bbe\u7f6e\u963f\u91cc\u6e90<br \/>\n\u89c1\uff1a<a href=\"https:\/\/www.jianshu.com\/p\/1469062cb697\">https:\/\/www.jianshu.com\/p\/1469062cb697<\/a><\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"language-groovy\">pluginManagement {\n    repositories {\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/public\/&quot;) }\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/spring\/&quot;)}\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/google\/&quot;)}\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/spring-plugin\/&quot;)}\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/grails-core\/&quot;)}\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/apache-snapshots\/&quot;)}\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/central&quot;) }\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/jcenter&quot;) }\n        maven { setUrl(&quot;https:\/\/maven.aliyun.com\/repository\/gradle-plugin&quot;) }\n        google {\n            content {\n                includeGroupByRegex(&quot;com\\\\.android.*&quot;)\n                includeGroupByRegex(&quot;com\\\\.google.*&quot;)\n                includeGroupByRegex(&quot;androidx.*&quot;)\n            }\n        }\n        mavenCentral()\n        gradlePluginPortal()\n    }\n}\ndependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n    }\n}\n\nrootProject.name = &quot;HappyBirthday&quot;\ninclude(&quot;:app&quot;)<\/code><\/pre>\n<ul>\n<li>Duplicate class android.support.v4.app.INotificationSideChannel found in modules<\/li>\n<\/ul>\n<p><a href=\"https:\/\/juejin.cn\/post\/7149796214874046472\">https:\/\/juejin.cn\/post\/7149796214874046472<\/a><\/p>\n<p>\u5982\u679c\u51fa\u73b0\u4e86\u8fd9\u4e2a\u9519\u8bef\uff0c\u786e\u4fdd\u4ee5\u4e0b\u4e24\u884c\u4ee3\u7801\u540c\u65f6\u51fa\u73b0\u5728gradle.properties\u6587\u4ef6\u4e2d<\/p>\n<pre><code class=\"language-groovy\">android.useAndroidX=true\nandroid.enableJetifier=true<\/code><\/pre>\n<button class=\"simplefavorite-button\" data-postid=\"4487\" data-siteid=\"1\" data-groupid=\"1\" data-favoritecount=\"0\" style=\"\">\u6536\u85cf <i class=\"sf-icon-star-empty\"><\/i><\/button>","protected":false},"excerpt":{"rendered":"<p>\u76ee\u5f55 2024.2.2\u5176\u5b83\u7248\u672c1.Android Studio\u4e2d\u7684Gradle\u9762\u677f\u6ca1\u6709Task\u4efb\u52a1\u5217 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24],"tags":[],"_links":{"self":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/4487"}],"collection":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4487"}],"version-history":[{"count":31,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/4487\/revisions"}],"predecessor-version":[{"id":16415,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=\/wp\/v2\/posts\/4487\/revisions\/16415"}],"wp:attachment":[{"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4487"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/xinyiworld.top\/wordpress_it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}