- Home /
Gradle error Corrupts apk
link textHello,
Im merging my project with microsoft maps . I am updating my mainTemplate.grande and launcherTemplate.gradle following microsoft sugestion but my issue comes when using another gradle version. Currently in my project i was using
classpath 'com.android.tools.build:gradle:2.1.0
but in the microsoft gradles it says "Must be Android Gradle Plugin 3.6.0 or later"
I have tried building using te 3.6.0 version and the 4.2.0, both generate the apk but when installing to the android device I get the error:
CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
C:\Users\path\AppData\Local\Android\sdk\platform-tools\adb.exe -s "3b3a5a2b" install -r -d "C:\Users\path\Desktop\path\sample.apk"
stderr[
adb: failed to install C:\Users\path\Desktop\path\b.apk: Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl253101094.tmp/base.apk: Corrupt XML binary file]
And when copying the apk manually to the device and try to install it it also returns an error
Your answer
![](https://koobas.hobune.stream/wayback/20220613034531im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Building for android freezes unity editor 2 Answers
Android build failed error 1 Answer
CommandInvokationFailure: Gradle build failed. 1 Answer
I have a build problem android. 0 Answers
Android Build and Run Error 1 Answer