Android studio 安装没有成功

Android studio 安装没有成功,android-studio,installation,android-manifest,Android Studio,Installation,Android Manifest,我无意中更改了清单文件中的某些内容,删除了一个包含元数据的段落,并使用了respurce。 我无法恢复,所以Android Studio无法在手机上运行该应用程序。我想这就是原因。 如果有其他原因或解决方案,我会很高兴。 多谢各位 此错误: Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION Installation fail

我无意中更改了清单文件中的某些内容,删除了一个包含元数据的段落,并使用了respurce。 我无法恢复,所以Android Studio无法在手机上运行该应用程序。我想这就是原因。 如果有其他原因或解决方案,我会很高兴。 多谢各位

此错误:

Installation did not succeed. The application could not be installed: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION Installation failed due to: 'null'

    > <?xml version="1.0" encoding="utf-8"?> <manifest
    > xmlns:android="http://schemas.android.com/apk/res/android"
    >     package="com.lee.app1_new">
    > 
    >     <uses-permission android:name="android.permission.INTERNET" />
    >     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    > 
    >     <application
    >         android:allowBackup="true"
    >         android:icon="@mipmap/ic_launcher"
    >         android:label="@string/app_name"
    >         android:roundIcon="@mipmap/ic_launcher_round"
    >         android:supportsRtl="true"
    >         android:theme="@style/AppTheme">
    > 
    > 
    >         <activity android:name=".MainActivity">
    >             <intent-filter>
    >                 <action android:name="android.intent.action.MAIN" />
    > 
    >                 <category android:name="android.intent.category.LAUNCHER" />
    >             </intent-filter>
    >         </activity>
    >         <activity android:name=".newRecipe" />
    >         <activity android:name=".category" />
    >         <activity android:name=".recipe_cake" />
    >         <activity android:name=".full_recipe_cake" />
    >         <activity android:name=".add_recipe" />
    >         <activity android:name=".my_recipes" />
    >     </ap

    plication>

    </manifest>
安装未成功。无法安装应用程序:安装\解析\失败\意外\异常安装失败,原因是:“null”
>xmlns:android=”http://schemas.android.com/apk/res/android"
>package=“com.lee.app1\u new”>
> 
>     
>     
> 
>android:allowBackup=“true”
>android:icon=“@mipmap/ic_启动器”
>android:label=“@string/app\u name”
>android:roundIcon=“@mipmap/ic_launcher_round”
>android:supportsRtl=“true”
>android:theme=“@style/AppTheme”>
> 
> 
>         
>             
>                 
> 
>                 
>             
>         
>         
>         
>         
>         
>         
>         
>     

尝试此清单文件,因为您的清单文件放错了位置

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

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

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


        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".newRecipe" />
        <activity android:name=".category" />
        <activity android:name=".recipe_cake" />
        <activity android:name=".full_recipe_cake" />
        <activity android:name=".add_recipe" />
        <activity android:name=".my_recipes" />
    </application>

</manifest>

改进的格式化