Skip to content

Frameworks Jar takes priority over Android SDK #6817

Description

@validcube

Describe the bug

I'm not sure if it even possible to fix this issues but I'll post it here anyway.

No matter which SDK Target you choose you can never use the function from that Android SDK version as Frameworks 16 takes priority over it.

Steps to reproduce

Codebase specific environment:

  1. Try using TextClassifier.TYPE_SMS_RETRIEVER_OTP (SDK 36.1) or launch Intent.ACTION_OPEN_EYE_DROPPER (SDK 37.0)
  2. Build Lawnchair
  3. Observe failure to locate those functions anywhere even though your IDE (Intellij based) may say that it exists.

Expected behavior

Lawnchair should merge Frameworks 16 and Android SDK together with Frameworks 16 taking over priority above Android SDK (to preserve Lawnchair Compatlib, Quickstep, SystemUI, WMShell compatibility)

Screenshots

No response

Device information

Codebase environment:

  • OS: Windows 11
  • IDE: Android Studio Quail 2 Canary 4

App version

N/A

Codebase metadata:

  • Affected: Inclusive all (when?)

Additional context

Workaround:

  • Use literal strings, int, float, whatever for constant or reflection for function, or whatever is cleaner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstatus: reviewedIssues reviewed by the team, pending developer action.

    Type

    Projects

    Status
    No status
    Status
    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions