簡體   English   中英

Android支持庫V4 XML

[英]Android Support Library V4 XML

我已經導入了android支持v4庫,在Java中工作正常,但是當我嘗試在xml中使用它時,它在XML文件中給了我錯誤:中止構建。 ,所以我不能在我的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>

我嘗試添加庫來構建路徑和許多其他方法,但我仍然有問題。 你能幫幫我們嗎?

您確定將jar放在項目的libs文件夾中嗎? 請參閱此SO帖子以獲得解釋: Android:jar文件(LIB或LIBS)的文件夾名稱是什么?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM