Help Center/ CodeArts Build/ FAQs/ Using Android for Build/ Could not find method google()
Updated on 2023-11-28 GMT+08:00

Could not find method google()

Symptoms

After the Gradle plug-in is upgraded to v3.0, the corresponding Gradle needs to be upgraded to v4.1. If Gradle v4.1 is not found, the following error is displayed:

Could not find method google() for arguments [] on repository container

Solution

Use Gradle v4.1 or later versions.