# Error building sample code

**URL:** <https://forums.kodeco.com/t/error-building-sample-code/142842>\
**Category:** Saving Data on Android\
**Created:** [June 24, 2021, 9:46am UTC](https://forums.kodeco.com/t/error-building-sample-code/142842 "2021-06-24T09:46:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick-m](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nick-m/32/105240_2.png) [@nick-m](https://forums.kodeco.com/u/nick-m)\
**Post date:** [June 24, 2021, 9:46am UTC](https://forums.kodeco.com/t/error-building-sample-code/142842/1 "2021-06-24T09:46:25Z")

</div>

Already on the first downloaded sample code (“using files”) I got a build error from Android Studio 4.2.1:

“This project uses AndroidX dependencies, but the ‘android.useAndroidX’ property is not enabled. Set this property to true in the gradle.properties file”

But there is no gradle.properties file. The solution was to create one with that name in the project root directory, and add the content:

android.useAndroidX=true

Thereafter the project builds and runs as described.
