【发布时间】:2020-05-16 22:15:20
【问题描述】:
在添加 implementation 'com.google.firebase:firebase-analytics:17.2.2' 和 apply plugin: 'com.google.gms.google-services' 时出现错误 进入 app>build.gradle,连同 classpath 'com.google.gms:google-services:4.3.3' 进入 android>build.gradle。 如果我不使用这三样东西,应用程序就可以正常工作。我错过了什么?
这是我遇到的错误
Launching lib\main.dart on Android SDK built for x86 in debug mode...
[!] Your app isn't using AndroidX.
To avoid potential build failures, you can quickly migrate your app by following the steps on.
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\HASAN\Mobile_App_Projects\bangla_jokes\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.
BUILD FAILED in 1s
Finished with error: Gradle task assembleDebug failed with exit code 1
【问题讨论】:
标签: firebase gradle flutter build admob