解决Android Studio编译后安装apk报错:The APK file does not exist on disk

1、错误描述
今天用Android Studio编译应用后安装APK的时候,报错了,错误如下所示:

The APK file /Users/wangwei/MTDP/KmmApp/android-kmm/app/build/outputs/apk/kmm_official_debug_v1.7.0.apk does not exist on disk. Error while Installing APK

1、尝试了Build -> Clean Project再编译,还是无效
2、尝试重启Android Studio无效

解决方法

第一步:点击Android Studio侧边栏的Gradle按钮,如下所示
解决Android Studio编译后安装apk报错:The APK file does not exist on disk_第1张图片
第二步:刷新下Gradle的配置
解决Android Studio编译后安装apk报错:The APK file does not exist on disk_第2张图片

第三步:重新编译即可,不会再报错

你可能感兴趣的:(解决Android Studio编译后安装apk报错:The APK file does not exist on disk)