grpc / grpc/grpc-java

Android lint error when upgrade to Android plugin 4.x

Open
#8,799 3 comments 0 reactions 0 assignees View on GitHub
android
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

Trying to upgrade Android plugin to 4.x as described in https://github.com/grpc/grpc-java/issues/8421#issue-973899271 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]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.