gpt4 book ai didi

java - Joda Time 资源未找到错误

转载 作者:IT老高 更新时间:2023-10-28 23:39:22 27 4
gpt4 key购买 nike

我正在尝试获取一个字符串并将其转换为另一个更易读格式的字符串:

String startTime = invite.get_start_time();
Log.d(LOG_TAG, "String to be converted is " + startTime);
DateTimeFormatter fmt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss");
DateTime dt = fmt.parseDateTime(startTime);
invite.set_start_time(dt.toString("MM dd yyyy hh:mmaa"));

08-02 14:33:19.011: D/InvitesObjectListAdapter(856): String to be converted is 2015-08-03 10:30:00 08-02 14:33:19.041: W/System.err(856): java.io.IOException: Resource not found: "org/joda/time/tz/data/ZoneInfoMap" ClassLoader: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/me.lunchbunch.core-1/base.apk"],nativeLibraryDirectories=[/vendor/lib64, /system/lib64]]]

有人知道这个错误是从哪里来的吗?

最佳答案

很抱歉浪费了人们的时间,@adelphus 是正确的 - 我没有初始化:

JodaTimeAndroid.init(this);

它在我的代码中,但我需要重构以确保它被命中。

关于java - Joda Time 资源未找到错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31775276/

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