Including the Google gdata finance jar in my Android Project
I have included the Google gdata finance jar in my Android project (included the jar file in the build set). However still when I make any calls to functions in that jar, I still get a NoClassDeffound Exception. I believe this means that during execution the particular class is not being found by the emulator. Any ways I can fix this problem?
And I am including the com.google.gdata.client.finance.* via the import statements.
UPDATE: I solved the problem. It was more gdata specific. Th开发者_JAVA技巧e problem was that I was not including the core gdata files: gdata-client, gdata-client-meta, gdata-core, and gdata-media.
It would appear that your JAR is not being packaged with your application, for some reason. Make sure the JAR is in the libs/
directory of the project.
精彩评论