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
1
Question by st1991 · Jan 18, 2017 at 03:47 PM · unity 5exception

Unable to install APK

Hi

I have a project aka Game_1 which I replicated from previous project aka Game_0. I am trying to install apk of Game_1 in my device but I get error "unable to install apk". My device already contains an APK of Game_0. When I uninstall APK of Game_0, I can install Game_1 apk.

Both apk have different product name and different package names. They both are build by same keystone file. My unity version is 5.3.3 and I have also tried on 5.4.1 but same error pop ups.

I have also made sure that install location is automatic in player setting. I was continuing the same process from last 6 months and everything was going along very nicely. Now when I do the same stuff, I am getting installation error.

Can anyone tell me if there is some hidden file which makes both APK's identical for device to install ?

Error Msg is something like this

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 usedClassRegistry) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Installation failed with the following output: [ 0%] /data/local/tmp/Package.apk [ 0%] /data/local/tmp/Package.apk [ 0%] /data/local/tmp/Package.apk [ 0%] /data/local/tmp/Package.apk [ 0%] /data/local/tmp/Package.apk [ 1%] /data/local/tmp/Package.apk [ 1%] /data/local/tmp/Package.apk [ 1%] /data/local/tmp/Package.apk [ 1%] /data/local/tmp/Package.apk [ 1%] /data/local/tmp/Package.apk

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Bunny83 · Jan 18, 2017 at 04:04 PM

There has to be something still the same. Since your APK name seems to be "Package.apk" that might be the problem. The name of the APK should be equal or similar to your bundle identifier / package name.

Using the same key (from the same keystore file) should be no problem.

Have you tried to install the APK manually? Have you checked the logcat output?

Comment
Add comment · Show 1 · 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 aditya007 · Mar 08, 2017 at 11:04 AM 0
Share

Hey @Bunny83, I'm getting the exact same error like OP when i Do "Build and Run" in all of my projects (Therefore, I didn't asked separate question). However, I can install the AP$$anonymous$$ manually without any problem, But I want to do "Build and Run" because I need to look at Profiler. And, I have no idea how to check the logcat output. Even the Apk name is same as bundle identifier. Is there anything I can do to avoid this error?

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

7 People are following this question.

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

Related Questions

UNetWeaver error and Failure generating network code. 0 Answers

Parse Exception System.AggregateException 0 Answers

Can't Read CSV from Download Folder in Android Device (C# Unity) 1 Answer

MongoDB C# authentication exception 0 Answers

Why does SQLite throw InvalidOperationException in Unity 5.3? 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