Skip to content

app/build.gradle correction required #65

Open

Description

@mnarasimhan02

in app/build.gradle file

buildTypes.each {
it.buildConfigField 'String', 'OPEN_WEATHER_MAP_API_KEY', MyOpenWeatherMapApiKey

needs to be corrected.

The MyOpenWeatherMapApiKey should be specified within '"key"' i.e, '"actual_key"'

This may not not be an issue, but needs comment or correction in the source code else the buildconfig.Java will throw an error

Activity

  1. skleeschulte commented on Feb 6, 2017

    @skleeschulte

    Alternatively it is possible to define MyOpenWeatherMapApiKey in a gradle.properties file. For details see Chapter 12. The Build Environment in the gradle documentation.

    This is how the variable is defined in the gradle.properties file:

    MyOpenWeatherMapApiKey="apikey"
    

    This can be in the gradle.properties file in the project or in the user home folder (e.g. C:\Users\Bob\.gradle\gradle.properties on Windows).

    I totally agree that there should be a comment or some info in the README file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions