- Home /
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
Answer by jareds · Jul 17, 2015 at 10:22 PM
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.
Your answer
Follow this Question
Related Questions
unity to android 1 Answer
Disable permission requests 0 Answers
Weird Permissions When Building Android APK 1 Answer
Android build error aapt.exe after latest SDK updates today 0 Answers
Not able to export to android due to joint collision? 0 Answers