1. Error description
Today, after compiling the app with Android Studio and installing the APK, the error is as follows:
file build\outputs\apk\OYP_2.3.4doesnotonwhile Installing APK
As shown
2. Solution
1. Try the build-and-clean project again to compile, or invalid
2. Invalid attempt to restart Android studio
Then I went to open the Build\outputs\apk\ directory and found that the APK file was compiled, but the file name does:
oyp_2.3.4_i2base_6478_official_debug.apk
As shown in the following:
So the reason is that after Android Studio is compiled, the APK file is
oyp_2.3.4_i2base_6478_official_debug.apk
And it's going to install APK file name really
oyp_2.3.4_i2base_6476_official_debug.apk
So it will be an error. Google checked the error, there is a resolution on the Http://stackoverflow.com website on this error, the link is as follows:
Http://stackoverflow.com/questions/34039834/the-apk-file-does-not-exist-on-disk
Workaround:
As shown in the following:
Step one: Click the Gradle button on the Android Studio sidebar, as shown below
Step Two: Refresh the configuration of the next Gradle
Step three: Recompile, no more error.
Ouyangpeng welcome reprint, sharing with people is the source of progress!
Reprint please keep the original address: Http://blog.csdn.net/ouyang_peng
My Android Advanced tour------> fix Android Studio post-build apk error: The APK file does not exist on disk