Hi again,
I was finally able to build, I had to keep APPLICATION_ID, add the
import BuildConfig in the java code, and add in build.gradle
buildFeatures {
buildConfig = true
}
Plus I had to add in our Java code some "PendingIntent.FLAG_IMMUTABLE"
which are now required.
Thanks again
--Philippe
Le 24-08-2024 16:40, maitai a écrit :
Thanks Assan,
I am not far I think, after a bit of struggling.
I have now an error with BuildConfig.APPLICATION_ID that we use in one
of our Java programs. I have read that APPLICATION_ID is deprecated in
Gradle and replaced with LIBRARY_PACKAGE_NAME but when I use this I
still get the same build error
error: cannot find symbol
uri = FileProvider.getUriForFile(m_instance,
BuildConfig.LIBRARY_PACKAGE_NAME + ".provider", file);
^
symbol: variable BuildConfig
Any idea ?
Regards,
Philippe
Le 24-08-2024 10:44, Assam Boudjelthia a écrit :
Hi,
You need to update both Gradle and Android Gradle Plugin (AGP), the one
you updated is AGP only.
Check this patch https://codereview.qt-project.org/c/qt/qtbase/+/584906
that shows how to update both
and QTBUG-127871 for more hints on Gradle update for 5.15.
Best regards,
Assam
On Aug 24, 2024, at 11:32 AM, maitai <mai...@virtual-winds.org> wrote:
Hi,
We have recently upgraded our Android build to use and target SDK34
(required by Google by August, 31).
All is fine but I have some weird messages during the build concerning
Gradle:
WARNING:We recommend using a newer Android Gradle plugin to use
compileSdk = 34
This Android Gradle plugin (7.0.2) was tested up to compileSdk = 31
This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=34 to this project's
gradle.properties
The build will continue, but you are strongly encouraged to update your
project to use a newer Android Gradle Plugin that has been tested with
compileSdk = 34
I have tried to update Gradle to latest (I think) 8.5.2, it downloads
it but then gives errors like "Minimum supported Gradle version is 8.7"
and trying to update to 8.7 does not work probably because 8.7 is still
in beta as I understand.
Should I stay in 7.0.2 and live with these errors messages, or is there
a way to update Gradle ?
We are using Qt5.15.17
Thanks,
Philippe Lelong
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest