glide icon indicating copy to clipboard operation
glide copied to clipboard

Failed to resolve variable '${project.groupId}' after refactoring to androidX

Open prashsb opened this issue 8 years ago • 17 comments

Glide Version: 4.7.1

Integration libraries: no

Device/Android Version: Galaxy s7

Issue details / Repro steps / Use case background: getting this error while compiling the project. after refactored to androidX this issued is occured

[TAG] Failed to resolve variable '${project.version}'  
[TAG] Failed to resolve variable '${project.groupId}'  
[TAG] Failed to resolve variable '${project.version}'  
[TAG] Failed to resolve variable '${project.groupId}'  
[TAG] Failed to resolve variable '${project.version}'  
[TAG] Failed to resolve variable '${project.groupId}'  
[TAG] Failed to resolve variable '${project.version}'  
[TAG] Failed to resolve variable '${animal.sniffer.version}'  

Glide load line / GlideModule (if any) / list Adapter code (if any):

Glide.with...

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

paste stack trace and/or log here

prashsb avatar Jun 05 '18 19:06 prashsb

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

stale[bot] avatar Jun 12 '18 20:06 stale[bot]

I get this error when I try to use the OkHttp integration:

Failed to resolve: com.github.bumptech.glide:okhttp3-integration4.7.1

joshfriend avatar Jun 12 '18 20:06 joshfriend

I have the same issue.

qbait avatar Jun 17 '18 13:06 qbait

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

stale[bot] avatar Jun 24 '18 13:06 stale[bot]

bump

joshfriend avatar Jun 25 '18 01:06 joshfriend

In retrospect, my error was pretty obvious. I was missing a : between the artifact ID and version

joshfriend avatar Jun 29 '18 02:06 joshfriend

Maybe #3080, I'm not sure what to do with the original report here, it looks like some kind of a build error...

sjudd avatar Jul 03 '18 22:07 sjudd

i encountered the same error today any solutions?

DilbagSandhu avatar Jul 04 '18 09:07 DilbagSandhu

I don't think this is a Glide issue. I don't have any dependency on Glide and I got the exact same error messages when I cleaned my Gradle cache today and rebuilt.

MonteCreasor avatar Jul 13 '18 21:07 MonteCreasor

Any updates on this? I am using Glide in my project, updated to latest Android Studio 3.3 and still run into this issue.

Edit: Not sure what is going on. I invalidated cache, restarted and rebuild and it works, but comes back every so often.

johnnyPescarul avatar Aug 25 '18 23:08 johnnyPescarul

I could be able to fix it, though not straight forward. First I have to rename all those dependency manually in xml and in runtime classes (Auto import did not much worked much with some wrong import). And then update glide version file from 4.7.1 to 4.8.0; and that's fixed it issue for me. It was around 2 hours and 90+ files work for me, so #KeepCalm and continue with changes, don't undo changes :)

imspatni avatar Sep 26 '18 01:09 imspatni

Same issue here... This shouldn't be closed

SourabhSNath avatar Oct 12 '18 02:10 SourabhSNath

I get this error when migrating to androidx. I do not use glide. Adding implementation 'com.google.android.material:material:1.0.0' solved it for me

behelit avatar Oct 18 '18 02:10 behelit

If you define variables in gradle to use for version numbers like:

def paging_version = "2.1.0-beta01"
implementation "androidx.paging:paging-runtime:$paging_version"

you may get this error. Removing variable solves it:

implementation "androidx.paging:paging-runtime:2.1.0-beta01"

akndmr avatar Nov 07 '18 18:11 akndmr

For me, renaming from lifecycle_version = '2.0.0' to lifecycle_version = "2.0.0" fixes the issue

mkovalyk avatar Jan 30 '19 13:01 mkovalyk

For me, renaming from lifecycle_version = '2.0.0' to lifecycle_version = "2.0.0" fixes the issue

Into my case was the opposite...i've changed lifecycle_version = "2.0.0" to lifecycle_version = '2.0.0' and it works.

AndersonLeonyDeveloper avatar Mar 27 '19 17:03 AndersonLeonyDeveloper

I was facing the same error but when i increased my minsdkversion to 20 fix the error

markrizkalla avatar Mar 24 '20 14:03 markrizkalla