Android &引用;未能完成会话:安装“失败”用户“受限:无效apk”;

Android &引用;未能完成会话:安装“失败”用户“受限:无效apk”;,android,android-studio,installation,Android,Android Studio,Installation,我正试图通过android studio在手机上安装我的应用程序。它以前工作得很好,但现在返回这个错误 未能完成会话:安装失败\u用户\u受限:无效apk 如何解决此错误 我发现了我的错误并解决了它! 在元数据元素内部的清单文件中,我没有提到有效值,通过添加值参数,错误得到了解决。 ` `安装时,请注意手机,它可能会要求获得安装该应用程序的权限,此时请单击“允许”。感谢@GhulamMinulquadir恢复,是的,我曾经看到权限弹出窗口,但有一次我错过了单击“允许”的机会从那以后,我看到了

我正试图通过android studio在手机上安装我的应用程序。它以前工作得很好,但现在返回这个错误

未能完成会话:安装失败\u用户\u受限:无效apk

如何解决此错误


我发现了我的错误并解决了它! 在元数据元素内部的清单文件中,我没有提到有效值,通过添加值参数,错误得到了解决。

`

`

安装时,请注意手机,它可能会要求获得安装该应用程序的权限,此时请单击“允许”。感谢@GhulamMinulquadir恢复,是的,我曾经看到权限弹出窗口,但有一次我错过了单击“允许”的机会从那以后,我看到了这个错误,可能是你安装了一个apk,它的软件包相同,但版本不同,t
`<manifest xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"package="com.example.cognoscenti.interact">

<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET" />

<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=".LoginActivity"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".RegisterActivity" />
    <activity
        android:name=".ProfileActivity"
        android:label="@string/title_activity_profile"
        android:parentActivityName=".LoginActivity"
        android:theme="@style/AppTheme.NoActionBar">
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value="com.example.cognoscenti.interact.LoginActivity" />
    </activity>

    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="Replace_Me"
        tools:replace="android:value"/>

    <provider
        android:name="com.facebook.FacebookContentProvider"
        android:authorities="com.facebook.app.FacebookContentProvider1620914054661826"
        android:exported="true" />

    <activity android:name=".AuthenticationActivity"></activity>
</application>