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
- Build and install
android.jar on API 37.1.
- Sync Gradle/Invalidate caches.
- Try to compile a project that uses hidden APIs (e.g., https://github.com/zacharee/LockscreenWidgets).
- Compilation will fail on hidden APIs and access errors will show on normal APIs in the editor.
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 --installwhile a 37.1 emulator is booted successfully builds and installsandroid.jarto the SDK folder. However, hidden APIs aren't actually present/accessible, and even normal APIs show errors like:Trying to compile anyway throws errors about not being able to find or override hidden APIs.
To Reproduce
android.jaron API 37.1.