# How to fix AR build failed?

**URL:** <https://forums.unrealengine.com/t/how-to-fix-ar-build-failed/449113>\
**Category:** Platform & Builds\
**Tags:** logging, path-follow, build, unreal-engine, question, compilation-log\
**Created:** [May 17, 2019, 11:05am UTC](https://forums.unrealengine.com/t/how-to-fix-ar-build-failed/449113 "2019-05-17T11:05:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_34251014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_34251014](https://forums.unrealengine.com/u/anonymous_user_34251014)\
**Post date:** [May 17, 2019, 11:05am UTC](https://forums.unrealengine.com/t/how-to-fix-ar-build-failed/449113/1 "2019-05-17T11:05:32Z")

</div>

Hello,  
I have been following the video:  
[Installing & Building to Android (AR, VR, Mobile) UE4 / Unreal Engine 4 - YouTube](https://www.youtube.com/watch?v=mTKnH_hpU0k&t=3s)  
But then (In the log output) I got this, in the end:

 ![277073-screenshot-10.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/e/79e3381e1b12f6cd2327dfd75ecef52dedaae319.png)

Please, help. What did I do wrong?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_34251014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_34251014](https://forums.unrealengine.com/u/anonymous_user_34251014)\
**Post date:** [May 17, 2019, 1:14pm UTC](https://forums.unrealengine.com/t/how-to-fix-ar-build-failed/449113/2 "2019-05-17T13:14:47Z")

</div>

I went back to Project Settings\>Platform\>Android SDK and adjusted SDK API and NDK API from “latest” to 21 and it failed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_34251014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_34251014](https://forums.unrealengine.com/u/anonymous_user_34251014)\
**Post date:** [May 17, 2019, 1:28pm UTC](https://forums.unrealengine.com/t/how-to-fix-ar-build-failed/449113/3 "2019-05-17T13:28:27Z")

</div>

So I went back to The AnswerHub and found this:

> **[Android buidl failed: have not accepted the license agreements](https://forums.unrealengine.com/questions/717441/android-buidl-failed-have-not-accepted-the-license.html)**
>
> The problem seems to be that you didnt accepted the agreements when you installed the android sdk, ndk, etc .Try reinstall them using the “CodeWorksforAndroid-1R6u1-windows.exe” file provided on the Engine\\Extras\\AndroidWorks\\Win64 route of your...

Followed the suggestion to "…disable “enable grade instead of ant” and disabled it and got this:

 ![277092-screenshot-11.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/a/1ca13b147cb07df1a407a1fea9c082898a44db3d.png)
