android - Wearable watchface not installed on LG G Watch -


i'm trying develop watchface app. works while install wearable module on watch directly launching wearable configuration. able installed play store need package handheld (mobile) module dependency wearable module. here build.gradle of modile module

apply plugin: 'com.android.application'  android {     compilesdkversion 20     buildtoolsversion "20.0.0"      defaultconfig {         applicationid "com.example.mvl.myapplication"         minsdkversion 18         targetsdkversion 20         versioncode 1         versionname "1.0"     }     buildtypes {         release {             runproguard false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     wearapp project(':wear')     compile 'com.google.android.gms:play-services:+' } 

wearapp project(':wear') line should include wearable apk file handheld apk (into res/raw/ directory of apk archive). , does. when install mobile apk on sony xperia z ultra (connected lg g watch) not install wearable application on watch.
i've checked adb shell pm list packages command lg g watch. application's package not in list.
here androidmanifest.xml of wear module:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="com.example.mvl.myapplication" >      <uses-feature android:name="android.hardware.type.watch" />     <uses-permission android:name="com.google.android.permission.provide_background" />     <uses-permission android:name="android.permission.wake_lock" />      <application         android:allowbackup="true"         android:icon="@drawable/ic_launcher"         android:label="@string/app_name"         android:theme="@android:style/theme.devicedefault"         android:hardwareaccelerated="true">         <activity             android:name=".myactivity"             android:label="@string/app_name"             android:enabled="true"             android:taskaffinity=""             android:allowembedded="true">             <intent-filter>                 <action android:name="android.intent.action.main" />                 <category android:name="com.google.android.clockwork.home.category.home_background" />             </intent-filter>             <intent-filter>                 <action android:name="android.intent.action.main" />                 <category android:name="android.intent.category.launcher" />             </intent-filter>             <meta-data                 android:name="com.google.android.clockwork.home.preview"                 android:resource="@drawable/chooser_bg"/>         </activity>     </application>  </manifest> 

also sign mobile (and dependancy - wearable) module release key, not debug.

ok, solved problem combination of few changes, not sure helped: declared same dependencies in handheld(mobile) manifest;

<uses-permission android:name="com.google.android.permission.provide_background" /> <uses-permission android:name="android.permission.wake_lock" /> 

cleaned project;
deleted generated .apk files.


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -