当我尝试将应用程序与firebase连接时,无法在VS代码中构建应用程序。下面是我开始运行它时遇到的错误
我遵循了相应地添加依赖项的步骤。 ProcessException:进程“F:\firebase\u demo\android\gradlew.bat”异常退出:当我尝试将应用程序与firebase连接时,无法在VS代码中构建应用程序。下面是我开始运行它时遇到的错误,firebase,flutter,build,Firebase,Flutter,Build,我遵循了相应地添加依赖项的步骤。 ProcessException:进程“F:\firebase\u demo\android\gradlew.bat”异常退出: FAILURE: Build failed with an exception. * Where: Build file 'F:\firebase_demo\android\app\build.gradle' line: 24 * What went wrong: A problem occurred evaluating pro
FAILURE: Build failed with an exception.
* Where:
Build file 'F:\firebase_demo\android\app\build.gradle' line: 24
* What went wrong:
A problem occurred evaluating project ':app'.
> ASCII
* 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 2s
Command: F:\firebase_demo\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
#-------------------------Here is the change i brought to build gradle
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-analytics:17.2.0'
}
apply plugin: 'com.google.gms.google-services'
我对“ASCII”也有类似的问题。原来我把我的google firebase文件放错文件夹了。仔细检查一下位置?
在Android Studio中,它是:Android/app/google services.jsonlemme查看您的构建。升级到Postflift要求您的项目启用androidX。将您的项目迁移到androidX,它将清除您的错误