# Installing android sdk on custom project

**URL:** <https://community.firebasestudio.dev/t/installing-android-sdk-on-custom-project/9474>\
**Category:** General\
**Created:** [February 20, 2025, 1:23pm UTC](https://community.firebasestudio.dev/t/installing-android-sdk-on-custom-project/9474 "2025-02-20T13:23:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![S\_SK](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/s_sk/32/3968_2.png) [@S\_SK](https://community.firebasestudio.dev/u/S_SK)\
**Post date:** [February 20, 2025, 1:23pm UTC](https://community.firebasestudio.dev/t/installing-android-sdk-on-custom-project/9474/1 "2025-02-20T13:23:46Z")

</div>

1. License Acceptance: The build process is failing because the Android SDK license has not been accepted. This is a requirement for using the Android SDK in your development environment.
2. Error Location: The error occurs while evaluating the ‘packages’ attribute in your Nix configuration, specifically when trying to include the Android SDK.

```auto
   January 16, 2019

   You must accept the following licenses:
     - android-sdk-license

   a)
     by setting nixpkgs config option 'android_sdk.accept_license = true;'.
   b)
     by an environment variable for a single invocation of the nix tools.
       $ export NIXPKGS_ACCEPT_ANDROID_SDK_LICENSE=1

```

while building i get this error  
i believe i will have to accept the licenses while building itself but no use
