Android Install error with release unsigned apk -


i try install application on release build type , generic error: "parse error. there problem while parsing package"

installing debug apk works successfully.

installing release apk adb shows information:

c:\android-sdk-windows\platform-tools>adb install app-release-unsigned.apk

2577 kb/s (1606360 bytes in 0.608s) pkg: /data/local/tmp/app-release-unsigned.apk

failure [install_parse_failed_no_certificates]

this logcat

v/applicationpolicy: isapplicationstateblocked userid 0 pkgname com.android.packageinstaller i/activitymanager: start u0 {act=android.intent.action.view dat=file:///storage/emulated/0/download/app-> > release-unsigned.apk typ=application/vnd.android.package-archive cmp=com.android.packageinstaller/.packageinstalleractivity (has extras)} uid 10019 on display 0

d/customfrequencymanagerservice: acquiredvfslocklocked : type : dvfs_min_limit frequency : 1190400 uid : 1000 pid : 961 pkgname : activity_resume_booster@4

w/activitymanager: mdvfshelper.acquire() d/inputdispatcher: focused application set to: xxxx d/inputdispatcher: focus left window: 22409 /? d/myfiles: fileutils::update file open count d/displaymanager: addalldisplayslocked() d/activitymanager: launching com.android.packageinstaller, updated priority d/ssrm:a: deviceinfo:: 000000000000 d/ssrm:a: settingsairviewinfo:: 000000000 /?

w/packageinstaller: parse error when parsing manifest. discontinuing installation

the module build.gradle:

apply plugin: 'com.android.application'  android {     compilesdkversion 21     buildtoolsversion "21.1.2"      defaultconfig {         applicationid "xxxxxx.yyyy.zzzzz"         minsdkversion 21         targetsdkversion 21         versioncode 1         versionname "1.0"     }     buildtypes {         release {             minifyenabled false             debuggable true             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(include: ['*.jar'], dir: 'libs')             compile project(':sape.lib')     compile 'com.jakewharton:butterknife:7.0.1'     compile 'com.android.support:appcompat-v7:21.0.3' } 

you installing unsigned apk using command

adb install app-release-unsigned.apk 

when generating signed apk remember path saving signed apk , install apk location. should install fine.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -