导入Module的时候会报错,这应该怎么改呢

导入Module的时候会报错,这应该怎么改呢

Error:(23, 0) Gradle DSL method not found: 'implementation()'

Possible causes:<ul><li>The project 'MyApplication2' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).

<a href="fixGradleElements">Upgrade plugin to version 2.3.3 and sync project</a></li><li>The project 'MyApplication2' may be using a version of Gradle that does not contain the method.

<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.

<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>


正在回答

登陆购买课程后可参与讨论,去登陆

1回答

你导入最方便的方式是:先新建一个module,然后在你要导入的代码中找到对应模块下\src\main 下的3块内容,复制,粘贴到你自己module的main下面,然后,如果R报错有红叉,build->clean project后,运行就可以了。祝:学习愉快

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师