I'm trying to build FirebaseUI for Android sample app. Using latest Android studio (2.2.3) and Gradle plugin (2.2.3).
While trying to do Gradle sync I'm receiving following error:
Error:Could not find method baseline() for arguments [/pathToMyProject/FirebaseUI-Android/library/quality/lint-baseline.xml] on object of type com.android.build.gradle.internal.dsl.LintOptions.
Tried the usual stuff (Clean, Invalidate Cashes/Restart) but no luck. Any idea what is wrong here?
Apparently sample code provided by Google doesn't work with latest stable release of Android Studio. This example compiles without problems on latest beta version of AS.
Related
I am a beginner in Android. I'm trying to learn Push notification using Google Coud Messaging
this is the print screen for this error
Gradle DSL method not found
Possible causes:The project 'Save' 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
in photo 5
can anyone help me
Update your android studio to latest version to latest version.
I have a Crashlytics-enabled app (which is now part of Twitter's Fabric) and I need to add some JNI functionality using the Android NDK.
I've switched to experimental gradle as Android Studio prompted me that way:
http://tools.android.com/tech-docs/new-build-system/gradle-experimental
When I've applied the necessary changes and tried to sync, I've got the error:
Crashlytics was applied to a project without an Android plugin. Please make sure the Crashlytics plugin is applied after the appropriate Android plugin for your project.
I've googled the error and found out that it's a problem between Fabric and experimental gradle, and Fabric team doesn't really seem to care about fixing it any time soon: https://twittercommunity.com/t/gradle-experiental-support/53441.
I've stumbled upon Issue with experimental gradle: The android plugin must be applied to the project but I have no idea what to do there, and I'm not sure if it's the right way to go?
How can I use Android NDK and Fabric in my project?
So gradle-experimental and Fabric don't mix.
Solution:
1) update to latest Android Studio 2.3.1
2) follow this tutorial to drop gradle experimental: https://developer.android.com/studio/projects/add-native-code.html
What I did was create a new temporary project with C++ support enabled and added a blank activity.
Then I opened my current project and the temporary project and copied the necessary changes into my own project.
After I was done (about 1 hour of work) I was able to build my C code into a library, load the library into my project, and make the JNI calls.
I created an Android project with the newest Android Studio version (v2 Preview 5) and converted it into a kotlin project. Now gradle is not able to sync and build the project, see the screenshot:
I didn't do anything to any build file and I also deleted my entire gradle cache as well as restarting, killing daemons etc. I used the newest kotlin version 1.0.0-beta-4584
As the error message suggest I guess the reason is the kotlin plugin, so does anyone know how to solve this problem?
The kotlin gradle plugin is not compatible with the latest alpha plugin of android (2.0.0-alpha6) or alpha5 for that matter.
Until this is the case, you can use 2.0.0-alpha3 instead.
I'm trying to learn AS, but after struggling for 3 days no progress.
Using https://www.udacity.com for learning.
Trying the hello world app from there, got this error Gradle DSL method not found: 'android()'.
I've worked in eclipse, but migrating from eclipse to AS looks very tough decision for me. I'm using cordova cli so far, now thinking to use AS.
While runing the app am not able to open RUN TOOL it show but is grey color(which is not clickable).
Downloaded new Gradle version (2.10), and set the path to that directory.But still showing Gradle version 2.2.1 in Project Structure.
Checked in stackoverflow as well, but nothing worked. Worst experieence.
Any body have idea what is going on, would be helpfull.
Android Studio 1.2.2
Make sure you have the latest Gradle and Android Studio:
https://www.gradle.org/
http://tools.android.com/tech-docs/new-build-system/version-compatibility
Go for more
Android Studio Gradle DSL method not found: 'android()' -- Error(17,0)
Udacity's Android courses are using the newest dependencies and AS version.
Please remove existing 1.2 version and upgrade it to 1.5.1 to get the fresh experience and less building problems
Be sure that you're using Oracle JDK7 not Java 8 SDK. It may cause some problems with Gradle
I recommend you also try to follow the steps in this post: I just installed Android Studio and created a new project, it always came up with Error with gradle
Have a question? Please free to ask
Whenever I try to run a gradle sync on my project i keep getting this error:
Failed to refresh Gradle project 'MeetupVersion1.0'
Unable to load class 'org.gradle.plugins.ide.internal.IdeDependenciesExtractor$IdeDependency'.
How do I fix this error? Do I have to import this class or does it have to do with my Android Studio?
This tends to happen when you're trying to use a build file that specifies a version of the Android Gradle plugin that's too new for the given version of Android Studio to handle. I'd suggest updating Android Studio.
If you continue to have problems, amend you question with the version of Android Studio you're using and the contents of your build files.
This is written up in bug https://code.google.com/p/android/issues/detail?id=66325 though the bug report doesn't really have any detail other than a couple reports that people solved it by upgrading.