Tad*_*shi 6 java android gradle google-project-tango
我正在开发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"
Run Code Online (Sandbox Code Playgroud)
logcat的
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>"]
Run Code Online (Sandbox Code Playgroud)
我认为它与以下站点的"NDK应用程序链接到平台库"有关.
https://developer.android.com/about/versions/nougat/android-7.0-changes.html#ndk
据此,"libtango_client_api.so"是"私人平台库"吗?
或者我的配置文件中有错误?
我不知道如何解决它,所以我无法改进它.我怎样才能提高警告?请帮我.
应用程序/的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'
}
Run Code Online (Sandbox Code Playgroud)
$ {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()
}
}
Run Code Online (Sandbox Code Playgroud)
应用程序/ SRC /主/ 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>
Run Code Online (Sandbox Code Playgroud)
顺便说一句,配置文件几乎与Tango示例项目相同.
| 归档时间: |
|
| 查看次数: |
898 次 |
| 最近记录: |