{"id":127683,"date":"2020-06-16T19:06:28","date_gmt":"2020-06-16T11:06:28","guid":{"rendered":"http:\/\/4563.org\/?p=127683"},"modified":"2020-06-16T19:06:28","modified_gmt":"2020-06-16T11:06:28","slug":"%e5%90%90%e6%a7%bd-as-gradle-%e7%9a%84%e9%97%ae%e9%a2%98-%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=127683","title":{"rendered":"\u5410\u69fd AS + Gradle \u7684\u95ee\u9898 \uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5410\u69fd AS + Gradle \u7684\u95ee\u9898 \uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : raiz <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u8ba4\u4e3a\u57fa\u4e8e idea \u7684 AS \u4f7f\u7528\u8d77\u6765\u5f88\u4e0d\u9519\uff0c\u7279\u522b\u662f\u5f53\u6211\u5c1d\u8bd5\u4f7f\u7528\u4e86\u51e0\u5929 VisualStudio \u4e4b\u540e\u3002 \u6211\u60f3\u5410\u69fd\u7684\u662f\uff1a AS \u53c8\u53cc\u53d2\u53d5 \u66f4\u65b0\u4e86\uff0cgradle \u53c8\u66f4\u65b0\u4e86\uff0c\u65b0\u7248\u672c\u7684 AS \u8981\u6c42 gradle \u6700\u4f4e\u7248\u672c\u4e00\u76f4\u98de\u5954\u3002 \u2014\u2014 \u6211\u5fcd\u4f4f\u4e0d\u5347\u7ea7\u3002 gradle \u4e0b\u8f7d\u4e0d\u6765 \u2014\u2014 \u624b\u52a8\u4e0b maven \u4ed3\u5e93\u6162 \u2014\u2014 \u6211\u4f7f\u7528 aliyun \u7684\u955c\u50cf\u3002<\/p>\n<p>\u7136\u540e\u6211\u9047\u5230\u4e00\u4e2a\u65b0\u7684\u95ee\u9898\uff0cssl \u5931\u8d25: Caused by: org.gradle.api.resources.ResourceException: Could not get resource &#8216;http:\/\/maven.aliyun.com\/nexus\/content\/groups\/public\/org\/jetbrains\/kotlin\/kotlin-compiler-embeddable\/1.3.30\/kotlin-compiler-embeddable-1.3.30.jar&#8217;. Caused by: javax.net.ssl.SSLException: SSL peer shut down incorrectly \u3002<\/p>\n<p>\u5c1d\u8bd5\u6539\u6210 http, \u4e5f\u65e0\u6d4e\u4e8e\u4e8b\uff0c\u7528\u6d4f\u89c8\u5668\u76f4\u63a5\u4e0b\u662f\u53ef\u884c\u7684\u3002 \u6709\u89e3\u4e4e<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>19<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2107926\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Vegetable <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u662f\uff0c\u8fd9 http \u5730\u5740\u62a5 ssl \u9519\u8bef\uff1f\u6211\u8bfb\u4e66\u5c11\uff0c\u4f60\u914d\u7f6e\u7684\u955c\u50cf\u4ec0\u4e48\u534f\u8bae\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107927\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gz911122 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ffb\u5899\u4e86\u5417?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107928\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u6539 http \u5f53\u7136\u6ca1\u7528\uff0chttp \u5df2\u7ecf 301 \u5230 https\uff0c\u770b\u770b\u7cfb\u7edf\u65f6\u95f4\u5bf9\u4e0d\u5bf9\uff0c\u6216\u8005\u6362\u4e2a\u6e90\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107929\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rockyou12 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u6ca1\u7ffb\u5899\uff0c\u5b89\u5353\u5f00\u53d1\u4e0d\u4f1a\u7ffb\u5899\u5c31\u522b\u641e\u4e86\uff0c\u4e0d\u8981\u8bf4\u770b\u6587\u6863\uff0c\u4e0b sdk \u4e5f\u4e0d\u8d70 maven \u7684\uff0c\u867d\u7136\u73b0\u5728\u56fd\u5185\u6709 cdn \u4f46\u5076\u5c14\u6709\u4e9b\u5305\u8fd8\u662f\u4f1a\u8981\u7ffb\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107930\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : raiz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @gz911122 \u6ca1 fq. <br \/>@youla \u91cd\u5b9a\u5411\u6709\u53ef\u80fd\uff0c\u7cfb\u7edf\u65f6\u95f4\u5bf9\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107931\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : raiz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @rockyou12 AS \u6ca1\u4ee3\u7406\uff0c\u6211\u8fd9\u4e0d\u662f\u4e0b sdk\uff0c\u662f gradle \u4e0b\u8f7d maven \u4f9d\u8d56                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107932\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : glaucus <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd8\u662f\u8981 FQ\uff0c\u4e0d\u7136 AS+Gradle \u4e0d\u53ef\u80fd\u6709\u826f\u597d\u4f53\u9a8c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107933\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gz911122 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u8bae\u7ffb\u5899,<br \/>android \u5f00\u53d1\u4ee5\u53ca\u4f7f\u7528 gradle, \u7ffb\u5899\u80fd\u907f\u514d\u5f88\u591a\u5947\u5947\u602a\u602a\u7684\u95ee\u9898.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107934\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rockyou12 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u4e2a\u597d\u50cf\u8fd8\u4e0d\u662f\u7ffb\u5899\u95ee\u9898\uff0c\u4f60 aliyun \u7684 repo \u662f\u4e0d\u662f\u914d\u9519\u4e86\uff1f\u6211\u4e0d\u6e05\u695a\u963f\u91cc\u4e91\u7684 maven \u6709 group \u529f\u80fd\u4e0d\uff0c\u5982\u679c\u6ca1\u6709\uff0c\u4f60\u60f3\u901a\u8fc7\u4ee3\u7406\u62c9\u4e2d\u592e\u5e93\uff0c\u5e94\u8be5\u5199 https:\/\/maven.aliyun.com\/repository\/central \u800c\u4e0d\u662f https:\/\/maven.aliyun.com                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107935\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shiguiyou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             as \u4ee3\u7406\u7ffb\u5899\u5427<\/p>\n<p>\u6211\u6700\u8fd1\u624d\u77e5\u9053\u7535\u8111\u5f00\u4e86 ss\uff0cas \u4e5f\u8981\u8bbe\u7f6e\u4ee3\u7406\uff0c\u4ee5\u524d\u4e00\u76f4\u50bb\u50bb\u7684 ss \u5f00\u4e86\u5168\u5c40\u4ee3\u7406\u4ee5\u4e3a as \u4e5f\u80fd\u8d70\u4ee3\u7406&#8230;                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107936\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : raiz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @rockyou12 \u5e93\u914d\u7f6e\u662f\u6ca1\u9519\uff0c\u6211\u4e4b\u524d\u8fd9\u4e2a\u9879\u76ee\u6b63\u5e38\u7684\uff0c\u5c31\u662f\u5347\u7ea7\u4e86 AS \u3002<br \/>\u6700\u540e\u53d1\u73b0\u4e00\u4e2a\u6587\u4ef6 user\/xxx\/.gradle\/gradle.properties \u91cc\u914d\u7f6e\u4e86\u4ee3\u7406\uff08\u5168\u5c40\u4ee3\u7406\uff1f\uff09\uff0c\u800c\u6211\u7684\u4ee3\u7406\u670d\u52a1\u5668\u4eca\u5929\u62bd\u98ce\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107937\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : laibin6 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @raiz \u6b7b\u6d77\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107938\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : en20 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5168\u5c40\u7ffb + git \u914d\u7f6e proxy \u80fd\u89e3\u51b3\u5927\u90e8\u5206\u73af\u5883\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107939\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : raiz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @laibin6 \u8fd9\u4e2a\u6697\u53f7\u6211\u770b\u4e0d\u61c2\u3002\u3002 \u6211\u4eca\u5929\u7f51\u7edc\u5f88\u7cdf\u7cd5\uff0c\u8fde V2EX \u90fd\u4e0d\u7a33\u5b9a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107940\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : raiz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @en20 \u597d\u7684 \u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107941\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LittleboyHarry <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/blog.csdn.net\/dbaodbseer\/article\/details\/106686297<\/p>\n<p>\u5173\u952e\u5584\u7528\u4e24\u4e2a\u5f00\u6e90\u5de5\u5177\uff1a<br \/>\u8fde\u63a5\u6d4b\u8bd5 https:\/\/github.com\/MichalHecko\/SSLPoke<br \/>\u8bc1\u4e66\u5bfc\u5165 https:\/\/github.com\/escline\/InstallCert                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107942\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gtanyin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u522b\u7528 aliyun \u8bd5\u8bd5\u5462\uff0c\u6211\u88f8\u8fde\u4e0b\u65b0\u7248\u672c gradle \u5305\u90fd\u662f\u6ee1\u901f\u4e0b\u8f7d\u5440\u3002\u3002\u6c5f\u82cf\u7535\u4fe1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107943\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xmdx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u624b\u52a8\u4e0b\u8f7d gradle \u5427\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2107944\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 751762476 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ee5\u540e springboot \u4e5f\u597d\u8f6c gradle,\u6709\u7684\u5410\u69fd\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5410\u69fd AS + Gradle \u7684\u95ee&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/127683"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127683"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/127683\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127683"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}