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
3
Question by peterpunk · Jul 15, 2016 at 07:25 AM · androidapkinstall

Multiple APK for Android from same project, only one at a time installs

I have a project with multiple scenes and I generate a different APK from each scene, say APK1 and APK2. When I go to install the APKs on an Android device ( I tried several) only one suck APK gets installed. So if I have installed APK1, in order to install APK2 I need to first uninstall APK1, otherwise I get the error "Application not installed".

Seemed likely it was a naming / bundle problem, but I have that each APK has

  • unique Product Name

  • unique Bundle Identifier

  • unique file name

and still there is some conflict. I also have "Automatic" on Install location.

Thanks.

Comment
Add comment · Show 5
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 ahaykal · Jul 15, 2016 at 08:02 AM 0
Share

$$anonymous$$ay I ask why you want each scene on an apk? Why not add/remove the scene you want from the build settings?

avatar image peterpunk ahaykal · Jul 15, 2016 at 08:35 AM 0
Share

That is exactly what I am doing :-) But the resulting builds do not install together on the same device :-(

avatar image ouzari · Jan 29, 2018 at 11:57 AM 0
Share

I know I am late, but did you found the solution please

avatar image peterpunk ouzari · Jan 29, 2018 at 12:02 PM 0
Share

I don't think I did. Not using that config any more, sorry. Could be I solved it generating and using distinct certificates.

avatar image ouzari peterpunk · Jan 29, 2018 at 07:24 PM 0
Share

Thank you for your reply.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by JayGarxP · Oct 25, 2018 at 09:54 PM

Easiest way is to change the Identification settings:

In Top Menu: (Edit > Project Settings > Player), change Product Name field (App icon title) and then

under Other Settings > Identification >

Change all ID strings to be unique from past builds Package Name Version +0.1 for major changes, +0.0.1 for minor


Next, do not hit Build and Run just yet, Go into build settings and hit build and save the .apk file into a folder called 'Builds' (create it if it doesn't exist), on some versions of Unity if you don't put builds in their own folder the .apk s may overwrite each other automatically.

Now you can hit Build and Run and the apk will be installed to the android phone as a separate app, useful for building out specific scenes you want to test. Or show someone how the level/game has been improved.

.

Also, don't forget to use the Unity Remote App so you can test levels without having to build an entire .apk passed through and installed on USB, and to expose magic numbers as public properties so that they can be tweaked during runtime.

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 KYD_ · Feb 26, 2020 at 08:48 AM 0
Share

I tried following this but it doesn't work. Still, the phone sees the two apks the same. Help me please :(

avatar image
0

Answer by Denscrivent · Dec 20, 2016 at 03:37 AM

I Create a project and I duplicate it. On the duplicated ones, I change all the IDs needed (bundle id, plugin IDs, etc) and I use another keystore. However, I'm having the same problem.

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

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

83 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 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

Unity apk installing 2 icons 2 Answers

.apk installation on Android / no Google Play option 1 Answer

Android APK deletes save game files on new install 1 Answer

How do you Create an Installer App? 0 Answers

Android / Split apk / obb can't load a scene 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