Android buidl failed: have not accepted the license agreements

Better yet (IMHO) download NDK r14b separately in the first place, appoint UE to it (in Project Settings->Platforms->Android SDK) and downgrade your SDK below 25.2.X (you probably have 26.X.X) to avoid further problems.