Android Studio is not loading on the device, local path doesn't exist

前端 未结 8 1726
余生分开走
余生分开走 2020-12-08 17:20

I recently attempted to migrate my Eclipse project over to Android Studio. All went well until I attempted to run the project and an error came up:

Uploading         


        
8条回答
  •  無奈伤痛
    2020-12-08 17:42

    I just ran into this problem, even without transferring from Eclipse, and was frustrated because I kept showing no compile or packageDebug errors. Somehow it all fixes itself if you clean and THEN run packageDebug.

    Open up a commandline, and in your project's root directory, run:

    ./gradlew clean packageDebug
    

    Obviously, if either of these steps shows errors, you should fix those...But when they both succeed you should be able to find the apk when you navigate the local path -- and even better, your program should install/run on the device/emulator!

提交回复
热议问题