Skip to content

Package name warnings when using the latest Android Gradle Plugin and espresso core #573

@liutikas

Description

@liutikas

Description

Package name warnings when using the latest Android Gradle Plugin and espresso core

Steps to Reproduce

Use the latest canary of AGP 4.1
Add androidTestImplementation dependency to androidx.test.espresso:espresso-core:3.1.0

Expected Results

No warnings

Actual Results

> Task :navigation:navigation-common:processDebugAndroidTestManifest
[androidx.test.espresso:espresso-core:3.1.0] /ssd/ssd4/androidx-studio-integration/out/.gradle/caches/transforms-2/files-2.1/3734bca90decf407a15eb3c0001d71c1/espresso-core-3.1.0/AndroidManifest.xml Warning:
        Package name 'androidx.test.espresso' used in: androidx.test.espresso:espresso-core:3.1.0, androidx.test.espresso:espresso-idling-resource:3.1.0.
[androidx.test:runner:1.2.0] /ssd/ssd4/androidx-studio-integration/out/.gradle/caches/transforms-2/files-2.1/0f3a3955ebddbbb22a1a737675d26669/runner-1.2.0/AndroidManifest.xml Warning:
        Package name 'androidx.test' used in: androidx.test:runner:1.2.0, androidx.test:monitor:1.2.0.

AndroidX Test and Android OS Versions

androidx.test.espresso:espresso-core:3.1.0 and N/A

Link to a public git repo demonstrating the problem:

https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev
it can be reproduced in androidx project

This is happening because both androidx.test:runner:1.2.0, androidx.test:monitor:1.2.0 have the same package set in their AndroidManifest.xml inside the AAR

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="androidx.test" >

You can reach out to studio what that is a bad idea, but mostly collision for things like R.java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions