배너 크기에 문제가 있습니다 ... 그러면 배너는 장치의 레이아웃에서 보이지 않았습니다 ..... 다른 전화 장치 코드에서 테스트가 성공적으로 실행됩니다.
기본적으로 레이아웃 코드는 3D 배너 광고에 적합합니다 .....
Mr 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 : value"요소 유형 "null"과 관련된 "< '문자를 포함해서는 안됩니다. [2013-12-03 19:48:19-Hellobanner] XML 파일의 오류 : 빌드 중단.
해결책 2
배너 크기에 문제가 있습니다 ... 그러면 배너는 장치의 레이아웃에서 보이지 않았습니다 ..... 다른 전화 장치 코드에서 테스트가 성공적으로 실행됩니다.
기본적으로 레이아웃 코드는 3D 배너 광고에 적합합니다 .....
Mr 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>
이 배너는 아무런 문제없이 장치에서 열 수 있습니다.
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" >