Comments (9)
Where is the required location, cos am still getting the same error after adding it
from sunshine-version-2.
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.
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.
You need to generate an OpenWeatherMapApiKey from openweathermap.org and paste it at the required location
from sunshine-version-2.
That worked. Thanks!
from sunshine-version-2.
hope this helps
from sunshine-version-2.
I have the same error, I added the key but still don't work
from sunshine-version-2.
Is this project by Udacity-Google?
from sunshine-version-2.
@Adityareddyp Yes it is. But it sounds they don't support it anymore.
from sunshine-version-2.
Related Issues (20)
- Issue in ForecastFragment FORECAST_COLUMNS and indices - Location_id column is missing HOT 1
- when i open it HOT 3
- UnsupportedMethodException
- Does not sync Automatically - works when refreshed or location change
- gradle version causes AS to fail build HOT 2
- No icon on the action bar!
- minSDK too low
- Refresh button not responding after adding code HOT 5
- addpreferencesfromresource and findPreference deprecated HOT 7
- error in mainActivity
- SettingsActivity didn't save location's value when I changed this HOT 1
- 2.01 add the Network Code HOT 1
- Adding Images to the App Resources$NotFoundException Resource ID #0xffffffff HOT 1
- request: Original SVG / Vector drawables HOT 1
- Listview only syncing when activity restarts HOT 1
- E/AbstractTracker: Can't create handler inside thread that has not called Looper.prepare()
- How to add a refresh button? HOT 1
- HOW TO CREATE FRAGMENT IN ANDROID STUDIO 3.0.1
- Installed API and updated with an error
- Could not find method implementation() for arguments [directory 'libs'] on project ':app'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sunshine-version-2.