Reputation: 2621
I recently starting using Android Studio again and for some reason my app won't run on my mobile device.
I keep getting this error:
Waiting for device.
Target device: oneplus-a0001-d9e029e0
Uploading file
local path: C:\Users\FV\Desktop\ \Project1\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.fv4.project.oneLocal path doesn't exist.
I've synced the project with Gradle files and I have tried every solution in this popular StackOverflow post as well as solutions mentioned in some other posts. Nothing seems to work.
EDIT: Also, I watched this video here and there actually is no .apk file in the directory that the person pointed to. Maybe that's what the issue is? How do I fix that, if it is in fact the issue?
What else could I do to fix this issue?
Upvotes: 1
Views: 977
Reputation: 57
I had the same error. I rebooted the system and switched off antivirus and it helped :)
Upvotes: 0
Reputation: 2223
I can see android studio searching for the path you mentioned:
local path: C:\Users\FV\Desktop\ \Project1\app\build\outputs\apk\app-debug.apk
I noticed there's a block in the path that states:
Desktop\ \Project1
Unless that's a typo, I think that's why Android Studio fails to find the path, Android Studio warns you against using paths with spaces or special characters in them while creating your project, because it might fail to find the path, and that might cause problems like the one you are experiencing.
Please try to move your project directory to a more conventional path (C:\Project1 is the safest bet, but others can be used aswell) and see if you are still having this issue
Upvotes: 1