# Get Started # Requirements > 🚧 Minimum requirements on SleepTrack SDK for Android > > * Android 7.0 (API level 24) or higher > * Java 1.8 or higher > * Android Gradle plugin 8.0 or higher ## API Key * The API key is required to use the Asleep Track SDK. * For how to issue an API key, see this link \[[Generate API key](dashboard-generate-api-key)] # Getting Ready ## Install SleepTrack SDK and Settings 1. Create a project using Android Studio. 2. Open the AndroidManifest.xml file to add permissions. ```xml AndroidManifest.xml ... ``` 3. Open the app-level build.gradle file and add lifecycle-service, okhttp, gson, and asleepsdk. ```groovy build.gradle.kts dependencies { ... implementation("androidx.lifecycle:lifecycle-service:2.8.7") implementation("com.squareup.okhttp3:okhttp:4.11.0") implementation("com.google.code.gson:gson:2.10") implementation("ai.asleep:asleepsdk:3.1.5") } ``` ```Text build.gradle dependencies { ... implementation 'androidx.lifecycle:lifecycle-service:2.8.7' implementation 'com.squareup.okhttp3:okhttp:4.11.0' implementation 'com.google.code.gson:gson:2.10' implementation 'ai.asleep:asleepsdk:3.1.0' } ``` # Sleep Tracking with SleepTrack SDK ## Permission Acquisition * Acquire the required permissions: RECORD\_AUDIO and POST\_NOTIFICATIONS (for Android 13 and above). ```kotlin Kotlin class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ... ActivityCompat.requestPermissions( this@MainActivity, arrayOf(android.Manifest.permission.RECORD_AUDIO, android.Manifest.permission.POST_NOTIFICATIONS), 0) ... } ``` ## UI * Create buttons for Init, Begin, End, and Report to be displayed on the screen.
```xml