【问题标题】:Weatherlib library not working on android appWeatherlib 库不适用于 Android 应用程序
【发布时间】:2015-01-24 20:42:57
【问题描述】:

我正在尝试使用 https://github.com/survivingwithandroid/WeatherLib/

我收到以下错误

E/AndroidRuntime(20029): java.lang.NoClassDefFoundError: com.survivingwithandroid.weather.lib.R$string
E/AndroidRuntime(20029):        at com.survivingwithandroid.weather.lib.WeatherCode.<clinit>(WeatherCode.java:36)
E/AndroidRuntime(20029):        at com.survivingwithandroid.weather.lib.provider.openweathermap.OpenweathermapCodeProvider.getWeatherCode(Openwea
apCodeProvider.java:98)
E/AndroidRuntime(20029):        at com.survivingwithandroid.weather.lib.provider.openweathermap.OpenweathermapProvider.getCurrentCondition(OpenwemapProvider.java:111)
E/AndroidRuntime(20029):        at com.tet.ledeliziedellabrenta.weather.WeatherClientDefault$7.onResponse(WeatherClientDefault.java:411)
E/AndroidRuntime(20029):        at com.tet.ledeliziedellabrenta.weather.WeatherClientDefault$7.onResponse(WeatherClientDefault.java:1)
E/AndroidRuntime(20029):        at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:60)
E/AndroidRuntime(20029):        at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:1)

我还尝试在我的字符串文件中添加字符串代码(适用于每种语言),从 lib 源处理它们,没有任何改变!请帮忙 :) 谢谢

【问题讨论】:

  • 你能把你正在使用的源代码贴出来让我检查一下吗?!

标签: android noclassdeffounderror weather weather-api


【解决方案1】:

您提到的问题已经解决。源代码在github上。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-15
    • 1970-01-01
    相关资源
    最近更新 更多