HarmonyOS鸿蒙Next中The signature does not take effect or has expired.it may be the current system time is inacc

HarmonyOS鸿蒙Next中The signature does not take effect or has expired.it may be the current system time is inacc

deveco中 signing configs 中出现"The signature does not take effect or has expired.it may be the current system time is inaccurate,please calibrate the system time and sign again.",如何解决

6 回复

自动更新一下系统时间,即使你的系统时间是准的也要更新,更新完了立刻回来自动签名

更多关于HarmonyOS鸿蒙Next中The signature does not take effect or has expired.it may be the current system time is inacc的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


签名机制要求本地系统时间与北京时间误差不超过1-2秒,否则会导致签名证书时效性校验失败。

Windows系统: 右键点击任务栏时间 → 选择’调整日期/时间’→开启‘自动设置时间’开关 → 点击‘立即同步’

macOS系统: 系统设置 → 通用 → 日期与时间 → 取消自动设置后手动输入精确时间

完成上面时时间校准 后重新进入IDE, Project Structure → Signing Configs 执行自动签名.

cke_13812.png

cke_14280.png

希望HarmonyOS能继续推出更多实用的功能,满足用户的不同需求。

如果是windows,更新一下系统的时间,任务栏 右下角 右键,选择 调整时间和日期

cke_1600.png

在HarmonyOS鸿蒙Next中出现"The signature does not take effect or has expired"提示时,主要原因是系统时间不准确导致签名验证失败。鸿蒙系统的签名验证机制会检查当前系统时间是否在签名有效期内。

解决方法:

  1. 检查设备系统时间是否正确
  2. 确保时区设置准确
  3. 同步网络时间

若时间设置正确但仍报错,可能是签名文件本身已过期,需重新生成有效签名。

这个错误提示表明签名配置失效或已过期,通常是由于系统时间不准确导致的。以下是解决方法:

  1. 首先检查并校准您的系统时间:
  • 确保设备/电脑的日期和时间设置正确
  • 建议开启自动时间同步功能
  1. 在DevEco Studio中:
  • 检查项目中的签名配置是否有效
  • 确认签名证书是否在有效期内
  1. 如果问题仍然存在:
  • 尝试重新生成签名文件
  • 清理并重建项目

时间同步后,建议重新执行签名操作。这个问题通常在校准系统时间后即可解决。

回到顶部