Android wear packaging 1 compatible device - android

I had an app uploaded in google play, but now I have done a update with Android Wear. I have my project in Android Studio with the mobile and the wear APK in the same project and with the same package. It runs perfectly in debug mode. I can export the new update of my app with the Android Wear app embebed, but when I upload it with the Google developer console shows that there are only one compatible device.
Attached Images:
How can i make my wear app to be compatible with more than 1 device? :-)

You shouldn't have the permission android.hardware.type.WATCH in the Play Store permissions.
This is only required for the wear application.
Remove it from your AndroidManifest.xml mobile application, it looks like:
<uses-feature android:name="android.hardware.type.watch" />

Related

Amazon-appstore rejected Flutter app due to not installing on android virtual device 4.0

Amazon app store app rejected my app publishing because it is not installing on android virtual device 4.0
I need some help I am new on amazon app store, same app is running on play store and ios app store.
What should I do and how should I test, any help will be appreciated.
issue screenshot -
below is my APK file screenshot -
I have got the issue, we need to add min and max supported sdk versions in the main/AndroidManifest.xml file.
because amazon app store does not get it from build.gradle file.
<uses-sdk android:minSdkVersion="21"
android:targetSdkVersion="29"
android:maxSdkVersion="29" />

You can't rollout this release because it doesn't allow any existing users to upgrade to the newly added APKs

I am new to android development. recently i have uploaded my app to playstore and couldnt download it from there because i faced this issue "your device isnt compatible with this version". on further analysis I could found out that I have used feature "android.hardware.type.watch" along with android.hardware.faketouch, android.hardware.telephony. which is why i could see only watch devices in supported devices list on console (this was mistakenly ignored during rollout).
now to correct this mistake, I have removed watch feature, built apk with incremented version code. I need to replace live app on playstore with newly built apk. I have used 2 methods ( creating release in production and creating beta release )but everytime I am facing below issue "You can't rollout this release because it doesn't allow any existing users to upgrade to the newly added APKs.
i tried many time by increasing version code from 3 to 40 but same error is occur please help me
In my case, it happened because I accidently added android wear support.
Removing the following line in the manifest solved my problem
<uses-feature android:name="android.hardware.type.watch" />
Lets go in detail, Firstly as new developer i confused between Empty
Activity and Blank Activity in android while creating Activity.
Well
in my case i choose blank activity instead empty activity, then in
blank activity i get some watch and wear dependency in gradle file as
implementation 'androidx.wear:wear:1.0.0' and in manifest file
<meta-dataandroid:name="com.google.android.wearable.standalon android:value="true"/>
<uses-feature android:name="android.hardware.type.watch" />
If you publish this apk file or app bundle then you will get error as
Your device is not compatible with this version
Then i read it some where..
Your android project you have 2 apps:
1.Mobile 2.Wearable
Mobile app should be installed on mobile device (phone/tablet) and Wearable app should be installed on Android Wear device.
This message No, missing feature: WATCH means that you're trying to install Wearable app on mobile phone - you shouldn't do that, your mobile device is not a WATCH. So once again: just launch Mobile app on mobile and Wearable app on Android Wear.
After this i remove the line from manifest
<uses-feature android:name="android.hardware.type.watch" />
And upload again to the google play console then i got new error as
You can't rollout this release because it doesn't allow any existing users to upgrade to the newly added APKs
if i add this line again in manifest file then this error is gone and old error is come
Your device is not compatible with this version
Solution:
Create new application in google play console with different package name and make your change your package name in gradle file and all over.
and remove all dependencies related to watch n wear and remove line from manifest file
<meta-dataandroid:name="com.google.android.wearable.standalon android:value="true"/
<uses-feature android:name="android.hardware.type.watch" />
And publish again and check compatible device that your app is support before rollout , after publish you will get mail from google as report of tested application.

How to share standalone Android Wear App for testing?

