मैं एंड्रॉइड स्टूडियो का उपयोग कर एप्लिकेशन इंस्टॉल करने की कोशिश कर रहा हूं, मैं इस ऐप को छोड़कर अन्य ऐप्स इंस्टॉल करने का प्रबंधन करता हूं, जब मैं इसे इंस्टॉल करने का प्रयास करता हूं तो मुझे INSTALL_FAILED_POLICY_REJECTED_PERMISSION
अलर्ट के बाद लॉगकैट में कुछ त्रुटियां मिलती हैं, मैं हूं यकीन नहीं क्या त्रुटि मुख्य समस्या (एप्लिकेशन इंस्टॉल करने में सक्षम नहीं) से संबंधित है, लेकिन यहाँ वे हैं:एंड्रॉइड, एपीके इंस्टॉलेशन INSTALL_FAILED_POLICY_REJECTED_PERMISSION
2 बार निम्न त्रुटि:
getAuthToken called with non existant account: [email protected]
Failed to get auth token: no such account
android.accounts.AuthenticatorException: no such account
:
com.example.appName has no certificates at entry AndroidManifest.xml; ignoring!
उसके बाद
2 बार देखते हैं
और अंततः मुझे 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?
संपादित करें:
मैं फैक्टरी रीसेट डिवाइस, और बीटीडब्ल्यू, यह 4.4.4 नोट 4 डिवाइस और एक ही त्रुटि है, इसलिए यह ऐप या बिल्ड के साथ कुछ होना चाहिए।
इसके अलावा, मैंने अपने सभी खातों को हटा दिया, ईमेल ऐप हटा दिया, मैंने शायद सब कुछ ऑनलाइन किया लेकिन फिर भी, एक ही त्रुटि।
संपादित करें:
सबसे पहले, यह emulators पर काम कर रहा है, अब, यहाँ कुछ और जानकारी कर रहे हैं, प्रकट:
<?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
पर सेट है 1 9
इसका मतलब है कि आपके डिवाइस में कुछ मामलों में स्थापना को रोकने वाली व्यवस्थापक स्तर नीति है। –
@GabeSechan टिप्पणी के लिए धन्यवाद, क्या आप अधिक उत्तर दे सकते हैं, शायद एक उत्तर के साथ, मुझे वास्तव में पता नहीं है कि इसका अर्थ क्या है और इस नीति को कैसे हटाया या बदलना है, मैंने ऑनलाइन देखा है और इसके बारे में कुछ भी नहीं मिला है, शायद आप मुझे कहीं से जोड़ सकते हैं? –
क्या आपने कोई डिवाइस व्यवस्थापक या डिवाइस स्वामी सेट किया है? –