Coder Social home page Coder Social logo

Comments (3)

thatfiredev avatar thatfiredev commented on June 2, 2024

@cancan101 The default_web_client_id is automatically set by the google-services Gradle plugin when parsing the google-services.json file. It will be set at build time, so we don't need to manually add it to the strings.xml resource.

For reference, this is the line in the plugin source code where the value gets set:

https://github.com/google/play-services-plugins/blob/6cec2f5eff7b84fb4ccd45d47e8fe9ee79828a83/google-services-plugin/src/main/kotlin/com/google/gms/googleservices/GoogleServicesTask.kt#L255

from quickstart-android.

cancan101 avatar cancan101 commented on June 2, 2024

Is there a placeholder value of sort that can be put into the code to keep the IDE from flagging those lines as having errors?

from quickstart-android.

thatfiredev avatar thatfiredev commented on June 2, 2024

You can try copying the client_id from the google-services.json file to strings.xml (as described in this post). Since they're the same value, I assume there will be no problems.

I haven't tried setting a "fake" id as a placeholder so I'm not sure if that would take precedence over the one set by the google-services plugin.

from quickstart-android.

Related Issues (20)

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.