Error while running App on Android Studio 2.3

Asked

Viewed 793 times

0

When I run (both in Android emulator on PC and smartphone) the App returns the following error:

<p>Installation failed with message Invalid File: C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_8.apk.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.<p>
WARNING: Uninstalling will remove the application data!<p>
Do you want to uninstall the existing application?**<p><p>
Na aba Run, fica da seguinte forma:<p>
**03/20 16:34:46: Launching app
$ adb install-multiple -r C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_8.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\dep\dependencies.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_3.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_2.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_1.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_0.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_5.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_4.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_9.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_6.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\intermediates\split-apk\debug\slices\slice_7.apk C:\Users\Rubinho\AndroidStudioProjects\Let&amp;amp;amp;amp;apos;sFriend2\app\build\outputs\apk\app-debug.apk 
$ adb shell pm uninstall com.example.rubinho.letsfriend
Unknown failure (at android.os.Binder.execTransact(Binder.java:565))
Error while Installing APKs
  • Uninstall the current application (emulator/device) and run again.

  • No current application installed

  • I’m having the same problem with some apps

  • Rubinho, I don’t know with Voce, but to get around the error, I managed in 2 ways... apparently there was a cache missing in the memory of the emulator, the first option I did was to import the project to another project with a different name, and the other was to create a new emulator... tablet and other related works perfectly

  • Try to rebuild.

1 answer

1

the solution for me was as follows:

  • I deleted all apks files from the following folder "Your project" app build Intermediates split-apk debug Slices

  • I opened the tab "Gradle Projects" and clicked on "refresh External project"

  • Finally I selected the option "Build" and "Rebuild Project"

I can’t tell you if it was the right one but it worked for me, I hope it helps.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.