Closed sumanth-culli closed 6 years ago
Did you add the NEWS_API_KEY
in the gradle.properties
?
Yes
Created gradle.properties
file here /Users/home/Downloads/android-arch-news-sample-master/gradle.properties
Added this line NEWS_API_KEY="12345678"
(Example)
Okay. Something is weird. Is this issue happening when you clone this project or on a newer project which you made?
Also make sure there is no error shown for BuildConfig
and it's imported.
Apologies. Added NEWS_API_KEY=12345678
instead of NEWS_API_KEY="12345678"
Missed "
Nice app. Thanks.
Sure. No problem.
I'm getting the above error at
@GET("articles?source=google-news&apiKey=" + BuildConfig.NEWS_API_KEY)
inNewsSourceService.kt