Skip to content

PackageName for AndroidTest causes check to fail #402

@tasomaniac

Description

@tasomaniac

We have custom packageName for AndroidManifest.xml for AndroidTest. Don't ask me why. :) I don't know but I'm too afraid to remove. This causes ModuleCheck to exit early

I guess it is nice to also check test dependencies but they're not as important as others. Any suggestions?

To reproduce

Add AndroidManifest.xml under /app/src/androidTest/AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.test"/>

Error

> Task :moduleCheck FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':moduleCheck'.
> ModuleCheck only supports a single base package.  The following packages are present for module `:app`:
  
  com.example.test
  com.example

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