Setting up Google-api-java-client developing environment

后端 未结 1 1277
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-18 15:31

I am trying the official example calendar-v2-atom-android. I have already import all dependency by using maven and it compile successfully. However, in run

相关标签:
1条回答
  • 2020-12-18 16:13

    Download the Google Api Java Client

    Create a libs folder in your eclipse project.

    Drag and drop all client files that do not end in -source into the libs folder you just made. Do not add the dependencies folder, instead drag the dependencies from inside the folder to the libs folder.

    Go to Project -> Properties -> Java Build Path -> Libraries Tab

    Click Add JARS, navigate to your libs folder and add all of the client files.

    Click the Order and Export tab and check off all the client files you added.

    Clean the project. You should be good to go.

    Update

    As of ADT Rev. 21, the setup works as follows:

    1. Create a libs folder in your eclipse project
    2. Drag and drop all client files that do not end in -source into the libs folder you just made. Do not add the dependencies folder, instead drag the dependencies from inside the folder to the libs folder.
    3. Go to Project -> Properties -> Java Build Path -> Order and Export Tab
    4. Check off the box for "Android Private Libraries" and you're good to go.
    0 讨论(0)
提交回复
热议问题