grpc / grpc/grpc-java

Android lint error when upgrade to Android plugin 4.x

オープン
#8,799 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
android
主要言語
Java
スター
12.1k
フォーク
4k
平均マージ
2日 17時間
マージ済み PR(30日)
37

説明

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]

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

android-interop-testing/src/main/AndroidManifest.xml と HostServices$HostService1 および HostServices$HostService2 の lint 失敗から始めます。リンクされた issue で Android plugin 4.x へのアップグレードの背景を確認してから、Android lint task を実行します。manifest の参照が解決され、lint task が MissingClass エラーなしで完了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, java
領域
build-system, mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。