Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresolved reference: last_fm_api_key #40

Open
deephole opened this issue Mar 9, 2018 · 1 comment
Open

Unresolved reference: last_fm_api_key #40

deephole opened this issue Mar 9, 2018 · 1 comment

Comments

@deephole
Copy link

deephole commented Mar 9, 2018

I'm trying to build this via ./gradlew clean build and I'm getting following error :
`Download https://dl.google.com/dl/android/maven2/com/android/support/support-annotations/27.0.2/support-annotations-27.0.2.jar
Download https://jcenter.bintray.com/com/google/code/gson/gson/2.7/gson-2.7.jar
Download https://jcenter.bintray.com/org/jetbrains/anko/anko-sdk15/0.10.4/anko-sdk15-0.10.4.jar
Download https://jcenter.bintray.com/org/jetbrains/anko/anko-design/0.10.4/anko-design-0.10.4.jar
Download https://dl.google.com/dl/android/maven2/android/arch/lifecycle/common/1.0.3/common-1.0.3.jar
e: /Users/plasta/Desktop/Bandhook-Kotlin-master/app/src/main/java/com/antonioleiva/bandhookkotlin/di/DataModule.kt: (28, 100): Unresolved reference: last_fm_api_key

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugKotlin'.

Compilation error. See log for more details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
See https://docs.gradle.org/4.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 27s
`

@LluisFelip
Copy link

As @antoniolg specifies in the readme.MD, you need to add your own key:

https://github.com/antoniolg/Bandhook-Kotlin/#how-to-use-this-project

You should go to http://www.lastfm.es/api and create this file with this content:
<string name="last_fm_api_key">YOUR_KEY</string>
in this route
app/src/main/res/values/api_key.xml.

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants