I want to implement the effect of switching between pages. Like the Contracts in android 4.0, including AndroidBar ,Tab and ViewPager.
But when I create the android project by eclipse, it shows “your project contain errors,please fix them before running your application”.
I had imported the jar from the android SDK to the project, the path is
**\android-sdk\extras\android\support\v13\android-support-v13.jar**
The way to import the jar is this:
**project --> Properties --> Java build path -->
Libraries --> Add external JARs.. --> android-support-v13.jar --> OK**
But in the java code , the eclipse import following the code automatically
**import com.example.android.supportv13.R;
...**
Then , I delete the import sentence which contains com.example .It’s the same problem.
I had cleaned the project many times . It doesn’t work.
Is the android-support-v13.jar file out of place ?
Thanks.
The way to import the jar is this:
project –> Properties –> Java build path –>
Libraries –> Add external JARs.. –> android-support-v13.jar –> OK
Then clean the project and restart the eclipse .
It’s OK.