在 build.gradle 文件中,添加如下依赖即可:
- dependencies {
- api 'com.tencent.mm.opensdk:wechat-sdk-android:+'
- }
报错了,报名冲突(错误信息,引用支援冲突)
(libammsdk.jar) and jetified-wechat-sdk-android-with-mta-5.3.1.jar (com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.3.1)
解决:
- dependencies {
- api 'com.tencent.mm.opensdk:wechat-sdk-android:6.8.0'
- }