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. qt 6.6.1 Android build error: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.lastIndexOf(String)" because "path" is null
Forum Updated to NodeBB v4.3 + New Features

qt 6.6.1 Android build error: Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.lastIndexOf(String)" because "path" is null

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 1.4k 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.
  • L Offline
    L Offline
    LOVA
    wrote on last edited by
    #1

    I have encountered this error when bulid a hello world android app in qt 6.6.1--- Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.lastIndexOf(String)" because "path" is null
    the android configuration is showed below
    issue1.png
    issue2.png
    issue3.png

    I thought it's some sdk version issue, but don't konw how to fix it. Please give me some advise, thanks.

    JoeCFDJ 1 Reply Last reply
    0
    • L LOVA

      I have encountered this error when bulid a hello world android app in qt 6.6.1--- Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.lastIndexOf(String)" because "path" is null
      the android configuration is showed below
      issue1.png
      issue2.png
      issue3.png

      I thought it's some sdk version issue, but don't konw how to fix it. Please give me some advise, thanks.

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      @LOVA use JDK 11 for Android 12. What is Android version of your target device?

      L 1 Reply Last reply
      0
      • S Offline
        S Offline
        swurl
        wrote on last edited by
        #3

        I'm facing this same issue. Android 13, Java 17 (11 doesn't work), up-to-date NDK and SDK.

        1 Reply Last reply
        0
        • JoeCFDJ JoeCFD

          @LOVA use JDK 11 for Android 12. What is Android version of your target device?

          L Offline
          L Offline
          LOVA
          wrote on last edited by
          #4

          @JoeCFD Android 13, i don't think jdk 17 was the problem. I have another computer runing qt 6.6 with jdk 17 work fine, just this pc updated to qt 6.6.1 have this issue.

          1 Reply Last reply
          0

          • Login

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