ARCORE配置中的错误用于使用地理空间

发布于 2025-02-07 18:49:20 字数 2145 浏览 1 评论 0原文

我正在尝试使用Google Geolocalization的新API开发应用程序。 我对使用地理空间的Arcode的启动配置有错误。

这是我的错误:

E/本机:E0000 00:00:1655297260.231423 13723 ERROR_POLICY_UTIL.CC:263] ################ build_changelist:445555480 build_baseline_changelist:441227770 ################### ArcoreError:third_party/arcore/ar/geo/geoar_module.cc:167 https://cs.corp.google.com/piper/piper//depot/google3/google3/third_party/arcore/arcore/arcore/arcore/ar/geo/geo/geo/geoar_module.cc?g = 0& l = 167 ArcoreError:thix_party/arcore/ar/core/session.cc:487 https://cs.corp.google.com/piper/piper//depot/google3/google3/third_party/arcore/arcore/arcore/arcore/arcore/ar/core/core/core/session.gc?g = 0& l = 487 ArcoreError:third_party/arcore/ar/ar/core/co_api/session_lite_c_api.cc:109 https://cs.corp.google.com/piper.com/piper/piper//depot/google3/google3/third_party_party/arcore/arcore/arcore/arcore/arcore/arcore/arcore/arcore/core/core/c_api一下/session_lite_c_api.cc?g=0&l=109 ####################

################### Undecorated Trace Begin  #################
FAILED_PRECONDITION: 
ARCoreError: third_party/arcore/ar/core/session.cc:487

ARCoreError: third_party/arcore/ar/geo/geoar_module.cc:167
 [type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_ERROR_GOOGLE_PLAY_SERVICES_LOCATION_LIBRARY_NOT_LINKED']
=== Source Location Trace: === 
third_party/arcore/ar/geo/geoar_module.cc:167
third_party/arcore/ar/core/session.cc:487

################### Undecorated Trace End  #################

I'm trying to develop an application with the new API of google geolocalization.
i have an error with the starting configuration of ARcode to use geospatial.

This is my error:

E/native: E0000 00:00:1655297260.231423 13723 error_policy_util.cc:263]
################ ARCore Native Error ##################
BUILD_CHANGELIST:445555480
BUILD_BASELINE_CHANGELIST:441227770
################### Stack Trace Begin ################
ARCoreError: third_party/arcore/ar/geo/geoar_module.cc:167 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/geo/geoar_module.cc?g=0&l=167
ARCoreError: third_party/arcore/ar/core/session.cc:487 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/session.cc?g=0&l=487
ARCoreError: third_party/arcore/ar/core/c_api/session_lite_c_api.cc:109 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/c_api/session_lite_c_api.cc?g=0&l=109
################### Stack Trace End #################

################### Undecorated Trace Begin  #################
FAILED_PRECONDITION: 
ARCoreError: third_party/arcore/ar/core/session.cc:487

ARCoreError: third_party/arcore/ar/geo/geoar_module.cc:167
 [type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_ERROR_GOOGLE_PLAY_SERVICES_LOCATION_LIBRARY_NOT_LINKED']
=== Source Location Trace: === 
third_party/arcore/ar/geo/geoar_module.cc:167
third_party/arcore/ar/core/session.cc:487

################### Undecorated Trace End  #################

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

勿忘初心 2025-02-14 18:49:20

我在为Android建立的团结方面遇到了这个问题。这就是我为解决这个问题所做的。希望您可以从中取一些指针,并将其应用于您自己的情况。我并不是真正的Android开发人员,所以只有对Gradle的非常基本的了解。

在我的情况下,这个问题“突然”就开始发生了,因为我将小型代码更改为功能应用程序的脚本后开始发生。

在项目设置中玩家> Android>发布设置,选择自定义主gradle模板

打开文件并确保存在以下代码段:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
    implementation 'com.google.android.gms:play-services-location:16+' // Google.XR.ARCoreExtensions.Editor.Internal.ExternalDependencyResolverHelper.RegisterAndroidDependencies
// Android Resolver Dependencies End
**DEPS**}

此片段默认情况下在我的情况下,但应确保正确链接用于位置跟踪的Play Services软件包。

您可以通过在Android Studio构建APK软件包(build> Analyaze软件包)后分析APK软件包来验证它。该软件包将包括Play Services属性文件,以及其中一个*.dex文件将引用com.goog.android.gms。

希望这有帮助!

I have this issue on Unity where I was building for Android. This is what I did to fix this issue. I hope you can take some pointers from this and apply it to your own situation. I'm not really an Android Developer so only have very basic understanding of Gradle.

Weirdly enough in my case this issue "suddenly" started occurring after I made a small code change to a script of a functioning application.

In the Project Settings > Player > Android > Publishing Settings, select Custom Main Gradle Template

Open the file and ensure the following code snippets exists:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
// Android Resolver Dependencies Start
    implementation 'com.google.android.gms:play-services-location:16+' // Google.XR.ARCoreExtensions.Editor.Internal.ExternalDependencyResolverHelper.RegisterAndroidDependencies
// Android Resolver Dependencies End
**DEPS**}

This snippet was there by default in my case, but should ensure the play services package for location tracking is linked properly.

You can validate it's there by analyzing the apk package after building in Android Studio (Build > Analyze Package). The package will include play services property files and also one of the classes*.dex files will reference com.goog.android.gms.

Hope this helps!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文