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

使用此插件会导致支付宝支付闪退 #124

Closed
Liberuman opened this issue Oct 19, 2018 · 17 comments
Closed

使用此插件会导致支付宝支付闪退 #124

Liberuman opened this issue Oct 19, 2018 · 17 comments

Comments

@Liberuman
Copy link

在APP build.gradle中引入该插件:
apply plugin: 'android-aspectjx'

然后在以支付宝方式支付时提示:
java.lang.NoClassDefFoundError:Failed resolution of: Lcom/alipay/sdk/app/PayTask;

@KevinWu1993
Copy link

application的gradle插入:
aspectjx { exclude 'com.alipay.sdk' }

@ColorDesert
Copy link

在APP build.gradle中引入该插件:
apply plugin: 'android-aspectjx'

然后在以支付宝方式支付时提示:
java.lang.NoClassDefFoundError:Failed resolution of: Lcom/alipay/sdk/app/PayTask;

请问你是怎么解决的: 我在APP的build里面配置aspectjx { exclude 'com.alipay.sdk' } 报错改成aspectjx { exclude 'com/alipay/sdk' } 还是不行,使用include直接编辑报错

@banshake
Copy link

同样遇到找不到支付sdk的问题,明明jar都加进来了

按照aspectjx { exclude 'com.alipay.sdk' } 的方式,编译出来的apk还是一样有问题,跪求解决方法

@Liberuman
Copy link
Author

@ColorDesert @banshake

aspectjx { exclude 'com.alipay' }

Clean&Sync后试一下。

@banshake
Copy link

@JuHonggang
发现aspjectjx导致alipay的sdk打包到apk有问题,有这方面的研究吗

@Liberuman
Copy link
Author

@banshake 这个问题之前咨询过作者,说是因为aspectj对不同版本的class处理时可能存在兼容问题,所以添加了过滤规则,具体的没有深究。

@ColorDesert
Copy link

@JuHonggang 我是Windows平台改成aspectjx { exclude 'com/alipay' }可以了,感谢!您对include有研究吗?我想把我们项目的包名之外的排除,就写的aspectjx { include 'XX/XX/XX' }('XX/XX/XX'项目的包名)一直没有触发aspectjx 的编译规则,导致所有的都失效

@barryyanggoing
Copy link

app build.gradle 的根目录加上aspectjx { exclude 'com/alipay' }

@lsqbeyond
Copy link

同样遇到了这个问题,最后暂停使用,解决了。。。

@protectedMan
Copy link

我在mac平台使用“aspectjx { exclude 'com.alipay' } ”才可以成功忽略,
aspectjx { exclude 'com/alipay' }不可以

@chris-jason1224
Copy link

windows平台包名用/分隔,mac平台包名用.分隔

@cervy
Copy link

cervy commented Mar 8, 2019

app build.gradle 的根目录加上aspectjx { exclude 'com/alipay' }

加了依旧,,

@woxingxiao
Copy link

妹想到是这个引起的,让我怀疑人参好几天。。
Window下验证了版本 classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.4'

aspectjx { exclude 'com.alipay' },有效
aspectjx { exclude 'com/alipay' },无效

@goodjok
Copy link

goodjok commented Apr 1, 2019

不使用是解决问题的终极办法

@lsqbeyond
Copy link

lsqbeyond commented Apr 1, 2019 via email

@liudaohong
Copy link

我的添加了 还是报java.lang.IllegalArgumentException: !directory.isDirectory()

@liudaohong
Copy link

在APP build.gradle中引入该插件:
apply plugin: 'android-aspectjx'
然后在以支付宝方式支付时提示:
java.lang.NoClassDefFoundError:Failed resolution of: Lcom/alipay/sdk/app/PayTask;

请问你是怎么解决的: 我在APP的build里面配置aspectjx { exclude 'com.alipay.sdk' } 报错改成aspectjx { exclude 'com/alipay/sdk' } 还是不行,使用include直接编辑报错

aspectjx { exclude 'com/alipay' }
我加入还是报错 !directory.isDirectory()

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