9***@qq.com
9***@qq.com
  • 发布:2021-05-21 16:21
  • 更新:2023-04-20 15:18
  • 阅读:1022

自定义基座打包失败,打包引入私有的jar包,如何打包呢?

分类:uni-app

module的build.gradle:
compileOnly fileTree(dir: 'libs', include: ['*.jar'])
compileOnly fileTree(dir: '../app/libs', include: ['uniapp-v8-release.aar'])
compileOnly 'com.android.support:recyclerview-v7:28.0.0'
compileOnly 'com.android.support:support-v4:28.0.0'
compileOnly 'com.android.support:appcompat-v7:28.0.0'
compileOnly 'com.alibaba:fastjson:1.1.46.android'
compileOnly files('libs/hnttsdkbase.jar')
compileOnly files('libs/hntt03blesdk.jar')

package.json
{
"name": "BleKey",
"id": "DCloud-BleKey",
"version": "0.0.1",
"description": "ble示例插件",
"_dp_type":"nativeplugin",
"_dp_nativeplugin":{
"android": {
"permissions": ["android.permission.BLUETOOTH","android.permission.BLUETOOTH_ADMIN","android.permission.ACCESS_COARSE_LOCATION","android.permission.ACCESS_FINE_LOCATION"],
"dependencies":["libs/hntt03blesdk.jar","libs/hnttsdkbase.jar"],
"plugins": [
{
"type": "module",
"name": "DCloud-BleKey",
"class": "com.wdgk.blekeyplugin.BluKeyManager"
}
],
"compileOptions":{
"sourceCompatibility": "1.8",
"targetCompatibility": "1.8"
},
"integrateType": "aar",
"minSdkVersion" : 16
}
}
}

Supplied String module notation 'libs/hntt03blesdk.jar' is invalid. Example notations: 'org.gradle:gradle-core:2.2', 'org.mockito:mockito-core:1.9.5:javadoc'.

package.json中的dependencies要怎么写才能打包呢?

2021-05-21 16:21 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

问出来了吗

要回复问题请先登录注册