Open caiocs opened 2 years ago
Seems as ARCore fails to initialize on some devices when running instant app, I have the same problem on a samsung device running Android 12 but not on a Xiaomi running Android 11
We have the same problem on some devices. Has any idea or solution been found?
I am having this problem with several devices. The device supports Arcore and the app works completely correctly. If I start the instant app directly from Android Studio I have no problem. Once the app is published I get a black screen and the message "failed to create ar session".
The problem occurred on:
anyone found anything more on this? Im using SceneView but have the same issue
Not to keep bumping this but I did notice on OnePlus IN2013 Android 11, API 30 Im getting similar but this could be the culprit:
Failed to load native library [packageName=[com.google.ar](http://com.google.ar/).core,libraryName=arcore_c] from remote package:
java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/~~8RT7nEe_S0X111Yc2DsbDQ==/com.google.ar.core-hNr0z_Ue1j5GoskItU98Dg==/base.apk!/lib/arm64-v8a/libarcore_c.so" is 64-bit instead of 32-bit
just incase anyone is searching why some devices are giving a black output for camera while using Instant variant I solved my issue by adding the following to my gradle file:
ndk { abiFilters.add("arm64-v8a") }
@vtime-phil can you tell us how this solved your problem? I tried but I still get the same error. Is there any news or updates on this?
@vtime-phil can you tell us how this solved your problem? I tried but I still get the same error. Is there any news or updates on this?
Apologies @dodorian92 I was rather premature in my celebration. It seems that by putting that filter it knocked off my Pixel and Huawei, reverting put my back to square one. I tried removing all (default) and again back to square one. I currently have a ticket on issue tracker too:
https://issuetracker.google.com/issues/278743538
Still no joy as such
I am encountering same issue while trying to run an instant app which I have uploaded to the play store that utilizes AR Core functionality. The error message displayed in log is as follows: "Failed to load native library [packageName=com.google.ar.core, libraryName=arcore_c] from remote package." As several developers have already raised this issue but it still remains unresolved. I would greatly appreciate an update on the progress of this issue.
I have tested this on some devices and results are as below -
Device: Successful to load AR core library: Xiaomi K20 pro, Pixel 3. Failed to load AR core library: Samsung (S8, S9, S10, S21 FE, note 10+), Nothing, Oneplus 7t.
Any news on this issue? I am facing the same problem.
HI. I tried to access the issue for any updates on the problem. Unfortunately by opening the link I get access denied. I think the only solution to get an answer to this problem is to continue reporting as there is nothing we can do. The problem affects most of the samsung then a wide range of devices.
This problem appears to be caused by ABI splitting resulting in problems on certain phones.
I've had success getting rid of this problem by disabling ABI splitting in the main app's build.gradle, e.g:
android{
bundle {
abi {
enableSplit = false
}
}
}
This page is what led me to trying this solution, but since ABI splitting is probably desirable it's only really a workaround - and probably only suitable for testing builds rather than deploying to production.
This problem appears to be caused by ABI splitting resulting in problems on certain phones.
I've had success getting rid of this problem by disabling ABI splitting in the main app's build.gradle, e.g:
android{ bundle { abi { enableSplit = false } } }
This page is what led me to trying this solution, but since ABI splitting is probably desirable it's only really a workaround - and probably only suitable for testing builds rather than deploying to production.
This fixed the issue!
Thanks @vTimePhil !!!!
Cheers but you've got @vTimeTom to thank for that discovery!
This resolved my issue. Thank you, @vTimeTom! However, what if I intend to deploy the application on the Google Play Store? Disabling ABI split is not considered best practice in this scenario.
Unfortunately I don't have a good answer for you there @PriteshNikam - as I said in my original comment:
since ABI splitting is probably desirable it's only really a workaround - and probably only suitable for testing builds rather than deploying to production.
Perhaps there's some additional gradle configuration that can be done in order to control the ABI splitting process properly, but I haven't looked into that side of things!
Hello,
I'm generating a instant app with AR Core to the store, When I'm using the Android Studio and run the Instant App, Everything works and I'm able to generate a Session. But when I send this instant app to the store, and click on the "try now" button. I get a error when trying create a session. If I install the app, everything works, this problem only happens with the Android 11 and when I'm trying to run the Instant app from the Store. Any thoughts?
Error:
2021-12-08 11:30:12.126 25278-25278/? E/DynamiteClient: Failed to load native library [packageName=com.google.ar.core,libraryName=arcore_c] from remote package:
VERSIONS USED
Packages: versionName=1.28.212840283 Hidden system packages: versionName=0 Active APEX packages: Inactive APEX packages: Factory APEX packages:
adb shell getprop ro.build.fingerprint
: OnePlus/OnePlus6T/OnePlus6T:11/RKQ1.201217.002/2111252327:user/release-keysSTEPS TO REPRODUCE THE ISSUE