Frage

Fehler im Layout:-

<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] Parser-Ausnahme für E: 1-12-13 bis 31-12-13 1-12-13 Hellobanner Androidmanifest.xml: Der Wert der Attributwert "Android: Value", die einem Elementtyp "NULL" zugeordnet sind, darf das Zeichen nicht enthalten. [2013-12-03 19:48:19-HELLOBANNER] Fehler in einer XML-Datei: Abtreiben von Build.

War es hilfreich?

Lösung 2

Es gibt ein Problem mit der Größe des Banners ... also wurde das Banner nicht im Layout auf dem Gerät gesucht ..... Ich habe Test in einem anderen Telefon -Gerätecode erfolgreich ausgeführt

Standardmäßig ist der Code des Layouts perfekt für die Werbung für 3D -Banner .....

Herr Gem_Ram war in diesem Fall falsch ........

Jetzt wird der ursprüngliche Code ordnungsgemäß ausgeführt

Andere Tipps

Bitte verwenden Sie dies, um die Fehler in Ihrer XML -Datei zu entfernen. Erstellen Sie auch eine Klasse gemäß der Nachricht. Aktualisieren Sie Ihre Manifestdateien entsprechend und teilen Sie Ihre Fehlermeldungen dann an ...

Um Ihnen weiter zu helfen, habe ich eine Klassendatei für Sie erstellt: Banner.java ===> Dies wird die Fehler beseitigt

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>

Dieses Banner kann ohne Probleme im Gerät geleitet werden:-

 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" >

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top