当我尝试将应用程序与Firebase连接时,无法使用VS代码构建应用程序。以下是我开始运行它时遇到的错误

时间:2019-11-02 10:37:46

标签: firebase flutter build

我已按照相应的步骤添加依赖项。 ProcessException:进程“ F:\ firebase_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 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'  

1 个答案:

答案 0 :(得分:0)

“ ASCII”有一个非常类似的问题。原来我把google firebase文件放在错误的文件夹中。仔细检查位置? 在Android Studio中,它是:android / app / google-services.json