Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Reverend-Speed · Oct 10, 2016 at 11:04 PM · build-errormacbuild errorconsole errorsandroid tab

Why does my Mac build to Android fail? "Unable to install apk!"

Working with a friend to build an application on her Mac. After several successful builds to the Android device, Unity has begun to fail to transfer the .apk to the tablet.

The pop-up error is "Unable to install apk!" "Installation failed. See the Console for details."

In the console, I find the following error message:

 UnityException: Unable to install APK!
 Installation failed. See the Console for details.
 UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex)
 UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message)
 UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuildPointToConsole (System.String title, System.String message)
 UnityEditor.Android.PostProcessor.Tasks.PublishPackage.UploadAndStartPlayer (UnityEditor.Android.PostProcessor.PostProcessorContext context, Boolean retryUpload)
 UnityEditor.Android.PostProcessor.Tasks.PublishPackage.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
 UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry

Please note: The tablet and Unity were working fine before this issue cropped up, and neither the tablet nor Unity have been updated over the last few days.

Does anybody know how I can fix this? Thanks in advance,

--Rev

ADDITIONALLY: Does anybody know how I can look at the tablet's memory while it's connected to the Mac (ie. with Finder)? I'd like to be able to manually remove and install .apks to the tablet.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image UsmanAbbasi · Oct 11, 2016 at 02:56 PM 0
Share

Try uninstalling the app from tablet and then run again from Unity.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by SunnyChow · Oct 11, 2016 at 02:43 AM

Did you turn on the developer mode in your tablet? Have you receive a panel in your tablet asking if it should trust the computer? Do your need extra driver for your computer to connect it (i know some phone need driver for pc)?

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Reverend-Speed · Oct 11, 2016 at 10:04 AM 0
Share

Thanks for the response Sunny!

Did you turn on the developer mode in your tablet?

Yes. As stated in the question above, we had several successful builds running on the Android tablet before we ran into this issue.

Have you receive a panel in your tablet asking if it should trust the computer?

I don't believe this message has come up on the tablet (I'll ask my friend if she encountered this), but as stated above, we've already had several successful builds transfer to the tablet and run, so trust would have been established between tablet and mac.

Do your need extra driver for your computer to connect it (i know some phone need driver for pc)?

As far as I can tell, the tablet is connecting to the computer just fine, as both the $$anonymous$$ac and Unity see the device (otherwise the .apk wouldn't build). The problem is that Unity seems to be failing to transfer the .apk, as per the error messages printed above.

I appreciate the help! Any other ideas (or a full solution!) would be much appreciated!

avatar image Bonfire-Boy Reverend-Speed · Oct 11, 2016 at 10:50 AM 0
Share

Have you tried just building the apk in Unity and then using adb to transfer and/or install? Even if it fails, it might provide more helpful feedback.

EDIT: (just noticed your "additionally"). You should find the adb command-line utility in your android sdk folders. You can use that to transfer & install, and to inspect the device's file system from the mac.

avatar image Reverend-Speed Bonfire-Boy · Oct 11, 2016 at 02:02 PM 0
Share

Erk. Okay. Not sure either of us are rated for using command-line utilities (well, I've had some experience, but not on $$anonymous$$acs). I'm helping out via Skype, so this is going to be fun. Any chance you have a reference page you could recommend to me?

$$anonymous$$any thanks, appreciate your advice...!

--Rev

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

60 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can't use System.Net.Sockets on Nintendo Switch 1 Answer

Unable to list target platforms. When I try to build to Andriod on Mac 5 Answers

Building my Game isn't consistent with playing in Unity Engine 0 Answers

Xbox controller not working on mac build 1 Answer

Unity Build Settings 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges