# I'm trying to generate an apk with ionic, but I got this error

**URL:** <https://forum.ionicframework.com/t/im-trying-to-generate-an-apk-with-ionic-but-i-got-this-error/235895>\
**Category:** Ionic Framework\
**Created:** [August 27, 2023, 6:01pm UTC](https://forum.ionicframework.com/t/im-trying-to-generate-an-apk-with-ionic-but-i-got-this-error/235895 "2023-08-27T18:01:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yashy26](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@Yashy26](https://forum.ionicframework.com/u/Yashy26)\
**Post date:** [August 27, 2023, 6:01pm UTC](https://forum.ionicframework.com/t/im-trying-to-generate-an-apk-with-ionic-but-i-got-this-error/235895/1 "2023-08-27T18:01:19Z")

</div>

Could not open settings generic class cache for settings file ‘C:\Users\x\oabapp\platforms\android\settings.gradle’ (C:\Users\x.gradle\caches\7.6\scripts\x). BUG! exception in phase ‘semantic analysis’ in source unit '\_B

I’ve installed Command line tools only and dependencies. Also, Gradle is like this [Gradle | Installation](https://gradle.org/install/). All the path variables are working fine!

 ![errorhell](https://global.discourse-cdn.com/ionicframework/original/3X/2/5/25ea827695b7afee4130ee2f765bbe3bd743eda3.png)

Additional info about versions : Gradle 8.3 Android build tools: 33.0.2 Java JDK : 20

How can I Fix this ?

---

<div class="post-metadata">

**Author:** ![techbinomial](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@techbinomial](https://forum.ionicframework.com/u/techbinomial)\
**Post date:** [August 28, 2023, 11:18am UTC](https://forum.ionicframework.com/t/im-trying-to-generate-an-apk-with-ionic-but-i-got-this-error/235895/2 "2023-08-28T11:18:44Z")

</div>

GRADLE\_HOME C:\Gradle\gradle-8.0.2

JAVA\_HOME C:\Program Files\Java\jdk-17

These two works for me with android sdk  
C:\android\build-tools\33.0.0

For signing of apk use apksigner install at  
C:\android\build-tools\33.0.0\> apksigner
