Android Studio Not Connecting To Firebase - android-studio

I need Some Help. I want To Connect Firebase To My Android Studio, But Some Error Appears. Like: Could Not Parse The Nsdroid Application Module's Gradle Config. Resolve Gradle Build Issue and/or resync. Error Pictures: https://i.stack.imgur.com/OvjWQ.png

apply plugin: 'com.google.gms.google-services' Remove This one and try to sync.

Related

Is it possible to run a gradle plugin without android studio?

To use firebase I need to use the The Google Services Gradle Plugin however I m not under android studio. I already downloaded from maven the google-services-3.0.0.jar but what to do with it? is their any way to make it running outside android studio ? else what exactly this plugin do ? is it possible to do it manually ?
It is possible.
Gradle is just a build tool. Android studio uses Gradle to describe, build and run your project. Gradle plugin is something you add to your build.gradle script. While it's theoretically possible to use it outside Gradle, it's not meant to be used that way.
You can still use the Gradle script in any IDE that supports Gradle, or simply run it from the command line.
The only thing you need in your Gradle project is the following line:
apply plugin: 'com.google.gms.google-services'

Error on android studio 2.3.1

Gradle project sync failed when I'm running my project.
Close your recommended gradle than go use define path from setting of projects. ](https://i.stack.imgur.com/JqXt2.png)

Kotlin app build failed due to "Could not initialize class com.intellij.ide.highlighter.JavaFileType"

I've just updated Android Studio to 2.2 and now my Kotlin project won't build. The gradle synch works fine, but when attempting to build I'm immediately presented with an error that reads:
Error:Execution failed for task ':app:compileDebugKotlin'.
> Could not initialize class com.intellij.ide.highlighter.JavaFileType
I've checked that my Kotlin plugin is up to date. This error sounds like something to do with the IDE and highlighting Java code? Any help would be appreciated.
Open Tools | Kotlin | Configure Kotlin Plugin Updates in the main menu,
then choose Check for Updates. Be sure that yo're using Stable channel.
Close Android Studio, go to your project's directory, and delete build and app/build folders. Run Android Studio. Deleted folders would be recreated.
Hope it will help
In my case the kotlin plugin was not updated as #piotrek1543 said in other answer.
In addition to that the build.gradle had an old Kotlin version number 1.0.1-2 and the IntelliJ said in a warning on top of to switch to the current bundled version 1.0.4.
Now with the kotlin version like this the error is gone:
ext.kotlin_version = '1.0.4'

Warnings with Gradle about artifacts after update to Android Studio 2.2

a few days ago I've updated to Android Studio 2.2. After this, I've had a couple of warnings in my project:
Warning:Ignoring Android API artifact com.google.android:android:1.6_r2 for debug
Warning:Ignoring Android API artifact com.google.android:android:1.6_r2 for release
Anyone knows the reason about it?
At last, I find out the problem. It was caused by AndroidVideoCache library. To solve it, simply replace this (in my specific case):
compile 'com.danikula:videocache:2.6.3'
by
compile('com.danikula:videocache:2.6.3') {
exclude group: 'com.google.android', module: 'android'
}

ARToolKit ARSimpleProj Error

When I open the ARSimpleProj in Android Studio and try to update the gradle version I get this message:
Failed to update the version of the Android Gradle plugin.
Please click 'OK' to perform a textual search and then update the build files manually.
After this, I'm getting this error:
Error:(58, 0) Gradle DSL method not found: 'android()'
Possible causes:
* The project 'ARSimpleProj' 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 project
* The project 'ARSimpleProj' may be using a version of Gradle that does not contain the method. Open Gradle wrapper file
* The build file may be missing a Gradle plugin. Apply Gradle plugin.
I tried removing the android->buildToolsVersion and dependencies tag from the top-level, build.gradle file (as indicated in the AS_Migration document) but still it doesn't work.
I finally make it work. When opening the project on the Android Studio, I select "Remind me later" to the Android Gradle Plugin Update recommendation. After this, I could execute and install the application on my cell phone.
Make sure you are using JDK 1.7 in Project Structure. I had problems when using the JDK 1.8 with ARToolkit for Android.

Resources