Giter Site home page Giter Site logo

Comments (4)

srzern avatar srzern commented on June 16, 2024 1

Thanks. It's worked. I add google-services.json and changed applicationId in build.gradle and now i'ts worked perfectly.

from manga_mint.

febryardiansyah avatar febryardiansyah commented on June 16, 2024

@Reresize Hi, thanks for opening issue. In that case, i've never got those errors. how about when you create new project and install some dependencies using pub get ? does this issue appears or not.
I think this issue is related to this flutter/flutter#21319
Thanks

from manga_mint.

srzern avatar srzern commented on June 16, 2024

Thanks, i tried something new. I remove old project and imorted again. Just run pub get but i get thiss error;
`Launching lib\main.dart on SM A310F in debug mode...
lib\main.dart

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugGoogleServices'.

File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
C:\Users\Mike_\Desktop\epik_api_proj\no\manga_mint\android\app\src\nullnull\google-services.json
C:\Users\Mike_\Desktop\epik_api_proj\no\manga_mint\android\app\src\debug\google-services.json
C:\Users\Mike_\Desktop\epik_api_proj\no\manga_mint\android\app\src\nullnullDebug\google-services.json
C:\Users\Mike_\Desktop\epik_api_proj\no\manga_mint\android\app\src\nullnull\debug\google-services.json
C:\Users\Mike_\Desktop\epik_api_proj\no\manga_mint\android\app\src\debug\nullnull\google-services.json
C:\Users\Mike_\Desktop\epik_api_proj\no\manga_mint\android\app\google-services.json

  • 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 1m 18s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
`

And I used 'upgrade packages' and get this error in title '
1 positional argument(s) expected, but 0 found'

from manga_mint.

febryardiansyah avatar febryardiansyah commented on June 16, 2024

Ah, i see the problem. I forgot to add firebase tutorial on readme. I'm using firebase to detect user count with analytics.
The google-services.json is missing, it because i didn't public my google-service.json. You can add your google-service.json by following this tutorial https://firebase.google.com/docs/flutter/setup.
Or If you won't to use firebase analytics, you can follow this tutorial :

  1. Go to android/build.gradle and delete classpath 'com.google.gms:google-services:4.3.3'
  2. Go to android/app/build.gradle and delete apply plugin: 'com.google.gms.google-services' and implementation 'com.google.firebase:firebase-analytics:17.2.2'

Hope this works

from manga_mint.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.