Android Studio - local path doesn't exist

在部署官方给的demo时出现local path doesn't exist,详细错误信息如下:

Waiting for device.

Target device: 0146B0020E010020

Uploading file

local path: /home/martin/workspace/git/projectname/projectname/project/build/classes/debug/AppName.apk
remote path: /data/local/tmp/com.xxx.xxx.android.projectname

 Local path doesn't exist.

从错误信息里发现local path跟gradle build后的路径不相符,gradle build打包后的文件为build/apk/projectname-debug-unaligned.apk。

重启studio问题依然存在,通过Google找到了解决方案,只需File > Invalidate Caches/Restart清除缓存,问题完美解决。


你可能感兴趣的:(android,local,Path,exist,Studio,doesn't)