android-wear embedding old (cached) wear apk in the mobile-release apk -


i generating signed apk using option build -> generate signed apk

problem mobile-release.apk doesn't embed updated wear apk. have tried changing text / logic, display old thing.

i have tried of following, ideas why keep embedding old wear apk instead of creating new one.

  • file -> invalidate cache / restart.
  • build -> clean + rebuild project
  • clear cache of wear app on phone
  • settings -> resync apps (option on handheld wear app)
  • manually delete apks in build folder of both mobile , wear mobile.

any hints, or facing similar issue, please reply.

update 1:

i tested generated wear-release.apk separately, latest, still somehow embedded apk old.

i changed gradle config manually include newly generated apk,

compile filetree(dir: 'libs', include: ['*.jar']) // wearapp project(':wear') wearapp files('wear-release11.apk') // renamed purposefully make sure picking right file. 

it indeed give error if wear-release11.apk missing.. when wear-release11.apk available, it still embed old cached apk.

update 2: extracted , inspected contents of generated apk, indeed has latest generated apk inside it. somehow, phone push cached version. not sure if 'android-wear' companion app or play store app causing bug. me uninstalling android-wear companion app (surprisingly, not clearing data) solve issue. cache apk again after time.

i have seen situation while ago wearable app stuck , not update. think bug has been resolved, wanted put answer down record in case still happening.

if 100% sure apk versioned properly, can try procedure should fix up. if not fix it, there problem apk build process:

  1. factory reset watch: settings ... reset device
  2. on phone: settings ... apps ... google play services
  3. click on clear cache
  4. click on manage space
  5. manage wearable storage ... clear now
  6. under total data used google play services ... clear data
  7. reboot phone
  8. try pair phone watch again

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -