gpt4 book ai didi

java - 运行 Tango API 会在库上显示一个警告对话框

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:41:52 25 4
gpt4 key购买 nike

我正在通过 Tango 开发 AR 应用程序。该设备是 ZenfoneAR (Android 7.0 Nougat)。

我改进了示例项目并开发了一个应用程序。但是,当启动应用程序时,将显示以下警告消息。

对话消息

Detected problems with app native libraries(please consult log for detail):
libtango_client_api.so: unauthorized access to "libbinder.so"
libtango_client_api.so: unauthorized access to "libcutils.so"
libtango_client_api.so: unauthorized access to "libutils.so"
libtango_client_api.so: unauthorized access to "libgui.so"
libtango_client_api.so: unauthorized access to "libandroid_runtime.so"
libtango_client_api.so: unauthorized access to "libui.so"

日志

W/linker: library "libbinder.so" ("/system/lib64/libbinder.so") needed or dlopened by "/data/data/com.google.tango/libfiles/default/libtango_client_api.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
W/linker: library "libcutils.so" ("/system/lib64/libcutils.so") needed or dlopened by "/data/data/com.google.tango/libfiles/default/libtango_client_api.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
W/linker: library "libutils.so" ("/system/lib64/libutils.so") needed or dlopened by "/data/data/com.google.tango/libfiles/default/libtango_client_api.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
W/linker: library "libgui.so" ("/system/lib64/libgui.so") needed or dlopened by "/data/data/com.google.tango/libfiles/default/libtango_client_api.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
W/linker: library "libandroid_runtime.so" ("/system/lib64/libandroid_runtime.so") needed or dlopened by "/data/data/com.google.tango/libfiles/default/libtango_client_api.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
W/linker: library "libui.so" ("/system/lib64/libui.so") needed or dlopened by "/data/data/com.google.tango/libfiles/default/libtango_client_api.so" is not accessible for the namespace "classloader-namespace" - the access is temporarily granted as a workaround for http://b/26394120, note that the access will be removed in future releases of Android.
E/linker: library "libavenhancements.so" ("/system/vendor/lib64/libavenhancements.so") needed or dlopened by "/system/lib64/libmedia.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/<package name>-2/lib/arm64:/system/fake-libs64:/data/app/<package name>-2/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/<package name>"]

我认为这与以下站点的“NDK Apps Linking to Platform Libraries”有关。

https://developer.android.com/about/versions/nougat/android-7.0-changes.html#ndk

据此“libtango_client_api.so”是“私有(private)平台库”?

还是我的配置文件有误?

我不知道如何修复它,所以我无法改进它。我怎样才能改进我的警告?请帮助我。

app/build.gradle

android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
dataBinding {
enabled = true
}
defaultConfig {
applicationId "<package name>"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

lintOptions {
abortOnError false
}
}
}


dependencies {
apply from: '../version.gradle'
compile "com.google.tango:sdk-base:${release_version}"
compile "com.google.tango:support-base:${release_version}"
compile "com.google.tango:support-reconstruction:${release_version}"
compile 'org.rajawali3d:rajawali:1.1.668@aar'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'commons-io:commons-io:2.4'
compile 'org.apache.commons:commons-lang3:3.4'
}

${release_version} = 1.54

项目/build.gradle

buildscript {
repositories {
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
}
}


allprojects {
repositories {
mavenLocal()
jcenter()
}
}

app/src/main/AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="<package name>"
android:versionCode="0"
android:versionName="0" >

<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="23" />

<uses-permission android:name="android.permission.CAMERA" />

<application

...about application...>

<uses-library
android:name="com.projecttango.libtango_device2"
android:required="true" />

<activity

...about activity...>

...

</activity>
</application>
</manifest>

顺便说一句,配置文件几乎与Tango示例项目相同。

最佳答案

不知道为什么,这个错误只发生在debug模式下,release模式下没有。因此,作为一种解决方法,请在 Release模式下运行您的应用程序。

关于java - 运行 Tango API 会在库上显示一个警告对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45233025/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com