gpt4 book ai didi

react-native - 无法运行 adb shell "date ` 日期 +%m%d%H%M%Y.%S`"

转载 作者:行者123 更新时间:2023-12-01 19:22:02 25 4
gpt4 key购买 nike

我在 Android 设备上运行 React Native 时收到警告:

Debugger and device times had drifted by more than 60s. Please correct this by running adb shell "date `date +%m%d%H%M%Y.%S`" on your debugger machine

但是当我按照上面的建议运行命令时,出现操作不允许错误:

date: cannot set date: Operation not permitted

我已经尝试过 sudo,仍然得到相同的结果:

sudo adb shell "date `date +%m%d%H%M%Y.%S`"

最佳答案

在模拟器内转到设置> 日期和时间

  1. 取消选择自动时区。
  2. 手动调整您的时区。
  3. 取消选择自动日期和时间并设置正确时间

关于react-native - 无法运行 adb shell "date ` 日期 +%m%d%H%M%Y.%S`",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38938791/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com