Gradleの同期に失敗しました:サポートされていない方法:NativeArtifact.getSourceFolders()を。

エラー次のように:

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'

 

リリース2631元の記事 ウォンの賞賛342 ビュー206万+

おすすめ

転載: blog.csdn.net/quantum7/article/details/105338119