dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
apply plugin: 'com.google.gms.google-services'
I write flutter with firebase and I use Authentication and I meet this syntax error enter image description here
How to fix this somepeople can help me
CodePudding user response:
You Simply Need to Download Google-Services file App>Build.gradle
plugins {
id 'com.android.application'
// Add the Google services Gradle plugin
id 'com.google.gms.google-services'
...
}
CodePudding user response:
FAILURE: Build failed with an exception.
Where: Build file '/Users/jin/Documents/appshopping/android/app/build.gradle' line: 68
What went wrong: Could not compile build file '/Users/jin/Documents/appshopping/android/app/build.gradle'.
startup failed: build file '/Users/jin/Documents/appshopping/android/app/build.gradle': 68: Only Settings scripts can contain a pluginManagement {} block.
See https://docs.gradle.org/7.4/userguide/plugins.html#sec:plugin_management for information on the pluginManagement {} block
@ line 68, column 1. pluginManagement { ^
1 error
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 1s Exception: Gradle task assembleDebug failed with exit code 1 Exited
I got this after I put plugins { id 'com.android.application'
// Add the Google services Gradle plugin
id 'com.google.gms.google-services'
...
}