迁移到AndroidX时解析变量失败
我尝试迁移到迁移到AndroidX时解析变量失败,android,android-support-library,androidx,Android,Android Support Library,Androidx,我尝试迁移到AndroidX,但在构建Gradle时出现了这些错误。这很奇怪,因为我并不总是得到错误,我也不知道错误是从哪里来的,所以我真的不知道从哪个解决方案来解决这个问题。我发现很多人都经历过这种情况,但大多数答案都建议清理、重建、使缓存无效/重新启动或更新其他依赖项。清除、重建、使缓存无效/重新启动是一个临时解决方案,但如果更新其他依赖项可以解决此问题,如何找到需要更新的依赖项 错误: [TAG] Failed to resolve variable '${junit.version}'
AndroidX
,但在构建Gradle时出现了这些错误。这很奇怪,因为我并不总是得到错误,我也不知道错误是从哪里来的,所以我真的不知道从哪个解决方案来解决这个问题。我发现很多人都经历过这种情况,但大多数答案都建议清理、重建、使缓存无效/重新启动或更新其他依赖项。清除、重建、使缓存无效/重新启动
是一个临时解决方案,但如果更新其他依赖项可以解决此问题,如何找到需要更新的依赖项
错误:
[TAG] Failed to resolve variable '${junit.version}'
[TAG] Failed to resolve variable '${project.version}'
[TAG] Failed to resolve variable '${animal.sniffer.version}'
[TAG] Failed to resolve variable '${project.groupId}'
[TAG] Failed to resolve variable '${project.version}'
[TAG] Failed to resolve variable '${junit.version}'
[TAG] Failed to resolve variable '${project.version}'
[TAG] Failed to resolve variable '${animal.sniffer.version}'
[TAG] Failed to resolve variable '${project.groupId}'
[TAG] Failed to resolve variable '${project.version}'
[TAG] Failed to resolve variable '${junit.version}'
[TAG] Failed to resolve variable '${project.version}'
[TAG] Failed to resolve variable '${animal.sniffer.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 '${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}'
[TAG] Failed to resolve variable '${junit.version}'
[TAG] Failed to resolve variable '${project.version}'
[TAG] Failed to resolve variable '${animal.sniffer.version}'
[TAG] Failed to resolve variable '${project.groupId}'
[TAG] Failed to resolve variable '${project.version}'
您有哪些依赖项?你能在这里显示吗?传递build.graddle模块应用程序上的依赖项。看起来您缺少所有这些变量。请在项目升级后尝试使缓存无效,然后重新启动项目文件-->使缓存无效/restart@StavroXhardha你是什么意思?我使用的依赖项都在模块gradle中。您有哪些依赖项?你能在这里显示吗?传递build.graddle模块应用程序上的依赖项。看起来您缺少所有这些变量。请在项目升级后尝试使缓存无效,然后重新启动项目文件-->使缓存无效/restart@StavroXhardha你是什么意思?我使用的依赖项都在模块gradle中。