7***@qq.com
7***@qq.com
  • 发布:2020-02-24 23:13
  • 更新:2020-02-25 10:32
  • 阅读:808

【报bug】添加本地插件后,云端打包报错

分类:HBuilderX

你好,我开发了一个原生插件,在本地调试没有问题,然后打包成插件拖入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"
]
}
}
}

2020-02-24 23:13 负责人:无 分享
已邀请:
s***@qq.com
7***@qq.com

7***@qq.com (作者)

有人吗?

7***@qq.com

7***@qq.com (作者)

已解决,是引入包重复的问题,把第三方SDK删掉即可。

该问题目前已经被锁定, 无法添加新回复