0

I have imported android support v4 library, in Java it works fine, but when i tried to use it in xml, it gave me Error in an XML file: aborting build., so i cant do this in my xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:orientation="vertical" >
    <android.support.v4.view.ViewPager android:id="@+id/pager"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent" >
    </android.support.v4.view.ViewPager>
</LinearLayout>

I tried adding library to build path and many others methods, but i still have problem. Can you help me guys?

Salil Pandit
  • 1,498
  • 10
  • 13
huran438
  • 86
  • 1
  • 7

1 Answers1

2

Did you make sure to put the jar in the libs folder in your project? See this SO post for an explanation: Android: What is the folder name of the jar files (LIB or LIBS)?

Community
  • 1
  • 1
Salil Pandit
  • 1,498
  • 10
  • 13