-2
這是activity_main_activity_Test.xml
:錯誤解析XML:XML聲明沒有很好地形成
<?xml version="1.0" ecoding="utf-8"?>
<LinearLayout 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:orientation="horizontal"
tools:context=".MainActivityThree">
<EditText
android:id="@+id/edit_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send" />
</LinearLayout>
我有兩個錯誤:
1.Error:(1) Error parsing XML: XML declaration not well-formed
2.Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process 'command
'C:\Users\hasee\AppData\Local\Android\Sdk\build-tools\24.0.1\aapt.exe''
finished with non-zero exit value 1
嘗試使用'encoding'而不是'ecoding'。 – RamenChef
是的,謝謝你的幫助。 –