Skip to content

x/mobile: Gomobile is not compatible with modern Android SDKs and NDKs #52470

Closed
@bemasc

Description

@bemasc

Gomobile makes a number of assumptions about the Android SDK and NDK that are no longer correct:

  • ANDROID_HOME provides the SDK location (soft-deprecated in favor of a default path)
  • Android API 15 is supported. (All supported SDKs have a minimum API version of 16 or higher)
  • There is only one possible NDK to use (false under the new "side by side" NDK system)
  • ANDROID_NDK_HOME provides the NDK location (hard-deprecated due to "side by side" NDK)
  • $ANDROID_HOME/ndk-bundle is the default NDK location (it is now $ANDROID_HOME/ndk/<version>)
  • Android binary resource packages only contain "Type" and "TypeSpec" entries (they can now contain Staged Alias Headers as well)

These assumptions seem to make Gomobile incompatible with NDK 24, and somewhat inconvenient to use with other modern SDK and NDK versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.mobileAndroid, iOS, and x/mobile

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions