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

Created on 5 Jun 2018  路  17Comments  路  Source: bumptech/glide


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
question

Most helpful comment

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

All 17 comments

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.

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

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

I have the same issue.

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.

bump

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

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

i encountered the same error today any solutions?

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.

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.

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 :)

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

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

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"

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

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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

r4m1n picture r4m1n  路  3Comments

Morteza-Rastgoo picture Morteza-Rastgoo  路  3Comments

PatrickMA picture PatrickMA  路  3Comments

Ncit picture Ncit  路  3Comments

Tryking picture Tryking  路  3Comments