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:
- factory reset watch: settings ... reset device
- on phone: settings ... apps ... google play services
- click on clear cache
- click on manage space
- manage wearable storage ... clear now
- under total data used google play services ... clear data
- reboot phone
- try pair phone watch again
Comments
Post a Comment