Skip to content

Android lint error when upgrade to Android plugin 4.x #8799

Open
@dapengzhang0

Description

@dapengzhang0

Trying to upgrade Android plugin to 4.x as described in #8421 (comment) with some minor workarounds, the build failed with a lint error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':grpc-android-interop-testing:lint'.
> Lint found errors in the project; aborting build.
  
  Fix the issues identified by lint, or add the following to your build script to proceed with errors:
  ...
  android {
      lintOptions {
          abortOnError false
      }
  }
  ...
  Errors found:
  
  /Users/zdapeng/git/grpc-java/android-interop-testing/src/main/AndroidManifest.xml:23: Error: Class referenced in the manifest, io.grpc.binder.HostServices$HostService1, was not found in the project or the libraries [MissingClass]
          <service android:name="io.grpc.binder.HostServices$HostService1"/>
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  /Users/zdapeng/git/grpc-java/android-interop-testing/src/main/AndroidManifest.xml:24: Error: Class referenced in the manifest, io.grpc.binder.HostServices$HostService2, was not found in the project or the libraries [MissingClass]
          <service android:name="io.grpc.binder.HostServices$HostService2"/>
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions