云淡然
云淡然
  • 发布:2025-03-11 16:45
  • 更新:2025-03-14 18:00
  • 阅读:146

【报Bug】官方插件 uni-oauth-google 云端打包报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 15.3.1

HBuilderX类型: 正式

HBuilderX版本号: 4.55

手机系统: 全部

手机系统版本号: Android 15

手机厂商: 华为

页面类型: vue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

测试过的手机:

打包失败

操作步骤:

下载安装 uni-oauth-google 插件,云端打包自定义基座

预期结果:

成功

实际结果:

报错

bug描述:

日志:

Appid: xxxx  
######错误解决方案######  
错误描述: uts插件编译失败  
解决方案: 请根据编译错误修改插件相关代码后重新提交打包。或联系插件作者解决。  
######################  

e: file://[PackagePath]/wgtRoot/xxxx/uni_modules/uni-oauth-google/utssdk/app-android/src/index.kt:101:5 Unresolved reference: NativeCode  
e: file://[PackagePath]/wgtRoot/xxxx/uni_modules/uni-oauth-google/utssdk/app-android/src/index.kt:157:5 Unresolved reference: NativeCode  

FAILURE: Build failed with an exception.  

* What went wrong:  
Execution failed for task ':uni_modules:uni-oauth-google:compileReleaseKotlin'.  
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction  
> Compilation error. See log for more details  

* Try:  
> Run with --stacktrace option to get the stack trace.  
> Run with --info or --debug option to get more log output.  
> Run with --scan to get full insights.  
> Get more help at https://help.gradle.org.  

BUILD FAILED in 12s  
Error code = -5000  
Error message:  
UTS plugin @ utssdk uni-oauth-google compile error!
2025-03-11 16:45 负责人:无 分享
已邀请:
DCloud_Android_DQQ

DCloud_Android_DQQ

我直接用官网的示例打包没有报错。 你那边是每次都报错吗? appid 提供一下

  • 云淡然 (作者)

    UNIFC5EDBD

    2025-03-12 12:00

云淡然

云淡然 (作者)

ios 端编译也报错

[HBuilder] 17:48:39.139 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:29:19: error: cannot find type 'MyApi' in scope  
[HBuilder] 17:48:39.139 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:45:23: error: cannot find type 'MyApiSync' in scope  
[HBuilder] 17:48:39.139 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:54:34: error: cannot find type 'MyApiOptions' in scope  
[HBuilder] 17:48:39.139 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:57:46: error: cannot find type 'MyApiResult' in scope  
[HBuilder] 17:48:39.140 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:63:47: error: cannot find type 'MyApiOptions' in scope  
[HBuilder] 17:48:39.140 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:66:59: error: cannot find type 'MyApiResult' in scope  
[HBuilder] 17:48:39.140 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:29:19: error: cannot find type 'MyApi' in scope  
[HBuilder] 17:48:39.140 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:45:23: error: cannot find type 'MyApiSync' in scope  
[HBuilder] 17:48:39.140 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:54:34: error: cannot find type 'MyApiOptions' in scope  
[HBuilder] 17:48:39.140 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:57:46: error: cannot find type 'MyApiResult' in scope  
[HBuilder] 17:48:39.140 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:63:47: error: cannot find type 'MyApiOptions' in scope  
[HBuilder] 17:48:39.140 uni_modules/uni-oauth-google/utssdk/app-ios/src/index.swift:66:59: error: cannot find type 'MyApiResult' in scope

要回复问题请先登录注册