Android lint error when upgrade to Android plugin 4.x
- Langage dominant
- Java
- Étoiles
- 12.1k
- Forks
- 4k
- Merge moyen
- 2 j 17 h
- PR mergées (30 j)
- 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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par android-interop-testing/src/main/AndroidManifest.xml et l’échec de lint concernant HostServices$HostService1 et HostServices$HostService2. Exécutez la tâche de lint Android après avoir examiné le contexte de la mise à niveau vers Android plugin 4.x dans l’issue liée. C’est terminé lorsque les références du manifeste sont résolues et que la tâche de lint se termine sans erreurs MissingClass.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- android, java
- Domaine
- build-system, mobile
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100