Just noticed today that Arctic Fox has an update to Beta 4. Having no issue before with betas, I decided to upgrade my Beta 3. As always, AGP needed to be upgraded as well. The new Beta seems to be working alright until I tried to build my project with the new Gradle n AGP. Got this error every time and nothing I tried (including the suggested steps in the message) works except reverting to Arctic Fox beta 3 or its normal release version. Wonder if anyone here has a clue why and have a solution for this
Unable to find method com.android.build.api.extension.VariantSelector com.android.build.api.extension.AndroidComponentsExtension.selector()
com.android.build.api.extension.VariantSelector com.android.build.api.extension.AndroidComponentsExtension.selector()
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.