【问题标题】:Appcelerator android apk using timed function calls crashes below 5.0使用定时函数调用的 Appcelerator android apk 在 5.0 以下崩溃
【发布时间】:2016-07-09 05:50:31
【问题描述】:

我一直在使用 Appcelerator 开发一个 android 应用程序,该应用程序会定期向 Web 服务器查询新条目,下载条目并将它们保存到本地 SQLite 数据库并最终将它们显示在 HTML webview 上。该应用程序在 Android 5.0 或更高版本上正常运行,但在 4.4 及更低版本上崩溃。我在想这可能是 webkit 无法处理 setinterval 函数。有没有其他方法可以解决这个问题?

【问题讨论】:

    标签: android titanium appcelerator appcelerator-titanium appcelerator-mobile


    【解决方案1】:

    请检查您的 build.gradle 文件,有一个 min-sdk 版本。 如果版本比你运行的android的SDK高,就不行了。

    【讨论】:

    • 我不确定在哪里通过 Appcelerator 进行设置。我在 tiapp.xml 中添加了这个: schemas.android.com/apk/res/android"> 这是需要的吗?
    猜你喜欢
    • 1970-01-01
    • 2013-03-20
    • 2017-07-08
    • 1970-01-01
    • 2015-04-05
    • 1970-01-01
    • 2020-04-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多