GithubHelp home page GithubHelp logo

Comments (9)

robophil avatar robophil commented on June 19, 2024 5

Where is the required location, cos am still getting the same error after adding it

from sunshine-version-2.

albaqawi avatar albaqawi commented on June 19, 2024 5

This part of the course was poorly fixed after OpenWeathermap required to get an API key for each user.

the fix is easily found here in this post http://stackoverflow.com/questions/33226978/could-not-find-property-xxxx-on-com-android-build-gradle-appextension-decorate

either: Create the file
~/.gradle/gradle.properties (Win: %USERPROFILE%.gradle\gradle.properties). If gradle.properties does not exist - just create it.
In the file add following line:

MyOpenWeatherMapApiKey="XXXXXXXXXXXYOUR API KEY AFTER YOU GET IT XXXXXXXXXXXXXXXXX"

OR

hard code the key in the line of code
it.buildConfigField 'String', 'OPEN_WEATHER_MAP_API_KEY', '"xxxxxxxxxxxxxxxxxx"'

The link I shared has more details.

I hope this helps.

from sunshine-version-2.

xuezhaojun avatar xuezhaojun commented on June 19, 2024 5

before:

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

after:

buildTypes.each {
        it.buildConfigField 'String','OPEN_WEATHER_MAP_API_KEY',"\"xx2920cbac9a6733bd9bbb8573871226\""
    }

from sunshine-version-2.

exagil avatar exagil commented on June 19, 2024 3

You need to generate an OpenWeatherMapApiKey from openweathermap.org and paste it at the required location

from sunshine-version-2.

khat33b avatar khat33b commented on June 19, 2024

That worked. Thanks!

from sunshine-version-2.

nwaokoron avatar nwaokoron commented on June 19, 2024

#69

hope this helps

from sunshine-version-2.

josegl06 avatar josegl06 commented on June 19, 2024

I have the same error, I added the key but still don't work
error

from sunshine-version-2.

Adityareddyp avatar Adityareddyp commented on June 19, 2024

Is this project by Udacity-Google?

from sunshine-version-2.

MohamedRoushdy avatar MohamedRoushdy commented on June 19, 2024

@Adityareddyp Yes it is. But it sounds they don't support it anymore.

from sunshine-version-2.

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.