You physically changed the location of the files you created on your PC, meaning when you try to run the same program from your Android device without making necessary changes to the code, you are certainly bound to bump into errors with the program. For this, I would recommend you create your project using GitHub, that way you can also access your account via your phone and PC, and hence you can pull and push your projects using different devices, so long as you are logged into your account, with ease