I have a problem with the Gradle in Android Studio
Error :
Error:(37, 0) Gradle DSL method not found: 'packageNameSuffix()'
Possible causes:The project 'FilHarmonie' may be using a version of Gradle that does not contain the method.
Gradle settingsThe build file may be missing a Gradle plugin.
Apply Gradle plugin
Where is the problem ?
This was changed to applicationIdSuffix several months ago, with the old name removed in November. Here is some documentation regarding the differences between packageName and applicationId.
Related
I had this error when I build and sync my old Android project on updated to the latest version of android studio.
ERROR: Gradle DSL method not found: 'freeImplementation()'
Possible causes:
The project 'Naqda_mobile' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 3.4.2 and sync project
The project 'Naqda_mobile' may be using a version of Gradle that does not contain the method.
Gradle settings
The build file may be missing a Gradle plugin.
Apply Gradle plugin
How can I resolve this problem?
At first the problem was, I would like to use ActivityCompat class for ask permission. After it shown me the AdroidStudio, the class cannot be resolved to a type but, the Support Repository already installed...
I upgraded the AndroidStudio to 2.3 from 2.2 after show me:
Error:(8, 0) Gradle DSL method not found: 'compile()'
Currently here are the possible solutions by Android Studio:
'Sensors' may be using a version of the Android Gradle plug-in that
does not contain the method (e.g. 'testCompile' was added in 1.1.0).
(Upgrade plugin to version 2.3.0 and sync project)
The project 'Sensors' may be using a version of Gradle that does not
contain the method. (Gradle settings)
The build file may be missing a Gradle plugin. (Apply Gradle plugin)
What is the right solution for this? I tried each but not resolve the problem.
Here is the dependencies of build.gradle:
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
compile "com.android.support:support-core-utils:25.2.0"
}
Move compile "com.android.support:support-core-utils:25.2.0" out of your top-level build.gradle file and into the module's build.gradle file (e.g., app/build.gradle) and its dependencies closure.
This is the exact error I'm getting while making a build in release Variant.
Error:(57, 0) Gradle DSL method not found: 'compile()'
Possible causes:The project 'spot' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Fix plugin version and sync projectThe project 'spot' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper fileThe build file may be missing a Gradle plugin.
Apply Gradle plugin
Here is the problem that I get when trying to preform a Gradle sync, I am also running the latest android studio and have included the minifyEnabled
Error:(33, 0) Gradle DSL method not found: 'runProguard()'
Possible causes:<ul><li>The project 'MLGSoundboard' may be using a version of Gradle that does not contain the method.
Gradle settings</li><li>The build file may be missing a Gradle plugin.
Apply Gradle plugin</li>
It's just an issue with the project's gradle configuration. Just make a new project, and drag over everything except for the gradle files from the old project to the new one.
Today I have updated my Android Studio and I keep getting this error no matter what I do. I imported a project from github everything was running smoothly until I updated now I keep getting this error:
Error:(31, 0) Gradle DSL method not found: 'jniDebugBuild()'
Possible causes:The project 'my_application' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper fileThe build file may be missing a Gradle plugin.
Apply Gradle plugin
Can anyone help out?
The name of this property has changed in v0.14.0 and later of the Android Gradle plugin, so build files created for earlier versions need to be updated. Look through all the build.gradle files in the project, and when you see jniDebugBuild, change it to jniDebuggable.
You may run into other things that need to be renamed; the list of remappings is in the release notes at http://tools.android.com/tech-docs/new-build-system.