高手帮忙!!~
正在编译 APK,请稍等...>I: Using Apktool 2.0.0-RC3-androidkiller on Project
>I: Smaling smali folder into classes.dex...
>I: Building resources...
>C:\Documents and Settings\Administrator\桌面\AndroidKillerV1.2Beta\projects\sgsmd275\Project\res\layout\warrior_info.xml:14: error: Error parsing XML: junk after document element
>Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command:
> at brut.androlib.Androlib.buildResourcesFull(Androlib.java:442)
> at brut.androlib.Androlib.buildResources(Androlib.java:379)
> at brut.androlib.Androlib.build(Androlib.java:282)
> at brut.androlib.Androlib.build(Androlib.java:255)
> at brut.apktool.Main.cmdBuild(Main.java:225)
> at brut.apktool.Main.main(Main.java:84)
>Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command:
> at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:506)
> at brut.androlib.Androlib.buildResourcesFull(Androlib.java:428)
> ... 5 more
>Caused by: brut.common.BrutException: could not exec command:
> at brut.util.OS.exec(OS.java:89)
> at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:500)
> ... 6 more
APK 编译失败,无法继续下一步签名!
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/linearlo_nick" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textColor="#ffffff00" android:layout_gravity="fill_vertical" android:id="@id/txtNick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="nickname" android:layout_weight="1.0" />
<TextView android:textColor="#ffffff00" android:id="@id/txtLv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="level:1" android:layout_weight="1.0" />
</LinearLayout>
<ImageButton android:layout_gravity="center_vertical" android:id="@id/btnFigZho" android:background="#00000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fig01" />
<ImageButton android:layout_gravity="center_vertical" android:id="@id/btnFigNei" android:background="#00000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fig02" />
<ImageButton android:layout_gravity="center_vertical" android:id="@id/btnFigFan" android:background="#00000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fig03" />
</LinearLayout>
<ImageView android:id="@id/imgSeparator" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@drawable/gradientline" />
<LinearLayout android:id="@id/linearlo_spell_weap" android:layout_width="fill_parent" android:layout_height="177.0px" android:weightSum="1.0" android:layout_weight="0.67">
<ImageView android:id="@id/imgEmpty" android:layout_width="40.0px" android:layout_height="fill_parent" android:src="#00000000" android:layout_weight="0.02" />
</LinearLayout>
</LinearLayout> \res\layout\warrior_info.xml:14: error: Error parsing XML: junk after document element
在这里错了,这个布局文件xml的第14行你改错了。多了个空格,或者少了个空格,标点符号错了都不行。你检查一下看看。 你多了一个 </LinearLayout>,应该是这样吧:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:weightSum="1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/linearlo_nick" android:layout_width="wrap_content" android:layout_height="fill_parent">
<TextView android:textColor="#ffffff00" android:layout_gravity="fill_vertical" android:id="@id/txtNick" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="nickname" android:layout_weight="1.0" />
<TextView android:textColor="#ffffff00" android:id="@id/txtLv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="level:1" android:layout_weight="1.0" />
</LinearLayout>
<ImageButton android:layout_gravity="center_vertical" android:id="@id/btnFigZho" android:background="#00000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fig01" />
<ImageButton android:layout_gravity="center_vertical" android:id="@id/btnFigNei" android:background="#00000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fig02" />
<ImageButton android:layout_gravity="center_vertical" android:id="@id/btnFigFan" android:background="#00000000" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/fig03" />
<ImageView android:id="@id/imgSeparator" android:layout_width="fill_parent" android:layout_height="1.0dip" android:src="@drawable/gradientline" />
<LinearLayout android:id="@id/linearlo_spell_weap" android:layout_width="fill_parent" android:layout_height="177.0px" android:weightSum="1.0" android:layout_weight="0.67">
<ImageView android:id="@id/imgEmpty" android:layout_width="40.0px" android:layout_height="fill_parent" android:src="#00000000" android:layout_weight="0.02" />
</LinearLayout>
</LinearLayout>
页:
[1]