Skip to content

[Firebase Analytics] Flutter Gradle error after installing firebase_analytics: ^5.0.1 #93

@lintoncaldecott

Description

@lintoncaldecott

After installation of firebase_analytics: ^5.0.1 I get

FAILURE: Build failed with an exception.
Build file '/Users/<user>/Desktop/odbc/android/app/build.gradle' line: 54

* What went wrong:
A problem occurred evaluating project ':app'.
> path may not be null or empty string. path='null'

add to pubspec.yaml
dependencies: firebase_analytics: ^5.0.1

add to android/build.gradle
dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.google.gms:google-services:3.2.1' // Google Services plugin }
apply plugin: 'com.google.gms.google-services'

add to android/app/build.gradle
apply plugin: 'com.google.gms.google-services'

On trying to debug the application on a virtual pixel 3 I get the error listed above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    impact: customerA bug with low impact (e.g. affecting only a few customers or has a workaround). (P3)plugin: analyticstype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions