Error running App in Android Studio 2.3

0

When I run (both on the Android emulator on the PC and on the 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
    
asked by anonymous 20.03.2017 / 20:39

1 answer

1

The solution for me was this:

  • I deleted all the apks files from the following folder: "YourProject" \ app \ build \ intermediates \ split-apk \ debug \ slices

  • Gradle projects and refresh external project
  • I finally selected the Build and Rebuild Project

I do not know if it was the right one but it worked for me, I hope it helps.

    
19.03.2018 / 17:07