Skip to content

The Android project should be updated from AGP 7.4.2 #1883

@hanis0

Description

@hanis0

Description

Warnings

AGP update recommended

There is this new Android Gradle Plugin (AGP) warning present since the recent upgrade to support Android SDK 34 (#1856, #1880).

We recommend using a newer Android Gradle plugin to use compileSdk = 34

This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33

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

Screenshot 2024-01-27 at 7 02 12

Deprecated attribute in AndroidManifest.xml

And there's also one older yet related warning thrown by the manifest processing task.

package="com.smartdevicelink" found in source AndroidManifest.xml:…/sdl_java_suite/android/sdl_android/src/main/AndroidManifest.xml.
Setting the namespace via a source AndroidManifest.xml's package attribute is deprecated.
Please instead set the namespace (or testNamespace) in the module's build.gradle file, as described here: https://developer.android.com/studio/build/configure-app-module#set-namespace
This migration can be done automatically using the AGP Upgrade Assistant, please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

Screenshot 2024-01-27 at 7 28 23

Impact

Users of the sdl_android module who link the module source code are affected by the deprecated attribute in AndroidManifest.xml warning and because of that they cannot upgrade their project's AGP to 8+ versions without any custom modifications to the sdl_android module's source code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    best practiceNot a defect but something that should be improved anyway

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions