Problems installing apk built from Android Studio

Hi,

I’m trying to remove a permission the READ_PHONE_STATE permission that Unity 5.1 seems to have added to my project. I have exported the Android Studio project and I’m able to build an apk that doesn’t have the READ_PHONE_STATE permission, but I can’t get that apk to actually install.

Whenever I install it says Installation failed; logcat says Installation error code: -103.

I looked this up and it seems like it might have something to do with signing the apk, but I’m not sure what I’m doing wrong. I’m using the same keystore/password combo that worked when building directly from Unity. In Android Studio I’m going to Build > Generate Signed APK and following the wizard.

Does anyone have any ideas or links on how to build the apk properly from a project exported by Unity? I haven’t been able to find much documentation on this.

Thanks,
Jared

This appears to be a misunderstanding on my part. Apparently a plugin I was using was causing the APK not to compile at all and the APK I was finding was not actually the one generated from Android Studio (some other APK Unity created when creating the folder I guess). Once I resolved the issue with the plugin I was able to get the APK to install without issue.