我可以在Ubuntu14.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#请帮我解决这个问题
发布于 2014-09-07 02:24:52
这个API在14.04中不可用,它是在14.10中引入的。要为14.10部手机开发应用程序,您应该创建一个模拟器或使用您的设备,并在QtCreator中创建一个"Kit“来处理那里的构建和运行。您将无法直接在14.04桌面上运行它。
有关使用工具包运行应用程序的简短视频,请参见http://developer.ubuntu.com/start/ubuntu-sdk/using-device-kits/。
https://askubuntu.com/questions/520889
复制相似问题