Closed agGitHub closed 3 years ago
Does this error lead to a crash? I think it's noisy logcat output that looks scary because it's tagged as an Error
.
I have a similar event. The app crashes when launched in an emulator (Pixel 4).
Hello, I have the same problem, you could find a solution ?
Hi, I was running into this issue earlier today and managed to fix it (perhaps fix - or perhaps just use the right configuration) I'm running this on the emulator also - Pixel 3a API 29. In build.gradle (app) I have included:
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.gms:play-services-location:17.1.0'
It is interesting that the quickstart does not mention location services, though. I hope this helps.
If this is a crash, please upload a crash log and stack trace. I see this stack trace in normal app operation.
Although including the play-services-location
jar solves the message, there isn't an apparent link to the ClassNotFoundException and a crash.
I can't reproduce the crash you've mentioned on the API 29 emulator either; could you share the AVD details?
It seems that this bug doesn't induce a crash. By the way, you can see in my log that there is another exception :
2021-01-12 21:00:59.465 1149-6842/? E/JavaBinder: *** Uncaught remote exception! (Exceptions are not yet supported across processes.)
java.lang.RuntimeException: android.os.RemoteException: Couldn't get ApplicationInfo for package android.frameworks.sensorservice@1.0::ISensorManager
at android.os.Parcel.writeException(Parcel.java:2170)
at android.os.Binder.execTransactInternal(Binder.java:1214)
at android.os.Binder.execTransact(Binder.java:1159)
Caused by: android.os.RemoteException: Couldn't get ApplicationInfo for package android.frameworks.sensorservice@1.0::ISensorManager
at com.android.server.pm.PackageManagerService$PackageManagerNative.getTargetSdkVersionForPackage(PackageManagerService.java:29331)
at android.content.pm.IPackageManagerNative$Stub.onTransact(IPackageManagerNative.java:255)
at android.os.Binder.execTransactInternal(Binder.java:1195)
at android.os.Binder.execTransact(Binder.java:1159)
What is this exception (that doesn't induce a crash also) ? How to fix it?
Thanks!
Note that adding the permissions mentioned by @adjeiv didn't remove these two exceptions for me. I also tried to add:
implementation 'com.google.android.gms:play-services-auth:19.0.0'
and it didn't solve the issue either.
Couldn't get ApplicationInfo for package android.frameworks.sensorservice@1.0::ISensorManager
I'm seeing this exception in logs during normal operation as well (unfortunately none I can share besides this filament issue, so I don't think this is a issue that needs to be solved.
We're continuing to work on the noisiness of ARCore logging to make sure that relevant info isn't drowned out by non-problems like these.
@agGitHub I'm encountering the same exception that I believe is raised when the ARCore Session is created by the ArFragment or by calling: Session(context)
Here what it logs in my case:
W/ARCore-ContextUtils: The API key for use with the Google AR service could not be obtained! E/ARCore-LocationProvider: Exception during FLP api client construction: com.google.android.gms.location.LocationServices java.lang.ClassNotFoundException: com.google.android.gms.location.LocationServices at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:453) at com.google.ar.core.services.LocationProvider.loadClass(PG:1) at com.google.ar.core.services.LocationProvider.setupFusedLocationProviderApi(PG:1) at com.google.ar.core.services.LocationProvider.
(PG:7) at com.google.ar.core.Session.nativeCreateSessionAndWrapperWithFeatures(Native Method) at com.google.ar.core.Session. (SourceFile:11) at com.google.ar.core.Session. (SourceFile:4)
I think the problem is in the warning, with ARCore not being able to obtain the key; although I'm using
implementation 'com.google.android.gms:play-services-auth:19.0.0'
and I've tried to define the APIKey in the Manifest.
I had similar problem with LocationProvider and I didn't use location inside my application. Accidentally while adding image into augmented image database, I was using name which was null.
AugmentedImageDatabase augmentedImageDatabase = new AugmentedImageDatabase(session);
augmentedImageDatabase.addImage(name /*was null*/, bitmap, size);
I had this problem too, and although it didn't crash, it caused me a lot of trouble.
My App has been online for a long time. One day, I suddenly received feedback that the model I identified was not the expected Angle. It was sudden, and the surprise was that it hadn't happened before. And it runs fine on the iPhone.
2021-02-26 13:09:02.080 2045-2074/com.qianxi.AF E/AR: Cannot setMode to AR before Camera is initialized
2021-02-26 13:09:02.416 2045-2074/com.qianxi.AF E/AR: VideoBackgroundConfig with screen size of zero received, skipping config step
2021-02-26 13:09:04.391 2045-2074/com.qianxi.AF E/ARCore-LocationProvider: Exception during FLP api client construction: com.google.android.gms.location.LocationServices
What's also interesting is that Vuforia's watermark placement has become a bit weird
I have a similar event. The app crashes when launched in an emulator (Pixel 4).
Do you got resolved? I am too facing same problem.....App closes upon opening
I get the same error while running my app on a real device. My app uses location services and the ARCore in Unity (ARFoundation) and crashes. Has anyone found a solution? arloc-2020_1_17-loc3_5-warn.pdf
UPDATE: I think my crash was not caused by that error message, because it occured later. After disabling multi-threaded rendering, I have not been able to reproduce my crash. It does not work well with ARCore.
Still issue is opened not yet solved. I didn't use any location services in my app though it closes immediately
If I import both the ARCore and Vuforia packages in Unity, I get the same error when I package the APK to run. If you have only one of these two, you won't get an error. This error causes Vuforia to skip screen adaption errors and some other problems
Exception during FLP api client construction: com.google.android.gms.location.LocationServices
will always appear if you do not have a com.google.android.gms.location
on your classpath. However, this will not cause a crash. There is no reason to add this dependency if you do not need it.
I'm working to remove this error in the next release, since it seems to cause a bunch of confusion. To be clear: if your app is crashing, this message is unrelated. If you have an error that leads to a crash, please feel free to open a new issue with the relevant information and the crash logs.
Yes it's asking location dependencies and I did a experiment for larger app I mean I have added 24 3D models in my app
And then I tried only 2 models for new project of same 3D models and it worked for smaller app and it didn't crash/closed app. Works fine for limited assets app
Both used same gradle versions and same dependencies and same classpaths with no gms services.
Arcore SDK used is 1.18.0 also tried with 1.23.0 Gradle : 3.5.4 (latest) Sceneform tools : 1.15.0
I get the same error when trying to run the Hello_Ar_Java example program in the android emulator.
I am getting the same issue. why this ticket closed.
I have this very problem and the only exception in logcat is this message about LocationServices. using different solutions in this thread or others in stackoverflow and other websites just didn't work! As I can see this issue is not stably fixed so is not closed! I get this error on a sample project without any modification, but I get the same error in both Fresh project and Google's sample "HelloAr Java"
Yeah I am developing 3 different ARCore projects past three months. Due to this problem they all are in pending. No words for now🙁
Actually google have to regret their words "hardware is hard" bcoz for them software is also hard
Yeah I am developing 3 different ARCore projects past three months. Due to this problem they all are in pending. No words for nowslightly_frowning_face
Actually google have to regret their words "hardware is hard" bcoz for them software is also hard
Are you even able to run "HelloAr Java" app provided by arcore-android-sdk/samples ? It has got me days and no clue!
No...the same location services issue
To reiterate:
I
in the next release of ARCore.Though adding a dependency on gms may hide the message, you probably won't see a change in behavior in the app.
If you're experiencing a crash or other problem, please open a new issue containing a detailed crash trace.
I am still facing this issue
I stopped my #ARCore app development 😐 due to that issue
To reiterate:
- This message should not affect how your app behaves. Though it appears in logcat as a red message, this can be a part of normal app behavior. This message will be level
I
in the next release of ARCore.- Though adding a dependency on gms may hide the message, you probably won't see a change in behavior in the app.
If you're experiencing a crash or other problem, please open a new issue containing a detailed crash trace.
Unfortunately, it is affecting the way my app behaves. Even though it is not causing the app to crash, it is still causing issues on Android that I do not have on iOS.
The reported message will become logged as level I
in the next release of ARCore, instead of E
.
When this message appears, it means that location services cannot be found. However, ARCore only uses it in select conditions and does not require them to function. Though adding a dependency on gms may hide the message, you probably won't see a change in behavior in the app.
If you're experiencing a crash or other problem, please open a new issue following the issue guidelines that contains a detailed crash trace.
SPECIFIC ISSUE ENCOUNTERED
My app doesn't use Location services. I get the following very weird bug that happens randomly. I have no memory issues.
Anybody can tell how to solve this issue ?
Thanks!
Other developers had this issue: https://stackoverflow.com/questions/61723670/getting-location-service-error-while-using-ar-core
VERSIONS USED
Android Studio: 4.1.1
ARCore SDK for Android: 1.22.0
Device manufacturer, model, and O/S: Samsung S20+, Android 11
Google Play Services for AR (ARCore):
On macOS, use:
adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
: Packages: versionName=1.22.203220503 Hidden system packages: versionName=0Output of
adb shell getprop ro.build.fingerprint
: samsung/y2seea/y2s:11/RP1A.200720.012/G985FXXS5CTL5:user/release-keysSTEPS TO REPRODUCE THE ISSUE
Random issue with an app using ARCore.
WORKAROUNDS (IF ANY)
No found.
ADDITIONAL COMMENTS
Please fix this problem!