【问题标题】:Running html5 app template in ubuntu sdk failed?在 ubuntu sdk 中运行 html5 应用程序模板失败?
【发布时间】:2015-04-23 05:30:40
【问题描述】:

我的配置:

Ubuntu 14.04 LTS
64bit
Qtcreator 3.1.1
everything is up-to-date

大家好, 我正在尝试为 ubuntu Phone 编译和运行一个 HTML5 应用程序,但是在尝试和搜索一周之后,我仍然无法让它运行! 目前我只想运行简单的 html5 应用模板。

情况是这样的:

问题是当我编译默认模板时:这些是我得到的错误:

  1. desktop_Exec(app): 发现意外的 Exec 架构为 'all':./qtc_device_debughelper.py
  2. security_policy_groups_safe_app(debug):(REJECT)保留策略组“debug”:不用于生产
  3. security_policy_version_matches_framework(app.apparmor):无效的框架'ubuntu-core-15.04'

当我尝试编辑它时: 这就是我得到的:

Traceback (most recent call last):
File "/tmp/qtc_device_applaunch.py", line 29, in <module>
gi.Repository.get_default().require("UbuntuAppLaunch")
gi.RepositoryError: Typelib file for namespace 'UbuntuAppLaunch' (any version) not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 2158, in _find_spec
AttributeError: 'DynamicImporter' object has no attribute 'find_spec'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/tmp/qtc_device_applaunch.py", line 33, in <module>
from gi.repository import UpstartAppLaunch as UAL
File "/usr/lib/python3/dist-packages/gi/importer.py", line 53, in find_module
'introspection typelib not found' % namespace)
ImportError: cannot import name UpstartAppLaunch, introspection typelib not found

我一直在到处寻找这个,但我找不到有用的东西。 我需要你的一些知识来帮助我理解这一切!

【问题讨论】:

标签: sdk ubuntu-14.04 html5-apps


【解决方案1】:

我有同样的错误。我认为 'ubuntu-core-15.04'-error 与您使用的 Ubuntu 版本有关。我使用基于 Ubuntu 14.04 的 Mint 17。 Canonical 建议使用较新的 Ubuntu 版本进行应用程序开发,因为其中有一些内容它们已更改。

很遗憾,我无法帮助您解决其他错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-08-19
    • 2021-11-11
    • 1970-01-01
    • 1970-01-01
    • 2020-10-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多