How to Install android-headers-22 in Ubuntu 18.04

Install android-headers-22 by entering the following commands in the terminal:

sudo apt update
sudo apt install android-headers-22


Android Platform Headers from AOSP releases

Android NDK provided by Google contains subset of AOSP platform headers which are deemed "external interface" by Google. However, writing advanced software for Android necessitates access to complete platform. Many aspects of it change, sometimes drastically, between releases, so compiling user source code against platform headers for different releases is required (e.g. for libhybris). . This package provides the platform development headers for core components of AOSP (Android Open Source Project), for the 5.1 release

Version: 23-0ubuntu4

Section: universe/libdevel