g***@163.com
g***@163.com
  • 发布:2023-12-03 20:13
  • 更新:2023-12-06 18:25
  • 阅读:291

安卓云打包错误,之前可以,突然不可以了

分类:HBuilderX

安卓自由证书云打包
Appid: UNI337978C
e: file://[PackagePath]/wgtRoot/UNI337978C/uni_modules/uni-animation-view/utssdk/app-android/src/index.kt:24:6 Class 'CustomAnimListener' is not abstract and does not implement abstract member public abstract fun onAnimationStart(p0: Animator): Unit defined in android.animation.Animator.AnimatorListener
e: file://[PackagePath]/wgtRoot/UNI337978C/uni_modules/uni-animation-view/utssdk/app-android/src/index.kt:29:5 'onAnimationStart' overrides nothing
e: file://[PackagePath]/wgtRoot/UNI337978C/uni_modules/uni-animation-view/utssdk/app-android/src/index.kt:30:5 'onAnimationEnd' overrides nothing
e: file://[PackagePath]/wgtRoot/UNI337978C/uni_modules/uni-animation-view/utssdk/app-android/src/index.kt:33:5 'onAnimationEnd' overrides nothing
e: file://[PackagePath]/wgtRoot/UNI337978C/uni_modules/uni-animation-view/utssdk/app-android/src/index.kt:34:5 'onAnimationCancel' overrides nothing
e: file://[PackagePath]/wgtRoot/UNI337978C/uni_modules/uni-animation-view/utssdk/app-android/src/index.kt:35:5 'onAnimationRepeat' overrides nothing

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':uni_modules:uni-animation-view: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 1m 16s
Error code = -5000
Error message:
UTS plugin @ utssdk uni-animation-view compile error!

2023-12-03 20:13 负责人:无 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

从打包日志看应该你修改了uts源码,将CustomAnimListener类的函数onAnimationStart、onAnimationEnd、onAnimationCancel、onAnimationRepeat参数重写为(animation: Animator|null)导致的错误。
基类Animator.AnimatorListener的这些函数参数是(animation: Animator),即animation参数不可为null,加了|null就认为参数可以为null,编译器认为不冲重写方法,使用override关键字就会报错。

  • _Nora_

    您好,看起来重写为(animation: Animator|null)不是我们开发者自行修改的,是官方提供的animation-view插件就是这么写的,可能需要官方升级插件

    2023-12-12 16:08

  • g***@163.com (作者)

    没有修改源码 删除重新安装打包还是报错

    2023-12-14 19:33

  • _Nora_

    回复 g***@163.com: 你得自己改源码,按照官方回复,将null删掉

    2023-12-20 15:17

  • 英曼畅学

    回复 _Nora_: 我这编译也报这个错,麻烦官方看下

    2024-03-14 15:24

要回复问题请先登录注册