0

最新の Android ビルド ツール (0.4.2) に更新し、アセンブルしようとすると次の問題が発生しました。

/AndroidApp/App/build/res/all/flavor/debug/layout/fragment.xml:84: エラー: パッケージ 'com.viewpagerindicator' の属性 'gapWidth' のリソース識別子が見つかりません

RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/build/res/com.viewpagerindicator" android:layout_width="match_parent" android:layout_height="match_parent" >

4

2 に答える 2

2

フレーバーは異なるパッケージ名を使用する場合があるため、カスタム名前空間でパッケージ名を指定する代わりに、' http://schemas.android.com/apk/res-auto ' を使用します。

于 2013-06-02T13:00:18.533 に答える
1

buildの代わりに使用するカスタム XML リンク パスを更新しますapk

以前は、fragment.xml ファイルで xmlns:app="http://schemas.android.com/apk/res/com.viewpagerindicator"

さて、これに: xmlns:app="http://schemas.android.com/build/res/com.viewpagerindicator"

于 2013-05-31T19:24:13.137 に答える