material-calculator icon indicating copy to clipboard operation
material-calculator copied to clipboard

Gradle sync failed: Unsupported method: BaseConfig.getApplicationIdSuffix().

Open xiaoxiangmoe opened this issue 7 years ago • 5 comments

When I compile it in Android Studio, it throw a error:

Gradle sync failed: Unsupported method: BaseConfig.getApplicationIdSuffix().
		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.

This is my enviroment:

  • Android Studio 3.0 Canary 3
  • Build #AI-171.4056697, built on June 1, 2017
  • JRE: 1.8.0_112-release-736 amd64
  • JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
  • Windows 10 10.0

xiaoxiangmoe avatar Jun 10 '17 09:06 xiaoxiangmoe

I'm using Studio 3.0 beta 5

Helped me to resolve this issue classpath 'com.android.tools.build:gradle:3.0.0-beta5' in build.graddle.

DimensionSlider avatar Sep 10 '17 20:09 DimensionSlider

this solution https://stackoverflow.com/questions/44546849/unsupported-method-baseconfig-getapplicationidsuffix solved the issue for me

petyr47 avatar Oct 11 '17 02:10 petyr47

Error:Unsupported method: BaseConfig.getApplicationIdSuffix(). 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) .I don't know how to solve these problem.Please help me !

panhachea avatar Nov 18 '17 14:11 panhachea

Error:Unsupported method: BaseConfig.getApplicationIdSuffix(). 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.

Getting the same problem !!!! Any clues helps.

ptreves avatar Nov 20 '17 15:11 ptreves

Error:(1, 0) Unable to find method 'org.gradle.api.Project.getPluginManager()Lorg/gradle/api/plugins/PluginManager;'. Possible causes for this unexpected error include: 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.

Getting this problem.... Any solution to solve it? help me.

kikocoders avatar Nov 22 '17 08:11 kikocoders