2016-10-20 5 views
0

私は解決できないと思われる私のmanifest.xmlにエラーが発生しました。 エラーは次のとおりです。アンドロイドスタジオのマニフェストファイルに最終改行を追加するにはどうすればいいですか?

Manifest file doesnt end with an final newline. 

エラーが右最後</application>前occures。 (前述のエラーが発生する)赤い線を持つ単語で

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.matthias.w_seminar"> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 

     <activity android:name=".MainMenu" 
      android:theme="@android:style/Theme.Holo.NoActionBar"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
       </activity> 
      <activity android:name=".Difficulty" 
      android:theme="@android:style/Theme.Holo.NoActionBar" 
       /> 
      <activity android:name=".GameNormal" 
       android:theme="@android:style/Theme.Holo.NoActionBar" 
       /> 

     </application> 

</manifest> 
+0

なしの問題を、私は私のAndroidのスタジオで、私はFIませんmenifest –

+0

をこのコードをコピーしたときに検出されましたこれを私のアンドロイドスタジオマニフェストにコピーした後に問題があります。このリンクを試すhttp://stackoverflow.com/questions/23851090/android-manifest-error-manifest-file-doesnt-end-with-a-final-newline – Bethan

+0

このファイルを外部エディタで編集しましたか? –

答えて

0

]をクリックし、[Altキー+ Enterをクリックして選択し

Un-inject Language/Reference 

あなたはまた、元のマニフェストを削除し、マニフェストコンテンツをコピーしようとすることができますこのような新しい一つのファイルと作成:

enter image description here

+0

これは動作していないようです、Alt + Enterから取得するすべてのオプションは、コードスタイルの設定を調整し、改行を追加します。同様に動作しません。 –

関連する問題