FlutterにてAndroidで開発をしていた時に、最新のFirebase Analyticsであるfirebase_analytics 7.0.1 を利用するとなんかビルド時にこんなエラーが出る。全くよくわからない。
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
> Problems reading data from Binary store in C:\Users\user\AppData\Local\Temp\gradle1639466432759139497.bin offset 194769 exists? true
このとおりにしたら直った。
https://github.com/gradle/gradle/issues/8489#issuecomment-774436851
具体的にはbuild.gradleで指定しているパッケージのバージョンを上げる。
app配下の build.gradle
com.google.firebase:firebase-analytics:18.0.2
プロジェクト配下の build.gradle
com.google.gms:google-services:4.3.5
Crieitは誰でも投稿できるサービスです。 是非記事の投稿をお願いします。どんな軽い内容でも投稿できます。
また、「こんな記事が読みたいけど見つからない!」という方は是非記事投稿リクエストボードへ!
こじんまりと作業ログやメモ、進捗を書き残しておきたい方はボード機能をご利用ください。
ボードとは?
コメント