java - Android, apk installation INSTALL_FAILED_POLICY_REJECTED_PERMISSION -


i'm trying install application using android studio, manage install other apps except app, when try install few errors within logcat following install_failed_policy_rejected_permission alert, i'm not sure error relates main problem(not able install app) here are:

2 times following error:

com.example.appname has no certificates @ entry androidmanifest.xml; ignoring! 

after there 2 times:

getauthtoken called non existant account: myoldemail@gmail.com failed auth token: no such account android.accounts.authenticatorexception: no such account 

and alert install_failed_policy_rejected_permission.

to precise(there app same name long ago might make sense, anyway clicking ok fail install apk):

installation failed message install_failed_policy_rejected_permission. possible issue resolved uninstalling existing version of apk if present, , re-installing.  warning: uninstalling remove application data!  want uninstall existing application? 

edit:

i factory reset device, , btw, it's 4.4.4 note 4 device , same error, should app or build.

furthermore, removed accounts, removed email app, did online still, same error.

edit:

first, it's working on emulators, now, here more details, manifest:

<?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">             <!-- meta-data element needed versions lower 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">             <!-- meta-data element needed versions lower 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">             <!-- meta-data element needed versions lower 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">             <!-- meta-data element needed versions lower 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" />         <!-- receiver calling pushservice defined above -->         <receiver             android:name="com.parse.gcmbroadcastreceiver"             android:permission="com.google.android.c2dm.permission.send">             <intent-filter>                 <!-- receive actual message -->                 <action android:name="com.google.android.c2dm.intent.receive" />                 <!-- receive 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> 

as dependencies:

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:1.10.4@aar' 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 set 24 , minsdkversion set 19

first thing comes mind device admin application on phone. case phones used in enterprise setting. app forces policies phone. https://developer.android.com/reference/android/app/admin/devicepolicymanager.html

as removed (exchange) email, next guess problem within app. there few libraries/tools out there require developer phones work properly. able share manifest or/and dependencies give better picture of app?


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -