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 Add Dependency On androidx.exifinterface.media.ExifInterface
Forum Updated to NodeBB v4.3 + New Features

How To Add Dependency On androidx.exifinterface.media.ExifInterface

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 133 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.
  • KenAppleby 0K Offline
    KenAppleby 0K Offline
    KenAppleby 0
    wrote last edited by
    #1

    I want to make use of androidx.exifinterface.media.ExifInterface in my app, but I am not sure how to tell the build to include that dependency. The Android documentation says the dependency should be declared thus:

    dependencies {
        implementation "androidx.exifinterface:exifinterface:1.4.1"
    }
    

    in the build.gradle file. The android/build.gradle file is generated by the build so it doesn't seem right to add the dependency there. It works, the java finds the package, but I fear this custom edit to the generated build.gradle will be overwritten.
    I have tried putting it in android/app/build.gradle but that gets ignored.

    How is this supposed done, please?

    I'm using QtCreator 16.0.2 and Qt 6.8.3.

    KenAppleby 0K 1 Reply Last reply
    0
    • KenAppleby 0K KenAppleby 0

      I want to make use of androidx.exifinterface.media.ExifInterface in my app, but I am not sure how to tell the build to include that dependency. The Android documentation says the dependency should be declared thus:

      dependencies {
          implementation "androidx.exifinterface:exifinterface:1.4.1"
      }
      

      in the build.gradle file. The android/build.gradle file is generated by the build so it doesn't seem right to add the dependency there. It works, the java finds the package, but I fear this custom edit to the generated build.gradle will be overwritten.
      I have tried putting it in android/app/build.gradle but that gets ignored.

      How is this supposed done, please?

      I'm using QtCreator 16.0.2 and Qt 6.8.3.

      KenAppleby 0K Offline
      KenAppleby 0K Offline
      KenAppleby 0
      wrote last edited by
      #2

      Putting additional dependencies directly in the android/build.gradle file is the correct way to do it, apparently.

      This will only be overwritten if you generate templates again.

      1 Reply Last reply
      0
      • KenAppleby 0K KenAppleby 0 has marked this topic as solved

      • Login

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