eclipse android can not import google play services library

前端 未结 5 835
攒了一身酷
攒了一身酷 2021-01-29 07:07

hello i am quite new to Android development and i want to learn how to use the google Maps API v2. After trying numerous tutorials, i always seem to have a problem with the goog

5条回答
  •  野性不改
    2021-01-29 07:26

    I see a red "X" and a question mark under "project" instead of the green tick.

    The problem is -

    The path to your google play services library is not same as the path to your project. It is outside of your project. And so is not recognized by simple import.

    Solution - Put the library in the project's libs folder.

    NOTE: Just putting the library to the libs folder is not enough.

    After you added your library follow these steps -

    1) Go to Project -> Properties -> Java Build Path -> Libraries -> Add JARs..

    2) Now add your recently added jar to the build path from JAR selection process.

    3) Go to Project -> Properties -> Java Build Path -> Order and Export.

    4) Put a tick mark in the check box against this library name and press OK.

    5) Do Project -> Clean.

提交回复
热议问题