Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. how to run a console app on command line?
Forum Updated to NodeBB v4.3 + New Features

how to run a console app on command line?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 176 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    J.Min
    wrote on 10 Dec 2021, 07:58 last edited by
    #1

    env
    Qt:Based on Qt 5.15.1 (MSVC 2019, 64 bit)
    JDK:jdk1.8.0_301
    NDK:21

    note
    I have run the console app with qt successful.

    question
    when i run the console app in the command line, it was crashed.

    someone can tell me how to run the console app?

    err msg

    rk3399pro:/ # am start -n org.qtproject.example.AndroidTest3
    
    Exception occurred while executing:
    java.lang.IllegalArgumentException: Bad component name: org.qtproject.example.AndroidTest3
            at android.content.Intent.parseCommandArgs(Intent.java:6522)
            at com.android.server.am.ActivityManagerShellCommand.makeIntent(ActivityManagerShellCommand.java:278)
            at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:328)
            at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:141)
            at android.os.ShellCommand.exec(ShellCommand.java:96)
            at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:15067)
            at android.os.Binder.shellCommand(Binder.java:594)
            at android.os.Binder.onTransact(Binder.java:492)
            at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:4243)
            at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2922)
            at android.os.Binder.execTransact(Binder.java:697)
    
    1 Reply Last reply
    0

    1/1

    10 Dec 2021, 07:58

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved