add gradle files
fixed resource allocation bug (too many media players)