My Android Advanced tour------> fix Android Studio post-build apk error: The APK file does not exist on disk

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.