Я пытаюсь установить приложение с помощью Android Studio, мне удастся установить другие приложения, кроме этого приложения, когда я пытаюсь его установить. Я получаю несколько ошибок в Logcat, следующих за INSTALL_FAILED_POLICY_REJECTED_PERMISSION
alert, я не уверен, что ошибка связана с основной проблемой (не в состоянии установить приложение), но здесь они:Android, установка apk INSTALL_FAILED_POLICY_REJECTED_PERMISSION
2 раза следующее сообщение об ошибке:
com.example.appName has no certificates at entry AndroidManifest.xml; ignoring!
после этого 2 раза:
getAuthToken called with non existant account: [email protected]
Failed to get auth token: no such account
android.accounts.AuthenticatorException: no such account
И, наконец, я получаю предупреждение с INSTALL_FAILED_POLICY_REJECTED_PERMISSION
.
быть точным (там было приложение с тем же именем давно, так что может иметь смысл, но в любом случае, нажав ОК не установить APK):
Installation failed with message INSTALL_FAILED_POLICY_REJECTED_PERMISSION.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
Edit:
I заводской сброс устройство, и btw, это 4.4.4 Примечание 4 устройство и та же ошибка, поэтому это должно быть приложение или что-то со сборкой.
Кроме того, я удалил все свои учетные записи, удалил приложение электронной почты, я сделал, наверное, все в Интернете, но все же, ту же ошибку.
Edit:
Во-первых, он работает на эмуляторах, сейчас, вот еще некоторые детали, манифест:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.appName">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<permission
android:name="com.example.appName.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="com.example.appName.permission.C2D_MESSAGE" />
<application
android:name=".AppClass"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<!-- https://github.com/ParsePlatform/Parse-SDK-Android/issues/39 -->
<meta-data
android:name="com.parse.push.gcm_sender_id"
android:value="id:1057382563338" />
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" />
<activity
android:name=".activities.MainActivity"
android:label="AppName"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.RegistrationActivity"
android:label="Registration"
android:parentActivityName=".activities.MainActivity"
android:theme="@style/AppTheme.NoActionBar">
<!-- The meta-data element is needed for versions lower than 4.1 -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.MainActivity" />
</activity>
<activity
android:name=".activities.TouActivity"
android:label="Terms of use"
android:parentActivityName=".activities.MainActivity"
android:theme="@style/AppTheme.NoActionBar">
<!-- The meta-data element is needed for versions lower than 4.1 -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.MainActivity" />
</activity>
<activity
android:name=".activities.PPActivity"
android:label="Privacy policy"
android:parentActivityName=".activities.MainActivity"
android:theme="@style/AppTheme.NoActionBar">
<!-- The meta-data element is needed for versions lower than 4.1 -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.MainActivity" />
</activity>
<activity
android:name=".activities.DashboardActivity"
android:label="Dashboard"
android:launchMode="singleTop"
android:theme="@style/AppTheme.NoActionBar" />
<activity
android:name=".activities.PassChangeActivity"
android:label="Password change"
android:parentActivityName=".activities.DashboardActivity"
android:theme="@style/AppTheme.NoActionBar">
<!-- The meta-data element is needed for versions lower than 4.1 -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activities.DashboardActivity" />
</activity>
<receiver android:name=".gps.GpsLocationReceiver">
<intent-filter>
<action android:name="android.location.PROVIDERS_CHANGED" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<receiver
android:name=".utils.CustomPushReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="com.parse.push.intent.RECEIVE" />
<action android:name="com.parse.push.intent.DELETE" />
<action android:name="com.parse.push.intent.OPEN" />
</intent-filter>
</receiver>
<service android:name="com.parse.PushService" />
<!-- This receiver calling PushService defined above -->
<receiver
android:name="com.parse.GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<!-- Receive the actual message -->
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<!-- Receive the registration id, http://stackoverflow.com/questions/22217601/is-com-google-android-c2dm-intent-registration-deprecated -->
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.example.appName" />
</intent-filter>
</receiver>
</application>
</manifest>
Что касается моих зависимостей:
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:design:24.2.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.android.support:support-v4:24.2.0'
compile 'com.facebook.android:facebook-android-sdk:4.15.0'
compile 'com.parse:parsefacebookutils-v4-android:[email protected]'
compile 'com.parse:parse-android:1.13.1'
compile 'com.parse:parsetwitterutils-android:1.10.5'
compile 'com.android.support:cardview-v7:24.2.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.jakewharton.rxbinding:rxbinding-appcompat-v7:0.4.0'
compileSdkVersion
+ targetSdkVersion
установлен на 24 и minSdkVersion
установлен на 19
Это означает, что на вашем устройстве есть политика уровня администратора, предотвращающая установку в определенных случаях. –
@GabeSechan Спасибо за комментарий, не могли бы вы объяснить больше, может быть, с ответом, я действительно не знаю, что это значит и как удалить или изменить эту политику, я смотрел онлайн и ничего не мог найти об этом, может быть, вы можете связать меня где-нибудь? –
Установили ли вы администратора устройства или владельца устройства? –