修改app目录下build.gradle文件
dependencies {
compile files('libs/wechat-sdk-android-with-mta-5.1.6.jar')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
compile fileTree('libs/wechat-sdk-android-with-mta-5.1.6.jar')