Today, when installing APK after compiling the application with Android Studio, an error was reported, as shown below:
The APK file build\outputs\apk\OYP_2.3.4_I2Base_6476_official_debug.apk does not exist on disk.
Error while Installing APK
1 2
as shown in the figure below
2. Solutions
1. Tried build-& GT; Clean Project recompiled, still invalid
2, try to restart Android Studio invalid
Then I went to open build\outputs\apk\ directory, and found that the apk file was compiled, but the file name was exactly:
oyp_2.3.4 _i2base_6478_official_debug.apk
looks like the following:
Therefore, the APK file compiled by Android Studio is
OYP_2. 3.4 _I2Base_6478_official_debug. Apk
And it wants to install the APK filename exactly
Oyp_2.3.4 _i2base_6476_official_debug.apk
will therefore report an error. Google checked the error, on the http://stackoverflow.com website has an article about the solution of the error, the link as shown below:
http://stackoverflow.com/questions/34039834/the-apk-file-does-not-exist-on-disk
Solution:
as shown in the following figure:
Step 1: Click the Gradle button in the Android Studio sidebar, as shown below
Step 2: Refresh the Gradle configuration
Step 3: Recompile can, will not report an error.
Read More:
- Solve the problem of installing APK after Android studio compilation: error while installing apk
- com.android.ddmlib . adbcommandrejectedexception: device offline error while installing APK solution
- com.android.ddmlib.AdbCommandRejectedException: device offline Error while Installing APK (How to Fix)
- Re installing Android studio always fails to install SDK when installing software (solution)
- Android Studio: Solve the INSTALL_FAILED_INVALID_APK error
- Problems encountered by Android Studio: Session’app’: Error Installing APKs
- Detailed steps for installing Visual Studio 2010 + Intel parallel studio Xe 2013 and configuring mpich2
- Get the startup activity of Android apk
- View the error report after Android APK confusion
- When using ionic to build Android APK, Cordova error is reported: requirements check failed for JDK 1.8 or greater
- Summary of problems encountered in compiling and installing vtk7 + vs2013 / 2015 + cmake
- [Unity] Solve the problem of IOException: Failed to Copy… in Unity packaging apk
- Prompt “namespace ‘app’ not bound” when compiling Android studio
- Methods of compiling and installing ffmpeg and libx264 in Linux
- The solution that ioni cannot use HTTP request after packaging apk
- Commandinvocationfailure: failed to build APK problem record
- Unity – error reporting encountered in APK package
- Failure [DELETE_ FAILED_ INTERNAL_ After [error], RM APK is unloaded
- Unknown failure (at android.os.Binder.execTransact(Binder.java:565))Error while Installing APKs
- Installation of APK: install_ PARSE_ FAILED_ INCONSISTENT_ CERTIFICATES