BPI-M3 Kodi not working

I originally had android working. Kodi and retrox installed and working fine. Now since fresh starting kodi. kodi will not run. I’ve formatted the Emmc with ubuntu on a sd card and re burned the image but the now it won’t install kodi. Kodi won’t install on the ubuntu sd card either. Any help would be greatly appreciated