Skip to content

API 37.1 JAR missing various APIs #100

Description

@zacharee

Library version: 35.0
OS version: Android 17 (37.1)
Device model: Arm64 Emulator

Describe the bug
Building a jar with ./cli/hiddenjar build --api 37.1 --install while a 37.1 emulator is booted successfully builds and installs android.jar to the SDK folder. However, hidden APIs aren't actually present/accessible, and even normal APIs show errors like:

Cannot access 'android.graphics.drawable.Drawable$Callback' which is a supertype of 'AbstractComposeView'. Check your module classpath for missing or conflicting dependencies.

Trying to compile anyway throws errors about not being able to find or override hidden APIs.

To Reproduce

  1. Build and install android.jar on API 37.1.
  2. Sync Gradle/Invalidate caches.
  3. Try to compile a project that uses hidden APIs (e.g., https://github.com/zacharee/LockscreenWidgets).
  4. Compilation will fail on hidden APIs and access errors will show on normal APIs in the editor.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions