Android xml中带的未绑定前缀
“unbound prefix I copy paste this from a web site.”我在说“unbound prefix I copy paste this from a web site.”时出错。声明的Android xml中带的未绑定前缀,android,xml,parsing,layout,Android,Xml,Parsing,Layout,“unbound prefix I copy paste this from a web site.”我在说“unbound prefix I copy paste this from a web site.”时出错。声明的应用程序没有名称空间。我希望这能回答你从未问过的问题。xmlns:komlimobile=”http://schemas.android.com/apk/res/ com.company“这不是名称空间“xmlns:android=”“”?这是用于android前缀,而不是a
应用程序没有名称空间。我希望这能回答你从未问过的问题。xmlns:komlimobile=”http://schemas.android.com/apk/res/ com.company“这不是名称空间“xmlns:android=”“”?这是用于android
前缀,而不是app
。对不起,我是一个noob,如何修复此错误?我应该更改什么?您需要添加xmlns:app=“something”
,但我不知道这个前缀应该是什么。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
<org.zestadz.ads.ZestadzAd android:id="@+id/ad"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:clickable="true"
app:backgroundColor="#000000" app:textColor="#FFFFFF" app:keywords="Android game" />
</RelativeLayout>