ImportDepsChecker fails when using aar_import
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- build-system, mobile-dev
Research direction
Start with the manually created BUILD file for the checked-in androidx.test.monitor:1.6.1 artifact and the //prebuilts/tools/common/m2:androidx-monitor target, then reproduce the failure using aar_import. Compare the artifact's referenced APIs with the Android bootclasspath and determine what change makes ImportDepsChecker complete the target without missing members.
Written by the indexing model from the issue text.
Description
I'm migrating Android Studio to use rules_android, but get this obscure failure when trying to update some references requiring aar_import.
ERROR: The dependencies for the following 1 jar(s) are not complete.
1.bazel-out/k8-fastbuild/bin/prebuilts/tools/common/m2/_aar/androidx-monitor/classes_and_libs_merged.jar
The details are listed below:
Missing member 'execStartActivity' in class androidx.test.internal.runner.hidden.ExposedInstrumentationApi : name=execStartActivity, descriptor=(Landroid/content/Context;Landroid/os/IBinder;Landroid/os/IBinder;Landroid/app/Activity;Landroid/content/Intent;I)Landroid/app/Instrumentation$ActivityResult;
Missing member 'execStartActivity' in class androidx.test.internal.runner.hidden.ExposedInstrumentationApi : name=execStartActivity, descriptor=(Landroid/content/Context;Landroid/os/IBinder;Landroid/os/IBinder;Landroid/app/Activity;Landroid/content/Intent;ILandroid/os/Bundle;)Landroid/app/Instrumentation$ActivityResult;
Missing member 'execStartActivity' in class androidx.test.internal.runner.hidden.ExposedInstrumentationApi : name=execStartActivity, descriptor=(Landroid/content/Context;Landroid/os/IBinder;Landroid/os/IBinder;Landroid/app/Activity;Landroid/content/Intent;ILandroid/os/Bundle;Landroid/os/UserHandle;)Landroid/app/Instrumentation$ActivityResult;
Missing member 'execStartActivity' in class androidx.test.internal.runner.hidden.ExposedInstrumentationApi : name=execStartActivity, descriptor=(Landroid/content/Context;Landroid/os/IBinder;Landroid/os/IBinder;Landroid/app/Fragment;Landroid/content/Intent;ILandroid/os/Bundle;)Landroid/app/Instrumentation$ActivityResult;
Missing member 'execStartActivity' in class androidx.test.internal.runner.hidden.ExposedInstrumentationApi : name=execStartActivity, descriptor=(Landroid/content/Context;Landroid/os/IBinder;Landroid/os/IBinder;Ljava/lang/String;Landroid/content/Intent;ILandroid/os/Bundle;)Landroid/app/Instrumentation$ActivityResult;
The class hierarchies of the classes with missing members:
androidx.test.internal.runner.hidden.ExposedInstrumentationApi
android.app.Instrumentation (in jdk:bootclasspath_android_only)
java.lang.Object (in jdk:bootclasspath_android_only)
===Total===
missing=0
incomplete=0
missing_members=5
Target //prebuilts/tools/common/m2:androidx-monitor failed to build
The codebase has a checked-in version of the androidx.test.monitor:1.6.1 artifact, so we have the BUILD file created manually as opposed to using rules_jvm_external to handle maven dependencies.
I'm having difficulty isolating why this fails in our project. Any ideas of what to look for?
- Dominant language
- Java
- Stars
- 205
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bazelbuild/rules_android
-
build_java8_legacy_dex.sh does not set JAVA_RUNFILES for the d8/r8 launchersPossibly taken @TrapsterDK claimed this 16 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bazelbuild/rules_android#599 ·
Maintainers usually reply within 6 days
-
`Desugar` actions don't run on multiplex workersPossibly taken @lukaciko claimed this 46 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bazelbuild/rules_android#539 · 2 comments ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bazelbuild/rules_android#535 · 2 reactions ·
Maintainers usually reply within 6 days
-
desugar_globals output is not reproducible (zip entry order varies)Possibly taken @TrapsterDK claimed this 6 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
bazelbuild/rules_android#610 ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 42/100
bazelbuild/rules_android#602 ·
Maintainers usually reply within 6 days
All issues in bazelbuild/rules_android
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Lincoln-cn/JAiRouter#1473 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
exercism/java-analyzer#379 ·
-
area: ui bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
tetsuji16/microProject#1893 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
liberation-data/fornax4j#325 ·
Maintainers usually reply within 1 day
-
[Bug]: FE and Kinesis extraction pipes render flow starting at the centre and scroll the source arm backwardsPossibly taken @chonkzillaofficial claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
BCCE-team/BuildCraft#85 ·