2010-07-01 35 views
0

我目前正在使用gdata vesion 1.41.3和android api級別3. 我正在嘗試使用gdata的日曆功能。我的源代碼是]gdata日曆示例代碼中的SecureSAXParserFactory錯誤

try { 

    CalendarService myService = new CalendarService(
    "exampleCo-exampleApp-1"); 
    myService.setUserCredentials("[email protected]", "xxx"); 

    // Send the request and print the response 
    URL feedUrl = new URL(
    "http://www.google.com/calendar/feeds/default/allcalendars/full"); 
    CalendarFeed resultFeed = myService.getFeed(feedUrl, 
    CalendarFeed.class); 
    System.out.println("Your calendars:"); 
    System.out.println(); 
    for (int i = 0; i < resultFeed.getEntries().size(); i++) { 
    CalendarEntry entry = resultFeed.getEntries().get(i); 
    System.out.println("\t" + entry.getTitle().getPlainText()); 
    } 
    } catch (Exception e) { 
    Log.e("", e.toString()); 
    } 

代碼投擲以下異常:

com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory$SecureSAXParserFactory 

需要幫助???

+0

這是一類。這不是一個例外。什麼是異常和堆棧跟蹤? – CommonsWare 2010-07-01 11:29:34

+0

對不起,以下是例外情況: java.lang.VerifyError:com.google.gdata.util.common.xml.parsing.SecureGenericXMLFactory $ SecureSAXParserFactory – 2010-07-01 11:46:18

回答