How To Add Dependency On androidx.exifinterface.media.ExifInterface
-
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.
-
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.
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.
-
K KenAppleby 0 has marked this topic as solved