目前,我正在学习如何创建Android应用程序,方法是按照Udacity的Android课程构建天气应用程序。一个要求是使用http://api.openweathermap.org/data/2.5/forecast/daily?id=7839805&mode=json&units=metric&cnt=7&appid=[my api key]调用openweathermap。
jsonDecode(data)['weather'][0]['description'];} else {}FormatException: SyntaxError: Unexpected token e in JSON at position 1
at Object.throw_ [as throw