gpt4 book ai didi

android - 在 Titanium 应用程序中添加 benCoding.AlarmManager 模块时应用程序崩溃

转载 作者:行者123 更新时间:2023-11-29 14:12:27 25 4
gpt4 key购买 nike

我使用的是 Titanium SDK 7.0.0 GA,我从 here 安装了 benCoding.AlarmManager(版本 1.0.0)模块.当我将模块添加到如下图所示的 tiapp.xml 模块列表并运行应用程序时,应用程序崩溃了。我需要安装这个模块来安排警报。请告诉我,如何在 Titanium studio 中安装此模块?

enter image description here

这是我在控制台中收到的日志消息 -

Start application log -----------------------------------------------------
[ERROR] : Zygote: MountEmulatedStorage()
[INFO] : SELinux: Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_GT-I9505_5.0.1-1_0070
[ERROR] : Zygote: v2
[ERROR] : SELinux: [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL
[INFO] : TiApplication: (main) [0,0] checkpoint, app created.
[INFO] : TiApplication: (main) [242,242] Titanium 7.1.1 (2018/04/19 11:11 undefined)
[INFO] : MultiDex: VM with version 2.1.0 has multidex support
[INFO] : MultiDex: install
[INFO] : MultiDex: VM has multidex support, MultiDex support library is disabled.
[WARN] : ContextImpl: Failed to ensure directory: /storage/extSdCard/Android/data/com.mobioapp.bod/cache
[WARN] : TiAndroid: (main) [1965,2207] Application instance no longer available. Unable to get current activity.
[WARN] : TiAndroid: (main) [2,2209] Application instance no longer available. Unable to get current activity.
[WARN] : TiAndroid: (main) [0,2209] Application instance no longer available. Unable to get current activity.
[WARN] : ContextImpl: Failed to ensure directory: /storage/extSdCard/Android/data/com.mobioapp.bod/cache
[ERROR] : art: dlopen("/data/app/com.mobioapp.bod-1/lib/arm/libbencoding.alarmmanager.so", RTLD_LAZY) failed: dlopen failed: cannot locate symbol "_ZNSt3__112__next_primeEj" referenced by "libbencoding.alarmmanager.so"...
[ERROR] : TiApplication: (main) [51,2260] Sending event: exception on thread: main msg:java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt3__112__next_primeEj" referenced by "libbencoding.alarmmanager.so"...; Titanium 7.1.1,2018/04/19 11:11,undefined
[ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt3__112__next_primeEj" referenced by "libbencoding.alarmmanager.so"...
[ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:371)
[ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:989)
[ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:142)
[ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:109)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:207)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:113)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:135)
[ERROR] : TiApplication: at com.mobioapp.bod.BodApplication.onCreate(BodApplication.java:95)
[ERROR] : TiApplication: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020)
[ERROR] : TiApplication: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5122)
[ERROR] : TiApplication: at android.app.ActivityThread.access$1600(ActivityThread.java:177)
[ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1510)
[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:145)
[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5951)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:372)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
[ERROR] : AndroidRuntime: FATAL EXCEPTION: main
[ERROR] : AndroidRuntime: Process: com.mobioapp.bod, PID: 25583
[ERROR] : AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "_ZNSt3__112__next_primeEj" referenced by "libbencoding.alarmmanager.so"...
[ERROR] : AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:371)
[ERROR] : AndroidRuntime: at java.lang.System.loadLibrary(System.java:989)
[ERROR] : AndroidRuntime: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:142)
[ERROR] : AndroidRuntime: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:109)
[ERROR] : AndroidRuntime: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:207)
[ERROR] : AndroidRuntime: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:113)
[ERROR] : AndroidRuntime: at org.appcelerator.kroll.KrollRuntime.init(KrollRuntime.java:135)
[ERROR] : AndroidRuntime: at com.mobioapp.bod.BodApplication.onCreate(BodApplication.java:95)
[ERROR] : AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1020)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5122)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.access$1600(ActivityThread.java:177)
[ERROR] : AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1510)
[ERROR] : AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : AndroidRuntime: at android.os.Looper.loop(Looper.java:145)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5951)
[ERROR] : AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
[ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
[ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)

这是我在 tiapp.xml 中的 android xlm 布局 -

<android xmlns:android="http://schemas.android.com/apk/res/android"/>
<modules>
<module platform="android">hyperloop</module>
<module platform="iphone">hyperloop</module>
<module platform="commonjs">ti.cloud</module>
<module platform="android">bencoding.alarmmanager</module>

最佳答案

查看错误消息,以及 git 存储库中的最新更新(这是一个相当古老的更新,可能未被维护/相关)。为了使其在 SDK 7 中正确运行,您需要下载源代码更新 list 并重新编译它。

在开始之前,您应该首先检查 SDK 是否可以满足您的需求。查看以下有关 Titanium 中的 Android 推送通知的文档:

https://docs.appcelerator.com/platform/latest/#!/guide/Android_Notifications

https://docs.appcelerator.com/platform/latest/#!/guide/Sending_and_Scheduling_Push_Notifications

关于android - 在 Titanium 应用程序中添加 benCoding.AlarmManager 模块时应用程序崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50577559/

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