# Android build fails with App Flow

**URL:** <https://forum.ionicframework.com/t/android-build-fails-with-app-flow/201160>\
**Category:** Appflow\
**Created:** [December 12, 2020, 9:58am UTC](https://forum.ionicframework.com/t/android-build-fails-with-app-flow/201160 "2020-12-12T09:58:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sportsnow](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sportsnow](https://forum.ionicframework.com/u/sportsnow)\
**Post date:** [December 12, 2020, 9:58am UTC](https://forum.ionicframework.com/t/android-build-fails-with-app-flow/201160/1 "2020-12-12T09:58:17Z")

</div>

Dear community,

our Android build fails with App Flow. Does anyone know how to solve the problem? Thanks for any hints.

ionic Framework v5  
Platform: Android  
Build stack: 2020.11

| Cordova CLI | 10.0.0 |
| --- | --- |
| Ionic CLI | 6.12.1 |
| Node.js | 14.15.0 |
| npm | 6.14.8 |
| Yarn | 1.22.5 |
| Debian | 9.12 |
| Gradle | 4.3.1 |
| OpenJDK | 1.8.0\_265 |

Build type: Debug

Logs:  
[18:36:43]: Building android…  
[18:36:43]: ▸ Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain  
±---------------------------±----------------------+  
| Lane Context |  
±---------------------------±----------------------+  
| DEFAULT\_PLATFORM | ios |  
| PLATFORM\_NAME | android |  
| LANE\_NAME | android package\_build |  
| PROJECT\_WEB\_DIR | www |  
| DOWNLOAD\_CREDENTIAL\_EXISTS | false |  
| GRADLE\_BUILD\_TYPE | Debug |  
±---------------------------±----------------------+  
[18:36:43]: Shell command exited with exit status 1 instead of 0.  
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain

/usr/local/bundle/bin/fastlane: [!] Shell command exited with exit status 1 instead of 0. (FastlaneCore::Interface::FastlaneShellError)

---

<div class="post-metadata">

**Author:** ![KarimNeutron](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/karimneutron/32/136371_2.png) [@KarimNeutron](https://forum.ionicframework.com/u/KarimNeutron)\
**Post date:** [February 16, 2021, 3:54pm UTC](https://forum.ionicframework.com/t/android-build-fails-with-app-flow/201160/2 "2021-02-16T15:54:53Z")

</div>

the same happens to me!!

did you solve it? can you tell how?

🤔 nobody answers.

---

<div class="post-metadata">

**Author:** ![sportsnow](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@sportsnow](https://forum.ionicframework.com/u/sportsnow)\
**Post date:** [February 17, 2021, 6:40am UTC](https://forum.ionicframework.com/t/android-build-fails-with-app-flow/201160/3 "2021-02-17T06:40:20Z")

</div>

We solved it by adding the folder android/gradle/wrapper/ to the repository. I hope that helps.
