4

我在 appcelerator 工作室中创建应用程序。它在我的 Android 6 Lenovo 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、titan sdk、node.js,但问题还是一样。发现很少有人有类似的错误,但对他们有用的东西似乎对我有用。谢谢你的帮助

4

1 回答 1

1

将以下代码添加到您的 config.xml。

<property name="run-on-main-thread" type="bool">true</property>

这将解决问题

于 2016-10-06T07:23:06.813 回答