-
-
Notifications
You must be signed in to change notification settings - Fork 197
Android 64 bit Support needs to be enabled by default #4330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @NathanaelA , |
This comment was marked as abuse.
This comment was marked as abuse.
I added this to my app.gradle and it worked fine.
|
@brndusic Did you have any troubles in google play? Did the added 64 bit support affect any plugins? @rosen-vladimirov Is this line what you were planning to add when using a flag? |
@racknoris I haven't noticed any problem. Warning on google play went away after I built this way. |
I can confirm this solved it for me - using geolocation, firebase, localstorage and som UI plugins. |
Maybe I'm missing something here - I just built the Android version of our app and set the app.gradle as suggested by @brndusic
however, running APK Analyze from Android studio I do not see libNativeScript.so for x86_64: |
@lambourn could you please try in the way I found as well? perhaps it'll work |
@racknoris I did. Same result. |
@racknoris I have not analyzed .apk file, the thing it solved for me is that there is no more warning on app store about 64 bit support. |
@brndusic good to know. Maybe the Play Store is fine with just the arm64 binaries being present as x86_64 is not a relevant platform for Android mobile phones / tablets? |
I am experiencing a crash of my app on startup when running it on an Android emulator with the CPU set to x86_64. This is because libNativeScript.so is missing from lib/x86_64 folder of the apk (it is present for all other architectures - x86, arm64-v8a, armeabi-v7a). Is there a plan to have a x86_64 version of libNativeScript.so? |
@ExaltedJim , |
@ExaltedJim, same for me: https://take.ms/I5EuD |
same problem here and the deadline to update app is august first! |
The same problem.
Supported count of devices was decreased by 6 from 10557 to 10551 (that was displayed in Google Console App releases section after the roll out with that configuration) |
I just built an app with My assumption is that Google does not require x86_64 binaries at all (and if the app is really running on a x86_64 target, e.g. tablet. then the x86 32-bit binaries will be used) |
@lambourn according to this guide Google provided https://developer.android.com/distribute/best-practices/develop/64-bit seems to be that x86_64 is required. There were no complaints about missing x86_64 in Google Console for app I am working on and it is possible to upload the APK without 64bit version but the warning came from Google by email that app doesn't meet the requirement. I did send a message to google support with a question about whether it is fine to have ARM only and stop x86 support to meet the requirements, so hope I'll get the answer soon. |
@dmdnkv thanks for the heads-up. I just checked the Android App Bundle report for the uploaded .aab. It turns out that we'd miss 49 device models in total if we remove x86_64 and x86 support for our app. Looks acceptable. |
Just uploaded new version to google play with config recommended by @dmdnkv. I miss only five devices if x86 and x86_64 is removed, all of them are wearable devices (watches) which are not relevant for me. Thanks! |
@rosen-vladimirov Do you guys plan to publish an official statement/blog post regarding this specific case? August 1st is in 2 weeks |
@felix-idf sorry I have been busy as of late with other projects - when I find the time I will bring up my app in the 64 bit emulator again and report any crash logs. Just to let others know, after compiling my app with 'armeabi-v7a', 'arm64-v8a', 'x86' ,'x86_64' enabled, I published the app to the store, and the previous warning I received from Google Play Store about lack of 64-bit support has gone away, however as I've demonstrated in the 64-bit emulator, it won't run. |
@ExaltedJim I had almost the same path, it was 32bit only, then I built with 'armeabi-v7a', 'arm64-v8a', 'x86' , 'x86_64' there were no warnings in the Google Console after upload it but then later after several weeks it was an email from Google on July 10th with a warning about the app didn't meet 64bit requirement. Did you receive an email from Google? |
@Roar1827 this might help for now: NativeScript/NativeScript#7705 (comment) |
Thanks @n0mer . We were able to get a build up using that. Looks like we've run into some Android compatibility warnings in the Pre-launch report- not sure how serious they are, but we will do some testing. Thank you for your help! |
Hey everyone,
Stay tuned for more information, hopefully we'll be able to release a fix as planned. |
Hi everyone, If project doesn’t contain any native library or I can say when I analyze the apk I dint got any .so file. So Is my apk or an app is compatible for 64 bit? |
@vinita1505 All NativeScript apps for Android are shipped with the V8 JavaScript-engine, which is native code, so any NativeScript developer is affected by this issue. But the NS team has just released tns-android 6.0.2, so update your project and you should be safe now. |
Is it safe to upgrade platform modules without upgrading to NS6? |
@jnorkus no, you have to migrate your project to NS 6 to be able to use the latest Android runtime for your app. |
Hey everyone,
|
Is there any workaround for NS5 users that includes x86 support? Many plugins out there don't support NS6 and most of us are stuck with that. |
@jnorkus we don't plan to bakport this fix to older version as it is not a trivial amount of work. We would rather put effort to support the users in migrating to 6.0. Can you send us a summary of the plugins that incompatible, so that we can try to help where we can? Does this approach sound reasonable to you? |
@etabakov I can totally understand the reasoning. To be honest I haven't even tried migrating yet. I am assuming it won't work because of the AndroidX breaking change. Once I have time to look into migration I will report my progress. For the time being I will just exclude x86 support for our apps. |
This comment was marked as abuse.
This comment was marked as abuse.
@NathanaelA awesome tip 👍 thanks @PeterStaev |
I have do this but not work same issue |
Not work , please help me |
Same problem here. added but in bundle file the x86_64 is missing:
|
@Clifte please try "clear" first
|
@NathanaelA Thank you for the snippet! I also wanted to clarify, the |
hello all, what worked for me in the end was the following configuration:
i would love to know what is wrong with 'arm64-v8a' package and be able to include it. |
I use NativeScript 6.1 |
I have NS 6.1.2 on a fresh new project and I still cannot upload an The bundle has been generated with this command:
Here is my app.gradle:
What did I miss? |
@sebj54 Did you manage to solve this? |
@racknoris I'm still using this suggestion: #4330 (comment), even with NS 6 |
@sebj54 I see, thank you |
It should be enough just executing the command you mentioned:
No additional actions are required. However, fell free to open an another issue with detailed description and exact error you received when trying to upload an |
Describe the issue
By August 1st, Google will require apps to have 64 bit support enabled in addition to the 32 bit support.
Because the actual nativescript runtimes are native code (i.e. c/c++) this is a requirement we have to do, so getting this re-enabled by default; sooner than later will simplify everyone's life before the Aug 1st deadline.
Additional context
The 64 bit runtimes are shipped, but in the past were disabled by default to keep the .apk size smaller.
Indirectly related to #1392
The text was updated successfully, but these errors were encountered: