您当前的位置: 首页 >  ar

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().

柳鲲鹏 发布时间:2020-04-06 08:40:56 ,浏览量:0

错误如下:

8:33	Gradle sync failed: Unsupported method: NativeArtifact.getSourceFolders().
		The version of Gradle you connect to does not support that method.
		To resolve the problem you can change/upgrade the target version of Gradle you connect to.
		Alternatively, you can ignore this exception and read other information from the model.
		Consult IDE log for more details (Help | Show Log) (3s 37ms)

这是因为使用的gradle版本太高导致。找到以下语句修改即可: 

dependencies {
        classpath 'com.android.tools.build:gradle:3.2.1'

 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0522s