What i am trying :
I am new to the WearOS development. I am trying to create standalone app (for 1.x and 2.0) and share it for testing.
As I mentioned standalone app, it's not dependent on any mobile devices, neither Android or Apple phone.
What i have tried :
I have tried releasing an app to PlayStore as an "Internal test" and as a tester, I tried to install the app by web PlayStore install button. The PlayStore shows "... will be installed on your device soon". But still, it's not installing the app. My wear is connected to the internet but no luck.
Manifest Entry:
<uses-feature android:name="android.hardware.type.watch"/>
<meta-data
android:name="com.google.android.wearable.standalone"
android:value="true" />
<uses-library
android:name="com.google.android.wearable"
android:required="false"/>
Question :
Is companion app is needed for standalone wear app? OR may be if you know and can share any suggestions to share standalone wear app.
From WearOS 2.0, PlayStore is available on wear. So, When we open app page on PlayStore and install from there by selecting wear device, wear 2.0 devices are able to get the app directly through the PlayStore without companion app.

CanĀ“t install android wear apk automatically from play store

I have created a demo project of wear in Android studio. So the two projects created automatically, the phone and the Android wear are linked correctly.
When I generate the apk of the phone project, the two apks are generated.
The phone apk I signed it and uploaded it to Google Play Alpha.
In generated phone apk, inside res/raw I can se wear apk. So the mobile apk contains the wearable apk properly.
I have real physical phone and Android wear emulator linked. When I link real device to emulator, in Android wear emulator my phones apps that have wearable version are installed automatically.
I download my app upload from play store alpha to my phone, but in my wear emulator wear version of my app is not installed.
Additional info:
-The wearable emulator does not contain any app with the same package name.
-I have done several tests creating a new emulator.
-In the emulator if I install the application directly with the play button of Android studio works correctly
The packaging and distribution of wearable apps changed with Android Wear 2.0. Wearable apps are no longer synchronized from the phone. Instead you need to upload a wearable APK to the Play Store.

"No, missing feature: WATCH" when I try to run my smartphone app with wear app?

I have a smartphone app with a wear app that has been packaged inside of it, similar to the first two steps of this section:
https://developer.android.com/training/wearables/apps/packaging.html#Studio
I was originally told that my smartphone wasn't running an SDK large enough to support the app (my phone was using KitKat, apparently I needed API 20), so now I am using my Nexus 7 with Android L preview, and this problem has appeared:
I have a smartwatch emulator and tablet running, and both are connected using the adb -d forward tcp:5601 tcp:5601 trick, so I have no idea how to fix this now!
How can I get the smartphone app to run and automatically allow the wear app to install onto the emulator?
Please look at this!
May be you should select the APP item before you launch your app.
In your project you have two applications:
Mobile
Wearable
Mobile app should be installed on mobile device (phone/tablet) and Wearable app should be installed on Android Wear device.
This message No, missing feature: WATCH means that you're trying to install Wearable app on mobile phone - you shouldn't do that, your mobile device is not a WATCH. So once again: just launch Mobile app on mobile and Wearable app on Android Wear.
I was originally told that my smartphone wasn't running an SDK large
enough to support the app (my phone was using KitKat, apparently I
needed API 20), so now I am using my Nexus 7 with Android L preview,
and this problem has appeared:
Only the Wearable app should require API level 20, but Mobile app can target any other SDK level (like 10, 14 etc.). You don't need to set higher SDK level for Mobile app only because it supports Wearable app.
How can I get the smartphone app to run and automatically allow the
wear app to install onto the emulator?
As described in the tutorial that you've linked:
If packaged properly, when users download the handheld app, the
system automatically pushes the wearable app to the paired wearable.
But please read the note at the top of this page:
Note: This feature doesn't work when you are signing your apps with a
debug key when developing. While developing, installing apps with adb
install or Android Studio directly to the wearable is required.
This means that automatically installing Wearable app after installing Mobile app (with Wearable app packaged inside) will only work after signing app with your publishing certificate (and not with the debug one - as is done during standard application Launch from Android Studio/Eclipse).
I had the same error when I tried running non wearable application on my device and the error was due to some Android Studio issue with misreading the uses-feature attribute in the Manifest (it reads required false as true):
<uses-feature
android:name="android.hardware.type.watch"
android:required="false"/>
If you remove it from the manifest the error will disappear. I think that it should be already fixed in Android Studio 1.4.1 or 1.5.
Check if you have not open any other android project. I also faced same issue which got solved after I closed android project which has target API greater than watch's.

Categories

Resources