-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
无法兼容DJI Mobile SDK,编译报错javassist.CannotCompileException #451
Comments
希望能帮忙分析解决,谢谢 |
我把代码拉下来试了一下,没能复现一样的问题。因为我没有你设置的888f38c8版本,所以我用最新代码替换了。我是卡在
建议在source的sample上复现一下,source用的肯定是最新的代码。 这个问题只看报错信息来说,应该只是有些类找不到,但实际上报错的类就在'com.dji:dji-sdk-provided:4.13.1'中,应该是没问题的。 |
@shifujun |
我能复现,在Debug。是Bug,这个类不管是否存在,它应该被AutoMakeMissingClassPool自动创建,但它没有。 我会尽快修复这个问题。 |
之前有这样一种调用路径是没有考虑到的: ``` 0 = {StackTraceElement@21846} "com.tencent.shadow.core.transform_kit.AutoMakeMissingClassPool.get0(AutoMakeMissingClassPool.kt:9)" 1 = {StackTraceElement@21847} "javassist.ClassPool.get(ClassPool.java:442)" 2 = {StackTraceElement@21848} "javassist.CtClassType.getSuperclass(CtClassType.java:780)" 3 = {StackTraceElement@21849} "javassist.bytecode.stackmap.TypeData.commonSuperClass(TypeData.java:519)" 4 = {StackTraceElement@21850} "javassist.bytecode.stackmap.TypeData.commonSuperClassEx(TypeData.java:500)" 5 = {StackTraceElement@21851} "javassist.bytecode.stackmap.TypeData$TypeVar.fixTypes2(TypeData.java:420)" ``` fix Tencent#451
之前有这样一种调用路径是没有考虑到的: ``` 0 = {StackTraceElement@21846} "com.tencent.shadow.core.transform_kit.AutoMakeMissingClassPool.get0(AutoMakeMissingClassPool.kt:9)" 1 = {StackTraceElement@21847} "javassist.ClassPool.get(ClassPool.java:442)" 2 = {StackTraceElement@21848} "javassist.CtClassType.getSuperclass(CtClassType.java:780)" 3 = {StackTraceElement@21849} "javassist.bytecode.stackmap.TypeData.commonSuperClass(TypeData.java:519)" 4 = {StackTraceElement@21850} "javassist.bytecode.stackmap.TypeData.commonSuperClassEx(TypeData.java:500)" 5 = {StackTraceElement@21851} "javassist.bytecode.stackmap.TypeData$TypeVar.fixTypes2(TypeData.java:420)" ``` fix #451
编译应该正常了。要是功能上有问题,应该是另外的问题了,麻烦提新的issue。 |
编译报错,具体错误为
javassist.NotFoundException: dji.thirdparty.io.reactivex.Observable
,但是是有通过compileOnly引入依赖的示例代码仓库,分支为
master
,具体修改在Shadow/projects/sample/sunflower/plugin-project/app/
。报错信息如下:The text was updated successfully, but these errors were encountered: