Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
liutikas opened this issue Mar 10, 2020 · 3 comments

Comments

@liutikas
Copy link

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

@brettchabot
Copy link
Collaborator

Fixed. Targeting release in 1.3.0-rc01

@blundell
Copy link

blundell commented Dec 7, 2020

@brettchabot where is a link to the fix pls?

@brettchabot
Copy link
Collaborator

3970707 is the main fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants