ImportDepsChecker fails when using aar_import

Offen
#332 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 6 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
android, java

Rechercherichtung

Beginne mit der manuell erstellten BUILD-Datei für das eingecheckte androidx.test.monitor:1.6.1-Artefakt und dem Ziel //prebuilts/tools/common/m2:androidx-monitor. Reproduziere dann den Fehler mit aar_import. Vergleiche die vom Artefakt referenzierten APIs mit dem Android-Bootclasspath und ermittle, welche Änderung dafür sorgt, dass ImportDepsChecker das Ziel ohne fehlende Member vollständig verarbeitet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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?

Vorherrschende Sprache
Java
Sterne
205
Forks
113
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus bazelbuild/rules_android

Alle Issues in bazelbuild/rules_android

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.