Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Lambda; #1

Closed
skfly007 opened this issue Jan 23, 2021 · 2 comments

Comments

@skfly007
Copy link

skfly007 commented Jan 23, 2021

when i use uinspector in a android(java) project .
config the build.gradle file like this :
debugImplementation('com.huya.mobile:Uinspector:1.0.10')
it work well.

but when i copy the *.arr file into the local and config the build.gradle file like this :
image
it report an error ? Failed resolution of: Lkotlin/jvm/internal/Lambda;
i look for a long time , but can not find where is wrong ? can u help me?

@YvesCheung
Copy link
Owner

aar依赖会丢失所有间接依赖。
正确的依赖方式有三种:
1.按文档的方法添加jcenter远程依赖(最简单)
2.不要构建aar,而是publishMaven打包成一个本地maven库格式的文件夹,然后依赖这个文件夹,相当于aar+pom声明,利用maven pom.xml来下载间接依赖
3.如果一定要用aar,要把所有间接依赖补上。把我项目里dependencies的声明也搬到你的dependencies声明里

@skfly007
Copy link
Author

好的,我明白了。谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants