t***@qq.com
t***@qq.com
  • 发布:2021-11-15 10:34
  • 更新:2021-11-19 16:35
  • 阅读:777

#插件讨论# 【 2021部网络货运信息交互系统上传位置信息 - 1***@163.com 】选择定位或者地图后打自定义基座报错

分类:uni-app

请问,打包时报错如下要如何解决(插件试用,打的自定义基座):

App模块配置部分,单独选择Geolocation(定位),或者单独选择Maps(地图)都不行,都会报错。

但是如果定位和地图都不选的话,打自定义基座正常,也可以正常调用API。

[PackagePath]/app/AndroidManifest.xml:17:13-61 Error: Attribute meta-data#com.amap.api.v2.apikey@value value=(6d7f77e7741b62b61a9578c6916e65c4) from [uniplugin_module-release.aar] AndroidManifest.xml:17:13-61 is also present at [geolocation-amap-release.aar] AndroidManifest.xml:12:13-56 value=(8dc4d978cb83334f476b28ca663a3b90). Suggestion: add 'tools:replace=\"android:value\"' to element at AndroidManifest.xml:15:9-17:64 to override. FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:processReleaseMainManifest'. > Manifest merger failed with multiple errors, see logs Try: Run with --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processReleaseMainManifest'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:207) at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:205) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:186) at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114) at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46) at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62) at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57) at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56) at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)

附上manifest.json的配置:

{
"name" : "网络货运",
"appid" : "UNIEBB6052",
"description" : "网络货运-驾驶员",
"versionName" : "1.0.4",
"versionCode" : 1,
"transformPx" : false,
"networkTimeout" : {
"request" : 20000,
"uploadFile" : 20000,
"downloadFile" : 20000
},
"app-plus" : {
"softinputMode" : "adjustResize",
"safearea" : {
//安全区域配置,仅iOS平台生效
"background" : "#CCCCCC", //安全区域外的背景颜色,默认值为"#FFFFFF"
"bottom" : {
// 底部安全区域配置
"offset" : "none" // 底部安全区域偏移,"none"表示不空出安全区域,"auto"自动计算空出安全区域,默认值为"none"
},
"left" : {
//左侧安全区域配置(横屏显示时有效)
"offset" : "none"
},
"right" : {
//右侧安全区域配置(横屏显示时有效)
"offset" : "none"
}
},
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : false,
"autoclose" : true,
"delay" : 0,
// 自定义组件模式
"usingComponents" : true,
/ 5+App特有相关 /
"splashscreen" : {
"android" : {
"hdpi" : "",
"xhdpi" : "",
"xxhdpi" : ""
},
"ios" : {
"iphone" : {
"portrait-896h@3x" : "",
"retina55" : "",
"iphonex" : "",
"portrait-896h@2x" : "",
"retina47" : "",
"retina40" : "",
"retina35" : ""
},
"ipad" : {
"portrait-1366h@2x" : "",
"portrait-1194h@2" : "",
"portrait-1112h@2x" : "",
"portrait-retina7" : "",
"landscape7" : ""
}
}
},
"modules" : {},
/ 模块配置 /
"distribute" : {
/ 应用发布信息 /
"android" : {
/ android打包配置 /
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
"ios" : {},
/ ios打包配置 /
"sdkConfigs" : {
"push" : {}
}
}
},
"distribute" : {
"sdkConfigs" : {
"ad" : {},
"maps" : {
"amap" : {
"appkey_ios" : "b4a5963a000de34abf9c755b628eb3c8",
"appkey_android" : "8dc4d978cb83334f476b28ca663a3b90"
}
}
},
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>"
]
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
},
"splashscreen" : {
"android" : {
"hdpi" : "_package-resource/andriod/480×762.png",
"xhdpi" : "_package-resource/andriod/720×1242.png",
"xxhdpi" : "_package-resource/andriod/1080×1882.png"
},
"ios" : {
"iphone" : {
"portrait-896h@3x" : "_package-resource/iphone/1242×2688.png",
"landscape-896h@3x" : "_package-resource/iphone/1242×2688.png",
"portrait-896h@2x" : "_package-resource/iphone/828×1792.png",
"landscape-896h@2x" : "_package-resource/iphone/828×1792.png",
"iphonex" : "_package-resource/iphone/1125×2436.png",
"iphonexl" : "_package-resource/iphone/1125×2436.png",
"retina55" : "_package-resource/iphone/1242×2208.png",
"retina55l" : "_package-resource/iphone/1242×2208.png",
"retina47" : "_package-resource/iphone/750×1334.png",
"retina47l" : "_package-resource/iphone/750×1334.png",
"retina40" : "_package-resource/iphone/640×1136.png",
"retina40l" : "_package-resource/iphone/640×1136.png",
"retina35" : "_package-resource/iphone/640×960.png"
}
}
},
"ios" : {
"privacyDescription" : {
"NSLocationWhenInUseUsageDescription" : "我们需要获取您的实时位置以便提供更好的服务",
"NSLocationAlwaysUsageDescription" : "我们需要获取您的实时位置以便提供更好的服务",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "我们需要获取您的实时位置以便提供更好的服务",
"NSCameraUsageDescription" : "您需要允许拍照权限才可以使用附件上传功能",
"NSPhotoLibraryAddUsageDescription" : "您需要允许相册权限才可以使用附件上传功能",
"NSPhotoLibraryUsageDescription" : "您需要允许相册权限才可以使用附件上传功能"
},
"UIBackgroundModes" : ""
}
},
"compilerVersion" : 2,
"nativePlugins" : {
"location-up" : {
"__plugin_info__" : {
"name" : "2021部网络货运信息交互系统上传位置信息 - [试用版,仅用于自定义调试基座]",
"description" : "位置信息 SDK 的作用是在运单起运到收货的过程中,定期抓取驾 驶员位置信息数据,直接上传至部交互系统",
"platforms" : "Android",
"url" : "https://ext.dcloud.net.cn/plugin?id=6628",
"android_package_name" : "",
"ios_bundle_id" : "",
"isCloud" : true,
"bought" : 0,
"pid" : "6628",
"parameters" : {}
}
}
},
"modules" : {
"Maps" : {}
}
},
/ SDK配置 /
"quickapp" : {},
/ 快应用特有相关 /
"mp-weixin" : {
// 自定义组件模式
"usingComponents" : true,
/ 小程序特有相关 /
"appid" : "",
"setting" : {
"urlCheck" : true
}
},
"h5" : {
"router" : {
"mode" : "hash",
"base" : "/"
},
"devServer" : {
"https" : false
},
"domain" : "www.ynwly.cn",
"title" : ""
}
}

2021-11-15 10:34 负责人:无 分享
已邀请:
rabit咚咚

rabit咚咚

接入交通部SDK建议打离线包,我前几天刚接入了2.0

  • 1***@qq.com

    请问,具体怎么弄的。我使用SDK2.0里面的aar文件在manifest进行本地倒入,然后打一个自定义基座,使用自定义基座运行,还是会提示-当前运行的基座不包含原生插件

    2022-04-27 11:57

  • waken

    你好请问有联系方式吗,想请教你接口一个问题

    2022-11-18 16:49

  • rabit咚咚

    回复 waken: qq 136372434

    2022-12-27 16:43

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