Skip to content Skip to sidebar Skip to footer

Cannot Compile A Simple Google Api Android App With Eclipse

I am trying to build a simple OAuth Client for Android in Eclipse. I followed the instructions from code.google.com/p/google-api-java-client/wiki/Setup Downloaded the zip file and

Solution 1:

So I finally figured it out myself.

Although eclipse shows all the dependent libs under referenced libraries they are not added to the final apk. One has to explicitly add each one of them to the build path one by one.

Also adding all the dependent libs from zips will create conflicts since some of these api's are already part of the Android framework. They don't need to be added.

Solution 2:

Instead of Directly Adding the Reference from the different folder, Please Try to Create lib folder and place that in the Application Folder of the Workspace and then try to Give Reference, it will be resolved. I got my error removed doing the same.

Post a Comment for "Cannot Compile A Simple Google Api Android App With Eclipse"