未安装“Ubuntu.Connectivity”

未安装“Ubuntu.Connectivity”

我可以在 Ubuntu 14.04 上安装 Ubuntu.Connectivity 1.0 以便在 nexus4 上的应用程序中使用它我已经使用过以下示例: http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Connectivity.NetworkingStatus/

当我在我的设备上运行它时出现错误:“Ubuntu.Connectivity”未安装

Processing triggers for mime-support (3.55ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for dbus (1.8.6-1ubuntu1) ...
Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
invoke-rc.d: policy-rc.d denied execution of start.
Processing triggers for udev (208-8ubuntu1) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.30.7-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libunity-scopes3_0.6.4+14.10.20140828.1-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
(click-ubuntu-sdk-14.10-armhf)root@hafmed-HP-ProBook:/home/haf-med# apt-get install qml-module-ubuntu-connectivity
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 unity-plugin-scopes : Depends: libunity-scopes3 (>= 0.6.0+14.10.20140804.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
(click-ubuntu-sdk-14.10-armhf)root@hafmed-HP-ProBook:/home/haf-med#

请帮助我如何解决此问题

答案1

此 API 在 14.04 中不可用,它是在 14.10 中引入的。要为 14.10 手机开发应用程序,您应该创建一个模拟器或使用您的设备并在 QtCreator 中创建一个“Kit”来处理在那里的构建和运行。您将无法直接在 14.04 桌面上运行它。

http://developer.ubuntu.com/start/ubuntu-sdk/using-device-kits/观看关于使用 Kits 运行应用程序的简短视频。

相关内容