请教各位大佬,Android原生插件,按格式放入 uni-app 工程的 nativeplugins/android 下。
└── thearyong-Alipay
├── android
│ ├── libs
│ │ └── alipaySdk-15.6.8-20191021122514.aar
│ └── thearyong-Alipay.aar
└── package.json
package.json 内容如下:
{
"name": "thearyong-Alipay",
"id": "thearyong-Alipay",
"version": "1.0.0",
"description": "Alipay sdk 原生插件,包含登录授权和支付接口",
"_dp_type": "nativeplugin",
"_dp_nativeplugin": {
"android": {
"plugins": [
{
"type": "module",
"name": "thearyong-Alipay",
"class": "uni.thearyong.ext.alipay.AlipayModule"
}
],
"integrateType": "aar",
"dependencies": [
"alipaySdk-15.6.8-20191021122514"
],
"compileOptions": {
"sourceCompatibility": "1.8",
"targetCompatibility": "1.8"
},
"minSdkVersion": "19"
}
}
}
然后按教程要求,使用云打包方式,提示:
详细 log:https://service.dcloud.net.cn/build/errorLog/582d73e0-1443-11ea-8163-77bdb750bca8
遇到过类似问题的大佬,麻烦指教下,万分感谢
0 个回复