你好,我开发了一个原生插件,在本地调试没有问题,然后打包成插件拖入uniapp工程,然后制作自定义调试基座,云端打包报错,下面是错误日志:
类型: iOS 打包失败 错误日志: https://service.dcloud.net.cn/build/errorLog/881ba100-5715-11ea-b113-7f512119ba41
类型: Android 打包失败 错误日志: https://service.dcloud.net.cn/build/errorLog/882e6850-5715-11ea-a36a-11f9b6d5c7da
我的package.json文件配置如下:
{
"name": "NHPaySDK",
"id": "NHPaySDK",
"version": "1.0.0",
"description": "农行支付插件",
"_dp_type": "nativeplugin",
"_dp_nativeplugin": {
"ios": {
"plugins": [{
"type": "module",
"name": "NHPaySDK",
"class": "NHPayModule"
}],
"integrateType": "library",
"deploymentTarget": "8.0"
},
"android": {
"plugins": [{
"type": "module",
"name": "NHPaySDK",
"class": "uni.nhpay.NHPayModule"
}],
"integrateType": "aar",
"minSdkVersion": "16",
"permissions": [
"android.permission.INTERNET",
"android.permission.ACCESS_WIFI_STATE",
"android.permission.CHANGE_NETWORK_STATE",
"android.permission.READ_PHONE_STATE",
"android.permission.WRITE_EXTERNAL_STORAGE",
"android.permission.READ_EXTERNAL_STORAGE",
"android.permission.ACCESS_NETWORK_STATE",
"android.permission.WRITE_SETTINGS",
"android.permission.GET_TASKS"
]
}
}
}
3 个回复
s***@qq.com
Dddd
7***@qq.com (作者)
有人吗?
7***@qq.com (作者)
已解决,是引入包重复的问题,把第三方SDK删掉即可。
你好世界9536
怎么删除?
2020-10-20 17:50