简体   繁体   English

Qt Necessitas错误 - 找不到Ministro服务

[英]Qt Necessitas error - Can't find Ministro service

I downloaded the Necessitas installer for Linux, but I can't make my "Hello World" Qt application run on the debugger's Android VM. 我下载了Linux的Necessitas安装程序,但我无法在调试器的Android VM上运行我的“Hello World”Qt应用程序。

It gives this error: 它给出了这个错误:

Can't find Ministro service.
The application can't start.

在此输入图像描述

And this is the Debug log from Qt Creator: 这是来自Qt Creator的调试日志:

Starting remote process...D/dalvikvm( 2497): GC freed 699 objects / 55432 bytes in 152ms
D/dalvikvm( 2497): GC freed 65 objects / 2640 bytes in 58ms
W/System.err( 2497): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://search?q=pname:org.kde.necessitas.ministro }
W/System.err( 2497):    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1408)
W/System.err( 2497):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
W/System.err( 2497):    at android.app.Activity.startActivityForResult(Activity.java:2749)
W/System.err( 2497):    at org.kde.necessitas.origo.QtActivity$4.onClick(QtActivity.java:266)
W/System.err( 2497):    at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:158)
W/System.err( 2497):    at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err( 2497):    at android.os.Looper.loop(Looper.java:123)
W/System.err( 2497):    at android.app.ActivityThread.main(ActivityThread.java:4363)
W/System.err( 2497):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 2497):    at java.lang.reflect.Method.invoke(Method.java:521)
W/System.err( 2497):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
W/System.err( 2497):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
W/System.err( 2497):    at dalvik.system.NativeStart.main(Native Method)

So I can't run my program. 所以我无法运行我的程序。 It compiles otherwise. 它编译否则。 From what I've seen on the Internet, Ministro is a service for deploying the shared Qt libraries needed by Qt applications on Android. 从我在互联网上看到的,Ministro是一种用于部署Android上Qt应用程序所需的共享Qt库的服务。

So why am I getting this error (on a freshly installed Necessitas+empty Android project)? 那么为什么我会收到这个错误(在新安装的Necessitas +空Android项目上)? And what do I do to make my program run, do I need to manually install the Qt libs? 如何让程序运行,是否需要手动安装Qt库? From where? 来自哪里?

If I remember correctly, you had to use the modified Qt creator that comes with Necessitas and the first time you wanted to deploy your application to Android device, you had to take the following steps: 如果我没记错,您必须使用Necessitas附带的修改过的Qt创建器,并且第一次将应用程序部署到Android设备时,必须执行以下步骤:

  1. On the left side of Qt Creator go to Projects 在Qt Creator的左侧,转到Projects
  2. In the projects window in the run tab of Necessitas Qt for android you have to go to Deploy configurations and click to expand details 在Necessitas Qt for run的运行选项卡的项目窗口中,您必须转到部署配置并单击以展开详细信息
  3. In details check Install Ministro system wide Qt shared libraries installer and select the APK you downloaded earlier (I think I got it from here http://necessitas.kde.org/necessitas/ministro.php ) 详细信息请检查安装Ministro系统范围的Qt共享库安装程序并选择您之前下载的APK(我想我从这里获得了它http://necessitas.kde.org/necessitas/ministro.php
  4. Just build and run your program as normally 只需正常构建和运行程序即可

在此输入图像描述

Let me know if the following steps worked for you. 如果以下步骤适合您,请告诉我。 I think there is yet another way, which involves ADB and command line, but for that I would have to lookup my notes, which I currently do not have with me... 我认为还有另一种方式,涉及亚行和命令行,但为此,我将不得不查找我的笔记,我目前没有与我...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM