2016-09-07 7 views
-2

これはactivity_main_activity_Test.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> 

私は2個のエラーがあります:あなたは言葉ecodingそれの最初の行にスペルミスがあり

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 
+0

「ecoding」ではなく「encoding」を使用してみてください。 – RamenChef

+0

はい、ありがとうございます。 –

答えて

2

encoding

<?xml version="1.0" encoding="utf-8"?> 
関連する問題