s***@cnso360.com
s***@cnso360.com
  • 发布:2025-02-21 12:50
  • 更新:2025-02-21 14:24
  • 阅读:120

打包报错,大家帮忙看看是什么问题?Execution failed for task ':app:compileReleaseKotlin'.

分类:uni-app x

FAILURE: Build failed with an exception.

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

    A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
    Compilation error. See log for more details

  • Try:

    Run with --debug option to get more log output.
    Run with --scan to get full insights.
    Get more help at https://help.gradle.org.

错误日志:https://app.liuyingyong.cn/build/errorLog/bf75f9d0-f002-11ef-b3b6-bff135f7387e

2025-02-21 12:50 负责人:无 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

错误日志的前面已经列出了错误信息,可以尝试在本地真机运行,在IDE中查看编译错误。
关键错误信息:

复制代码e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:169:112 Unresolved reference: name  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:187:140 Unresolved reference: img  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:199:131 Unresolved reference: img  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:223:147 Unresolved reference: img  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:226:157 Unresolved reference: text  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:254:147 Unresolved reference: img  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:258:127 Unresolved reference: text  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:290:62 Unresolved reference: text  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:314:38 Not enough information to infer type variable E  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:314:68 Not enough information to infer type variable E  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:314:95 Not enough information to infer type variable E  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:314:125 Not enough information to infer type variable E  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:314:155 Not enough information to infer type variable E  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:322:25 Type mismatch: inferred type is Any but Boolean was expected  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/index/index.kt:323:50 Unresolved reference: height  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/index.kt:155:60 Unresolved reference: type  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/index.kt:157:44 Unresolved reference: isAdd  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/index.kt:163:89 Unresolved reference: point  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/index.kt:165:127 Unresolved reference: time  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/index.kt:177:40 Not enough information to infer type variable E  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/list.kt:147:52 Unresolved reference: type  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/list.kt:149:36 Unresolved reference: isAdd  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/list.kt:155:81 Unresolved reference: point  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/list.kt:157:119 Unresolved reference: time  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/member/list.kt:167:40 Not enough information to infer type variable E  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/news/list.kt:21:36 Unresolved reference: id  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/news/list.kt:146:155 Unresolved reference: img  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/news/list.kt:149:165 Unresolved reference: text  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/news/list.kt:172:155 Unresolved reference: img  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/news/list.kt:176:135 Unresolved reference: text  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/news/list.kt:203:70 Unresolved reference: text  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/news/list.kt:224:57 Not enough information to infer type variable E  
e: file://[PackagePath]/wgtRoot/__UNI__DE9951A/.uniappx/android/src/pages/news/list.kt:224:87 Not enough information to infer type variable E

要回复问题请先登录注册

  • 标题 / 粗斜体
  • 代码片段
  • 超链接 / 图片 / 视频
  • 列表 / 引用

文章内容较多时,可以用标题分段 :

## 大标题 
### 小标题

斜体 / 粗体 :

**粗体** 
*斜体*
***粗斜体***

代码片段 :

``` javascript
代码片段
```

超链接 :

[链接文字](链接地址) 例: [百度](http://www.baidu.com)

图片 :

![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)

视频 :

!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)

有序列表 :

1. 123
2. 123
3. 123

无序列表 :

- 123
- 123
- 123

引用 : ( 双回车后结束引用 )

> 引用内容
引用内容
引用内容