installation - Android Wear app not installing from the mobile package -
yes, have followed other instructions , links. wearable app being packaged mobile one, not installing.
the debug version of mobile.apk 4.9mb , of wear.apk 1.9mb. when build signed release versions, mobile.apk 5.8mb believe packaging happening.
when adb install
of mobile.apk on handheld, following errors in logcat of handheld (the app package com.pipperpublishing.refwatch note strange refwatch-1
reference in second error):
01-27 07:49:59.129 8729-8729/? w/system.err: android.content.pm.packagemanager$namenotfoundexception: com.pipperpublishing.refwatch 01-27 07:49:59.129 8729-8729/? w/system.err: @ android.app.applicationpackagemanager.getapplicationinfo(applicationpackagemanager.java:303) 01-27 07:49:59.129 8729-8729/? w/system.err: @ com.samsung.aasaservice.aasaupdatereceiver.onreceive(aasaupdatereceiver.java:33) 01-27 07:49:59.129 8729-8729/? w/system.err: @ android.app.activitythread.handlereceiver(activitythread.java:2948) 01-27 07:49:59.129 8729-8729/? w/system.err: @ android.app.activitythread.access$1800(activitythread.java:172) 01-27 07:49:59.129 8729-8729/? w/system.err: @ android.app.activitythread$h.handlemessage(activitythread.java:1498) 01-27 07:49:59.129 8729-8729/? w/system.err: @ android.os.handler.dispatchmessage(handler.java:102) 01-27 07:49:59.129 8729-8729/? w/system.err: @ android.os.looper.loop(looper.java:145) 01-27 07:49:59.129 8729-8729/? w/system.err: @ android.app.activitythread.main(activitythread.java:5835) 01-27 07:49:59.129 8729-8729/? w/system.err: @ java.lang.reflect.method.invoke(native method) 01-27 07:49:59.129 8729-8729/? w/system.err: @ java.lang.reflect.method.invoke(method.java:372) 01-27 07:49:59.129 8729-8729/? w/system.err: @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1399) 01-27 07:49:59.129 8729-8729/? w/system.err: @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1194) 01-27 07:50:54.219 771-11243/? w/system.err: java.io.filenotfoundexception: /data/app/com.pipperpublishing.refwatch-1: open failed: eisdir (is directory) 01-27 07:50:54.239 771-11243/? w/system.err: @ libcore.io.iobridge.open(iobridge.java:456) 01-27 07:50:54.239 771-11243/? w/system.err: @ java.io.fileinputstream.<init>(fileinputstream.java:76) 01-27 07:50:54.239 771-11243/? w/system.err: @ android.content.pm.packageparser.gethashvalueofpackage(packageparser.java:5141) 01-27 07:50:54.239 771-11243/? w/system.err: @ com.android.server.pm.packagemanagerservice.savehash(packagemanagerservice.java:18383) 01-27 07:50:54.239 771-11243/? w/system.err: @ com.android.server.pm.packagemanagerservice.access$5200(packagemanagerservice.java:329) 01-27 07:50:54.239 771-11243/? w/system.err: @ com.android.server.pm.packagemanagerservice$20.run(packagemanagerservice.java:18368) 01-27 07:50:54.239 771-11243/? w/system.err: caused by: android.system.errnoexception: open failed: eisdir (is directory) 01-27 07:50:54.239 771-11243/? w/system.err: @ libcore.io.iobridge.open(iobridge.java:446) 01-27 07:50:54.239 771-11243/? w/system.err: ... 5 more
i have tried factory reset of watch, resyncing, etc etc. ideas?
here's mobile build.gradle
:
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion "23.0.2" defaultconfig { applicationid "com.pipperpublishing.refwatch" minsdkversion 14 targetsdkversion 23 versioncode 203 versionname "0.2.03" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) wearapp project(':wear') testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.google.android.gms:play-services:8.4.0' compile 'com.android.support:design:23.1.1' compile 'com.google.android.gms:play-services-ads:8.4.0' compile 'com.google.android.gms:play-services-identity:8.4.0' compile 'com.google.android.gms:play-services-gcm:8.4.0' compile 'com.google.android.gms:play-services-auth:8.4.0' } apply plugin: 'com.google.gms.google-services'
and "wear" build.gradle
:
apply plugin: 'com.android.application' android { compilesdkversion 23 buildtoolsversion '23.0.2' defaultconfig { applicationid "com.pipperpublishing.refwatch" minsdkversion 21 targetsdkversion 23 versioncode 203 versionname "0.2.03" } buildtypes { release { minifyenabled false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } debug { debuggable true } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.google.android.support:wearable:1.3.0' compile 'com.android.support:recyclerview-v7:23.1.1' compile 'com.android.support:support-v13:23.1.1' compile 'com.google.android.gms:play-services-wearable:8.4.0' compile 'com.google.android.gms:play-services-auth:8.4.0' } apply plugin: 'com.google.gms.google-services'
only using release .apk file wear application automatically installed. wont work using debug key.
in case application signed release key, check whether application exists in android wear device.
Comments
Post a Comment