首页 > 编程语言> > readlink(‘/ proc / self / fd / 21’)失败:将Admob模块添加到Appcelerator应用程序后,Android 6中的权限被拒绝[fd = 21]错误
readlink(‘/ proc / self / fd / 21’)失败:将Admob模块添加到Appcelerator应用程序后,Android 6中的权限被拒绝[fd = 21]错误
作者:互联网
我在appcelerator工作室创建应用程序.它在我的Android 6联想a7000上运行没有错误,直到我添加了admob模块.现在我得到这些错误:
[ERROR] : linker: readlink('/proc/self/fd/21') failed: Permission denied [fd=21]
[ERROR] : linker: warning: unable to get realpath for the library "/data/app/com.techintegrity.ekko-1/lib/arm/libti.admob.so". Will use given name.
[ERROR] : TiApplication: (KrollRuntimeThread) [77,153] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.techintegrity.ekko-1/lib/arm/libti.admob.so: has text relocations; Titanium 5.2.0,2016/02/20 08:05,384775e
[ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.techintegrity.ekko-1/lib/arm/libti.admob.so: has text relocations
[ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:372)
[ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1076)
[ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
[ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114)
我已经更新了所有内容:appcelerator studio,钛sdk,node.js,但问题仍然是一样的.发现很少有类似错误的人,但没有任何对他们有用的东西似乎对我有用.谢谢你的帮助
解决方法:
将以下代码添加到config.xml中.
<property name="run-on-main-thread" type="bool">true</property>
这将解决问题
标签:android,admob,titanium,appcelerator,titanium-android 来源: https://codeday.me/bug/20190706/1394460.html