Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator develop android app using cmake, why Java files are not visible under the project files?
Forum Updated to NodeBB v4.3 + New Features

Qt Creator develop android app using cmake, why Java files are not visible under the project files?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 341 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.
  • T Offline
    T Offline
    Tony Yam
    wrote on last edited by Tony Yam
    #1

    IDE : Qt Creator v7.0.2
    CMake: 3.23.0-rc2
    How can i fix this issue?

    1234.png 1235.png 1236.png

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      You need to add your java source files to the project so that they will appear in the project tree.

      Something like:

      if (ANDROID)
        list(APPEND PROJECT_SOURCES 
          android/something.java
          android/and_another_something.java)
      endif()
      
      1 Reply Last reply
      1

      • Login

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