2016-07-20 10 views
1

Error:Cannot read packageName from C:\Users\G.K.ENGINEERS\AndroidStudioProjects\FARMING\app\src\main\AndroidManifest.xml Error:Element type "manifest" must be followed by either attribute specifications, ">" or "/>".アンドロイド・スタジオ・エラー・パッケージが見つかりませんか?いくつかのエラー?

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme"> 
    <activity android:name=".LOGIN_ACTIVITY"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name=".Register_Activity" /> 
    <activity android:name=".User_Area_Activity"></activity> 
</application> 

+0

完全なAndroidManifest.xmlを投稿してください。あなたは ''タグを持っていますか? – thaussma

+0

私のプログラムを参照してください私もすべてを閉じてマニフェストを閉じてくださいと私を助けてください速く助けてください – JAYTHAKER

答えて

0

Error:Element type "manifest" must be followed by either attribute specifications, ">" or "/>".

すべてのアプリケーションは、そのルートディレクトリに(正確にはその名前を持つ)AndroidManifest.xmlファイルを持っている必要があります。マニフェストファイルは、Androidシステムへのアプリに関する重要な情報、アプリのコードを実行するために必要な情報を提示します。

マニフェストタグを閉じましたか?

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


    <supports-screens android:anyDensity="true" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme"> 
     <activity android:name=".LOGIN_ACTIVITY" 
      android:screenOrientation="portrait"> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 

    </application> 

</manifest> 
+1

私は私のプログラムを見て終了します – JAYTHAKER

+0

私は何を言うのか分からない? – JAYTHAKER

+0

@JAYTHAKERこの問題はまだ解決しましたか? –

関連する問題