FE_liyangyang
FE_liyangyang
  • 发布:2022-12-23 20:13
  • 更新:2022-12-23 21:32
  • 阅读:278

Aliyun-Push、Aliyun-ThirdPush插件与支付宝支付功能冲突

分类:uni-app

打包ios提示:

Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild archive -sdk iphoneos15.2 -project [PackagePath]/HBuilder.xcodeproj -archivePath [PackagePath]/XArchive/HBuilder.xcarchive -scheme HBuilder CONFIGURATION=Release

打包Android提示:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkReleaseDuplicateClasses'.

    A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
    Duplicate class com.google.gson.ExclusionStrategy found in modules jetified-gson-2.8.9 (com.google.code.gson:gson:2.8.9) and jetified-gson-2.8.9 (gson-2.8.9.jar)

2022-12-23 20:13 负责人:无 分享
已邀请:
FE_liyangyang

FE_liyangyang (作者)

解决办法:
nativeplugins/Aliyun-Push/ios-exclude.txt
nativeplugins/Aliyun-ThirdPush/android-exclude.txt

ios-exclude.txt内容是:UTDID.framework
android-exclude.txt内容是:gson-2.8.9.jar

参考:
https://ask.dcloud.net.cn/article/39280

https://nativesupport.dcloud.net.cn/NativePlugin/use/faq.html#q%EF%BC%9Aios%E5%B9%B3%E5%8F%B0%E4%BE%9D%E8%B5%96%E5%BA%93%E5%86%B2%E7%AA%81%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%EF%BC%9F

要回复问题请先登录注册