# 4.18 can't launch on the device when gradle is enabled instead of Ant!?

**URL:** <https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745>\
**Category:** Mobile\
**Tags:** UE4-18, Mobile, gradle, unreal-engine, Android, question\
**Created:** [November 4, 2017, 4:13pm UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745 "2017-11-04T16:13:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moazahmed123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Moazahmed123](https://forums.unrealengine.com/u/Moazahmed123)\
**Post date:** [November 4, 2017, 4:13pm UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/1 "2017-11-04T16:13:01Z")

</div>

i can’t launch on the mobile using gradle instead of Ant here is apic of the log

 ![219124-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/6/4e6f25e84b165450bc764d4c8dc60d628fd4d39e.jpeg)

i can launch it if i disabled gradle

i have accept the sdk license

 ![219125-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/e/36e3f0bbf19997ba12a3640f8fa74654da39d223.jpeg)

just one question is it necessary to fill this configSdk page in 4.18 in order to launch it?

 ![219126-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/d/38db2de14a35a69c29a47f7403836bd024cbedb4.jpeg)

sorry for my bad english.

---

<div class="post-metadata">

**Author:** ![EatVege-tarians](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EatVege-tarians](https://forums.unrealengine.com/u/EatVege-tarians)\
**Post date:** [November 9, 2017, 6:32am UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/2 "2017-11-09T06:32:19Z")

</div>

Same problem here. Ant works fine, gradle dont ☹

---

<div class="post-metadata">

**Author:** ![SUMA01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SUMA01](https://forums.unrealengine.com/u/SUMA01)\
**Post date:** [November 9, 2017, 9:30am UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/3 "2017-11-09T09:30:48Z")

</div>

Try after Update Android SDK by using “NVPACK\android-sdk-windows\tools\android.bat”

---

<div class="post-metadata">

**Author:** ![Bartosz\_Kamol\_Kaminski](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bartosz_kamol_kaminski/32/1047558_2.png) [@Bartosz\_Kamol\_Kaminski](https://forums.unrealengine.com/u/Bartosz_Kamol_Kaminski)\
**Post date:** [November 27, 2017, 10:18pm UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/4 "2017-11-27T22:18:01Z")

</div>

Same here. I can make working build in 4.17

---

<div class="post-metadata">

**Author:** ![Carlo\_Gioventu](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/carlo_gioventu/32/1008006_2.png) [@Carlo\_Gioventu](https://forums.unrealengine.com/u/Carlo_Gioventu)\
**Post date:** [November 28, 2017, 2:40pm UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/5 "2017-11-28T14:40:50Z")

</div>

got the same problem, open the license file in android sdk with notepad, it should have only a key like this 8933bad161af4178b1185d1a37fbf41ea5269c55, but when you accept the sdk license it puts a white line before and have error.

just remove the white line , hope this helps

---

<div class="post-metadata">

**Author:** ![Moazahmed123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Moazahmed123](https://forums.unrealengine.com/u/Moazahmed123)\
**Post date:** [November 28, 2017, 3:05pm UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/6 "2017-11-28T15:05:46Z")

</div>

i’v tried this but still dosn’t work.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebb22d8c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebb22d8c](https://forums.unrealengine.com/u/anonymous_user_ebb22d8c)\
**Post date:** [November 28, 2017, 3:11pm UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/7 "2017-11-28T15:11:54Z")

</div>

dixfn7m has an answer that worked for me:

> **[Accept the license agreements](https://forums.unrealengine.com/questions/718698/accept-the-license-agreements.html)**
>
> I already accept the lisance agreements in the project settings-android tab in the accept button event its not clickable again but in the build i get this error: FAILURE: Build failed with an exception. UATHelper: Packaging (Android (ATC)): \* What...

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ebb22d8c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ebb22d8c](https://forums.unrealengine.com/u/anonymous_user_ebb22d8c)\
**Post date:** [November 28, 2017, 3:13pm UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/8 "2017-11-28T15:13:24Z")

</div>

I tried that but it only worked while using ANT. When switching back to Gradle it stopped working.

dixfn7m has an answer that worked for me:

> **[Accept the license agreements](https://forums.unrealengine.com/questions/718698/accept-the-license-agreements.html)**
>
> I already accept the lisance agreements in the project settings-android tab in the accept button event its not clickable again but in the build i get this error: FAILURE: Build failed with an exception. UATHelper: Packaging (Android (ATC)): \* What...

---

<div class="post-metadata">

**Author:** ![Moazahmed123](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Moazahmed123](https://forums.unrealengine.com/u/Moazahmed123)\
**Post date:** [November 28, 2017, 11:23pm UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/9 "2017-11-28T23:23:05Z")

</div>

it finally worked!!! thank.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ac41f7b1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ac41f7b1](https://forums.unrealengine.com/u/anonymous_user_ac41f7b1)\
**Post date:** [December 13, 2018, 7:14am UTC](https://forums.unrealengine.com/t/4-18-cant-launch-on-the-device-when-gradle-is-enabled-instead-of-ant/408745/10 "2018-12-13T07:14:47Z")

</div>

@SUMA01, it worked, thank you!
