I’v got a same issue. but Now I’m fixed.
You should delete a line apply plugin: 'com.google.gms.google-services'
because “com.android.application” package already has same package.
More Related Contents:
- Android Studio: Add jar as library?
- Java finished with non-zero exit value 2 – Android Gradle
- How to manually include external aar package using Gradle for Android
- Can the Android layout folder contain subfolders?
- Building and running app via Gradle and Android Studio is slower than via Eclipse
- Android Studio gradle takes too long to build
- DexIndexOverflowException issue after updating to latest appcompat and support library
- Gradle: Execution failed for task ‘:processDebugManifest’
- Gradle DSL method not found: ‘runProguard’
- Autoincrement VersionCode with gradle extra properties
- Android Studio Gradle issue upgrading to version 0.5.0 – Gradle Migrating From 0.8 to 0.9 – Also Android Studio upgrade to 0.8.1
- Could not find com.android.tools.build:gradle:4.0.1 ( or any version )
- Conflict with dependency ‘com.android.support:support-annotations’. Resolved versions for app (23.1.0) and test app (23.0.1) differ
- How do I read properties defined in local.properties in build.gradle
- How to include a library module dependency in an Android Studio project?
- build.gradle and project libs
- Android Studio – Error:Program type already present
- Execute task before Android Gradle build?
- java.lang.NullPointerException (no error message)
- Signing product flavors with gradle
- Gradle warning: variant.getOutputFile() and variant.setOutputFile() are deprecated
- How to replace a string for a buildvariant with gradle in android studio?
- Gradle failed to sync with ‘unable to find optional library’
- How to exclude res folder from gradle build flavours?
- Cannot resolve symbol ‘AndroidJUnit4’
- Gradle version 1.10 is required. Current version is 2.0
- Setting up Gradle for api 26 (Android)
- Could not find property ‘outputFile’ on com.android.build.gradle.internal.api.ApplicationVariantImpl
- Build variants in Gradle for a Library Project in Android
- Android build gradle is too slow (Dependency Resolution)