# How can i remove the metadata file in apk?

**URL:** <https://discuss.kotlinlang.org/t/how-can-i-remove-the-metadata-file-in-apk/18053>\
**Category:** Android\
**Created:** [June 12, 2020, 3:28am UTC](https://discuss.kotlinlang.org/t/how-can-i-remove-the-metadata-file-in-apk/18053 "2020-06-12T03:28:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shenjinshitang](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@shenjinshitang](https://discuss.kotlinlang.org/u/shenjinshitang)\
**Post date:** [June 12, 2020, 3:28am UTC](https://discuss.kotlinlang.org/t/how-can-i-remove-the-metadata-file-in-apk/18053/1 "2020-06-12T03:28:45Z")

</div>

hi, I found that when I use kotlin in my project, the apk size will increase 100k, cause it will contain the kotlin metadata files. what is this use for, can I remove it from apk? thx~

---

<div class="post-metadata">

**Author:** ![Alexey.Belkov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/alexey.belkov/32/5215_2.png) [@Alexey.Belkov](https://discuss.kotlinlang.org/u/Alexey.Belkov)\
**Post date:** [June 16, 2020, 10:28am UTC](https://discuss.kotlinlang.org/t/how-can-i-remove-the-metadata-file-in-apk/18053/2 "2020-06-16T10:28:43Z")

</div>

See [https://youtrack.jetbrains.com/issue/KT-9770](https://youtrack.jetbrains.com/issue/KT-9770) for discussion.

This should help:

> Add this to the `android` block in your app module `build.gradle` file:

```auto
packagingOptions.exclude '**/*.kotlin_*'

```
