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 5.15.16 with Android API 34 and AGP 8.1.1: QtLoader.java:54: error: package org.kde.necessitas.ministro does not exist
Forum Updated to NodeBB v4.3 + New Features

Qt 5.15.16 with Android API 34 and AGP 8.1.1: QtLoader.java:54: error: package org.kde.necessitas.ministro does not exist

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 3 Posters 718 Views 1 Watching
  • 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.
  • NihilishN Offline
    NihilishN Offline
    Nihilish
    wrote on last edited by
    #1

    Hey,

    We're trying to update our Android app to use API 34 (to comply with Google Play). Simply updating to API 34 works fine, but we get warnings telling us to upgrade the Android Gradle Plugin to support API 34, and when we do, building our Android app yields the following errors in the task compileReleaseJavaWithJavac:

    QtLoader.java:54: error: package org.kde.necessitas.ministro does not exist
    QtLoader.java:300: error: cannot find symbol private IMinistro m_service = null;

    and a dozen other Ministro related errors.

    The weird thing is that if we go to Qt/5.15.16/android/src/android/java/src/org/kde/necessitas, we do have the IMinistroCallback.aidl and IMinistro.aidl files, and they seem to have the right package name. It's like those files don't get included?

    Nothing changed in our workspace except the Android API, AGP and Gradle build. Everything else is the same.

    Any ideas?

    1 Reply Last reply
    1
    • E Offline
      E Offline
      eduardo.paz.pix4d
      wrote on last edited by eduardo.paz.pix4d
      #2

      Hello @Nihilish .

      Same issue here. We just upgraded to API 34 (GooglePlay latest requirement), and Ministro errors started popping in our build. Did you manage to find the issue? I can see that Qt6 (Qt/6.x.x/android/src/android/java/src) doesn't include Ministro at all.

      Regards.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        eduardo.paz.pix4d
        wrote on last edited by
        #3

        Hi again @Nihilish .

        I explored our older build with AGP 7.4.2 and build-tools 30.0.3 and I saw the "aidl" command was being invoked properly for the Ministro files. So, in order to meet this GooglePlay deadline for August, I copied the auto-generated java files (IMinistro.java and IMinistroCallback.java) into our project under the proper folder (org/kde/necessitas/ministro) and managed to build.

        I will try to understand later on why the build-tools 34.0.0 are not invoking the aidl files.

        I hope this helps.

        Regards.

        1 Reply Last reply
        1
        • E Offline
          E Offline
          Eskond
          wrote on last edited by
          #4

          just add
          buildFeatures.aidl = true
          to "android" section of build.gradle
          Here is what i added:
          android {
          ...
          namespace "com.myapp.namespace"
          buildFeatures.aidl = true
          ...

          1 Reply Last reply
          2

          • Login

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