使用微信支付,運行Demo,會遇到兩個問題
一、error: expected reference but got (raw string) @+android:style/Animation.Translucent.
解決:全局搜索(快捷鍵:Ctrl+Shift+F) -- “@+android:style/Animation.Translucent” -- 刪除 + 號
二、complie錯誤
解決:
1、打開Gradle
dependencies {
// implementation files('libs/libammsdk.jar')
// implementation files('libs/wechat-sdk-android-with-mta-1.0.2.jar')
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'
}
2、打開那幾個Java文件
使用 opensdk 替換 sdk
3、會遇到 有個調用函數不存在
用下面的替換