未找到Joda Time资源错误

Bra*_*don 16 java time android jodatime

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

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"));
Run Code Online (Sandbox Code Playgroud)

08-02 14:33:19.011:D/InvitesObjectListAdapter(856):要转换的字符串是2015-08-03 10:30:00 08-02 14:33:19.041:W/System.err(856):java .io.IOException:找不到资源:"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]]]

有谁知道这个错误来自哪里?

Bra*_*don 38

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

JodaTimeAndroid.init(this);
Run Code Online (Sandbox Code Playgroud)

这是在我的代码中,但我需要重构以确保它被击中.