When I was not able to resolve some of the classes located in external dependency I debugged and found that gradle is some how not downloading jars properly. I have checked on my peer computer that this play-services-tasks-15.0.1.aar
is around 127 KB. Also there are no files in the jar downloaded by gradle other than MANIFEST.MF
in META-INF
folder.
当我无法解析位于外部依赖项中的某些类时,我调试了并发现gradle是一些如何不正确下载jar。我已经在我的同行计算机上检查过这个play-services-tasks-15.0.1.aar大约是127 KB。除了在META-INF文件夹中的MANIFEST.MF以外的gradle下载的jar中也没有文件。
NOTE: This play-services-tasks
dependency is itself coming from firebase-core
dependency
注意:此play-services-tasks依赖性本身来自firebase-core依赖
Here are some of the screenshot of what I just described:
以下是我刚才描述的一些屏幕截图:
(小于1 KB)
And (No classes in jar file)
并且(jar文件中没有类)
I have also tried to delete play-services-tasks-15.0.1.aar
file and rebuild/clean/invalidate caches, but still haven't found any luck. Please tell me how to resolve this issue?
我还试图删除play-services-tasks-15.0.1.aar文件并重建/清理/使缓存无效,但仍然没有找到任何运气。请告诉我如何解决这个问题?
Thank you for answers in advance!
提前谢谢你的答案!
1 个解决方案
#1
0
try setting transitive property for your aar like this
尝试为你的aar设置传递属性
compile('play-services-tasks-15.0.1@aar') {
transitive = true;
}
#1
0
try setting transitive property for your aar like this
尝试为你的aar设置传递属性
compile('play-services-tasks-15.0.1@aar') {
transitive = true;
}