Packaging Error 'Unable to find target 'UE4Game'

i had the same problem and simply restarting my pc fixed it. I hadn’t restarted my pc after instaling all android related stuff (sdk jdk etc.), and it seems that was why this problem occured for me.