官方插件 uni-oauth-google 在 uni-app 云端打包报错
官方插件 uni-oauth-google 在 uni-app 云端打包报错
测试过的手机:
打包失败
操作步骤:
- 下载安装 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!
项目信息 | 详细信息 |
---|---|
产品分类 | uniapp/App |
PC开发环境操作系统 | Mac |
PC开发环境操作系统版本号 | 15.3.1 |
HBuilderX类型 | 正式 |
HBuilderX版本号 | 4.55 |
手机系统 | 全部 |
手机系统版本号 | Android 15 |
手机厂商 | 华为 |
页面类型 | vue |
vue版本 | vue3 |
打包方式 | 云端 |
项目创建方式 | HBuilderX |
更多关于官方插件 uni-oauth-google 在 uni-app 云端打包报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
我直接用官网的示例打包没有报错。 你那边是每次都报错吗? appid 提供一下
更多关于官方插件 uni-oauth-google 在 uni-app 云端打包报错的实战教程也可以访问 https://www.itying.com/category-93-b0.html
UNIFC5EDBD
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