AkshayChordiya / News

A sample News 🗞 app built using Modern Android Development [Architecture Components, Coroutines, Retrofit, Room, Kotlin, Dagger]
MIT License
848 stars 166 forks source link

ERROR: [TAG] Failed to resolve variable '${project.version}' #17

Closed meidikawardana closed 5 years ago

meidikawardana commented 5 years ago

Just report this error when I already successfull to run this app on an android emulator. I curious, what is the cause of this error? but app can running successfully on emulator error_news_app

AkshayChordiya commented 5 years ago

Doesn't look like it's specific to this project. Did you check on StackOverFlow or tried cloning the project again?

meidikawardana commented 5 years ago

I clone the project directly from here. then I changed several things so the project can running successfully. here are the changes I applied: https://github.com/AkshayChordiya/android-arch-news-sample/issues/16#issuecomment-446056609

meidikawardana commented 5 years ago

please be noted, I am using android studio 3.2.1, @AkshayChordiya

AkshayChordiya commented 5 years ago

I think it's because in the latest commit. I migrated the dependencies to AndroidX and there are several issues on StackOverFlow like this: https://stackoverflow.com/questions/52816022/failed-to-resolve-variable-project-groupid

Try to check it and solve from your side. Meanwhile I'll update the repository soon from side which might fix it for you.

meidikawardana commented 5 years ago

thank you, @AkshayChordiya . last time I opened & ran the project, the error already gone. but this error will make any newbie confused, so I suggest you to fix it.

sundharsk commented 5 years ago

i too got the same error .. Capture3

AkshayChordiya commented 5 years ago

I have fixed these issues. I'm closing this issue and if you still face the issue then feel free to re-open the issue.

renderjaviii commented 5 years ago

Could you give me a guide on how to specifically solve this error "[TAG] Failed to resolve variable '$ {project.version}'"

jerrychong25 commented 5 years ago

Have same issue here too.

ERROR: [TAG] Failed to resolve variable '${project.version}'

How to fix this?

Thanks.

AkshayChordiya commented 4 years ago

I have tried again to fix, searching on SO gave me clue that it would be related to AndroidX and not to mention that the project needed to embrace AndroidX since a long time. Could you try and see if you still face the issue?