You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I cloned the repo and I checked out the branch for Part 15, and finally took the api key from newsapi.org.
Then in the gradle.properties file, I added the key:
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
news_api_access_key=def8c600000000001
Attempt to build: :app:compileDebugKotlin FAILED
e: .../codinginflow/mvvmnewsapp/api/NewsApi.kt: (12, 29): Const 'val' initializer should be a constant value
e: .../codinginflow/mvvmnewsapp/api/NewsApi.kt: (15, 14): An annotation argument must be a compile-time constant
e: .../codinginflow/mvvmnewsapp/api/NewsApi.kt: (19, 14): An annotation argument must be a compile-time constant
The text was updated successfully, but these errors were encountered:
So I cloned the repo and I checked out the branch for Part 15, and finally took the api key from newsapi.org.
Then in the
gradle.properties
file, I added the key:Attempt to build:
:app:compileDebugKotlin FAILED
The text was updated successfully, but these errors were encountered: