Reputation: 21
DocsService client= new DocsService ("idea");
client.useSsl ();
client.setOAuthCredentials (oauthParameters, new OAuthHmacSha1Signer ());
DocumentListEntry newEntry= new com.google.gdata.data.docs.SpreadsheetEntry ();
newEntry.setTitle (new PlainTextConstruct ("GIdeaDB"));
DocumentListEntry insertedEntry= client.insert (new URL (
"https://docs.google.com/feeds/default/private/full/?xoauth_requestor_id="+ userEmail), newEntry);
but i got NoSuchMethodException in client.insert (new URL ( "https://docs.google.com/feeds/default/private/full/?xoauth_requestor_id="+ userEmail), newEntry);
what i do please help me....
Upvotes: 0
Views: 122
Reputation: 15552
One of the insert methods take three parameters and one takes two. Neither of these methods match what you ate passing in. Which version of the library are you compiling with and which version are you running with? As I said in my comment it is likely to be a version mismatch if it compiles but does not run.
See https://developers.google.com/gdata/javadoc/com/google/gdata/client/docs/DocsService
Upvotes: 0
Reputation: 43738
A NoSuchMethodError
usually means that you used a different version of the library to compile the code than you use to run it.
Upvotes: 2