{"rsdb":{"rid":"309153","subhead":"","postdate":"0","aid":"224315","fid":"120","uid":"1","topic":"1","content":"
\n \n \n
\n \n

<\/span>\u672c\u4eba\u8fd8\u662f\u4e00\u540dandroid studio\u7684\u83dc\u9e1f\uff0c\u4eca\u5929\u4f7f\u7528AS\u65f6\uff0c\u7531\u4e8e\u8bef\u64cd\u4f5c\u3002AS\u4e00\u76f4\u65e0\u6cd5\u7f16\u8bd1\u901a\u8fc7\uff0c\u5e76\u4e14\u62a5Error:Gradle DSL method not fount: 'compile()'\u3002<\/p>\n


<\/p>\n

<\/span>\"\"
<\/p>\n


<\/p>\n

<\/span>\u5728\u7f51\u4e0a\u627e\u5230\u529e\u6cd5\u4e5f\u4e00\u76f4\u6ca1\u6709\u89e3\u51b3\u3002<\/p>\n

<\/span>\u540e\u6765\u627e\u5230\u4e86\u4e00\u7247stackoverflow\u4e0a\u7684\u63d0\u95ee\uff0c\u7ec8\u4e8e\u89e3\u51b3\u4e86\u3002<\/p>\n

<\/span><\/p>\n

<\/span>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n

<\/span>1.\u627e\u5230\u81ea\u5df1\u9879\u76ee\u7684module\u4e0b\u7684build.gradle\u6587\u4ef6<\/p>\n

<\/span>\u4f8b\u5982\uff1a<\/p>\n

\"\"<\/span><\/p>\n

<\/span>2<\/span>.\u627e\u5230\u6587\u4ef6\u4e2d<\/p>\n

<\/span><\/p>\n

dependencies<\/span> {\ncompile fileTree(dir<\/span>: 'libs'<\/span>, include<\/span>: ['*.jar'<\/span>]) compile <\/span>'com.android.support:appcompat-v7:23.2.0' <\/span>compile files('libs\/xutillibrary.jar'<\/span>)}\n\n<\/pre>\n

<\/p>\n

<\/span>3.\u5c06compile\u90a3\u884c\u8fdb\u884c\u6362\u884c<\/p>\n

<\/span>\u5982\u4e0b\uff1a<\/p>\n

<\/span><\/p>\n

dependencies<\/span> {\ncompile fileTree(dir<\/span>: 'libs'<\/span>, include<\/span>: ['*.jar'<\/span>])\n    compile 'com.android.support:appcompat-v7:23.2.0'\n<\/span>    <\/span>compile files('libs\/xutillibrary.jar'<\/span>)}<\/pre>\n

<\/p>\n

<\/span>4.\u91cd\u65b0\u7f16\u8bd1\u4e0b\u5373\u53ef<\/p>\n

\"\"<\/span><\/p>\n


<\/span><\/p>\n

<\/span>\u662f\u4e0d\u662f<\/span>\u5f88\u7b80\u5355\uff1f<\/p>\n

<\/span><\/p>\n


<\/p>\n <\/div>\n <\/div>","orderid":"0","title":"\u89e3\u51b3android studio\u62a5Error:Gradle DSL method not fount: 'compile()'","smalltitle":"","mid":"0","fname":"Kafka","special_id":"0","bak_id":"0","info":"0","hits":"907","pages":"1","comments":"0","posttime":"2019-05-16 02:21:48","list":"1557944508","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"\u89e3\u51b3<\/A> android<\/A> studio<\/A> Error:Gradle<\/A> DSL<\/A> method<\/A> not<\/A> fount:<\/A> '<\/A> compile<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";s:4:\"head\";s:0:\"\";}","target":"0","ip":"47.106.78.186","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":" \u672c\u4eba\u8fd8\u662f\u4e00\u540dandroid studio\u7684\u83dc\u9e1f\uff0c\u4eca\u5929\u4f7f\u7528AS\u65f6\uff0c\u7531\u4e8e\u8bef\u64cd\u4f5c\u3002AS\u4e00\u76f4\u65e0\u6cd5\u7f16\u8bd1\u901a\u8fc7\uff0c\u5e76\u4e14\u62a5Error:Gradle DSL method not fount: 'compile()'\u3002\u5728\u7f51\u4e0a\u627e\u5230\u529e\u6cd5\u4e5f\u4e00\u76f4\u6ca1\u6709\u89e3\u51b3\u3002\u540e\u6765\u627e\u5230\u4e86\u4e00\u7247stack..","lastview":"1719015749","digg_num":"680","digg_time":"1718871968","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}