バナーのサイズに問題があります...そのため、バナーはデバイスのレイアウトを見ていませんでした.....別の電話デバイスコードでテストが正常に実行されます
デフォルトでは、レイアウトのコードは3Dバナーの広告に最適です.....
gem_ram氏はこの場合が間違っていました........
これで、元のコードが適切に実行されています
質問
レイアウトのエラー: -
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<com.startapp.android.publish.banner.Banner
android:id="@+id/startAppBanner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/next"
android:layout_marginBottom="14dp" >
</com.start app.android.publish.banner.Banner>
</Relative Layout>
com.android.ide.eclipse.adt.internal.project.androidmanifesthelper] e: 1-12-13から31-12-13 1-12-13 hellobanner androidmanifest.xml:属性の値のパーサー例外「Android:値」は、要素タイプ「null」に関連付けられている「 '<」文字を含めてはなりません。 [2013-12-03 19:48:19-Hellobanner] XMLファイルのエラー:ビルドを中止。
解決 2
バナーのサイズに問題があります...そのため、バナーはデバイスのレイアウトを見ていませんでした.....別の電話デバイスコードでテストが正常に実行されます
デフォルトでは、レイアウトのコードは3Dバナーの広告に最適です.....
gem_ram氏はこの場合が間違っていました........
これで、元のコードが適切に実行されています
他のヒント
これを使用して、XMLファイルのエラーを削除してください。また、メッセージに従ってクラスを作成します。それに応じてマニフェストファイルを更新し、エラーメッセージを共有してから...
さらに助けるために、私はあなたのためのクラスファイルを作成しました:banner.java ===>これによりエラーが削除されます
public class Banner extends View {
public Banner(Context context) {
super(context);
// TODO Auto-generated constructor stub
}
}
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<com.startapp.android.publish.banner.Banner
android:id="@+id/startAppBanner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/next"
android:layout_marginBottom="14dp" >
</com.startapp.android.publish.banner.Banner>
</RelativeLayout>
このバナーは、問題なくデバイスでDirectleyを開くことができます: -
android:id="@+id/startAppBanner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/next"
android:layout_marginBottom="14dp" >