Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 bubfowkes · Mar 29, 2012 at 08:38 PM · androidwindowskeystorepublish

Android publishing process alias

Hello,

I have installed and done the following:

Unity3D 3.5.0 with android export license

jdk1.7.0_03 (tried both x86 and x64 versions, also tried JDK 1.6)

Apache Ant

Set up environment variables for both ANT and JAVA

Android SDK all versions possible as of current date

Linked Android SDK to Unity3D in preferences

Created a keystore with password, created an alias with password, but I did not put in an Android Market Licensing (LVL) public key. (this failed so I created another keystore, double and then triple checked the alias and keystore password, which also failed)

Set minimum API Level to 2.3.1 (test device runs 2.3.3)

Unchecked development build in Build Settings

Righty, after all the above (please forgive me if I have missed anything) I press compile and the APK does compile. I then upload .apk to webserver and then download to device, and then press install on Android Device 2.3.3. When I select a sign off alias and enter the password after compiling (which Unity3D states has compiled successfully) and then attempt to install the .apk to device it says Application Not Installed.

However when I do not select an alias and select Unsigned(debug) it does allow to install to device, and the game runs successfully.

How can I amend this so that the .apk is correctly signed off using both keystore and alias and successfully installs to device?

Many thanks and much appreciation :)

Bub

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 Deozaan · May 03, 2012 at 03:13 AM 0
Share

I'm having pretty much the exact same problem.

I found this thread which says to use JD$$anonymous$$ 6: http://forum.unity3d.com/threads/100334-Install_parse_failed_no_certificates

But even using JD$$anonymous$$ 6 I still can't install my application when I sign it. I can't figure out what's wrong.

EDIT: I found out the cause of my problem. I needed to uninstall the debug version of the app before I could install the signed app. You can't install a new version of an app over an older one if their certificates don't match.

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by bubfowkes · May 03, 2012 at 05:08 PM

Righty! Here is how I figured it out after losing many coffee cups that were smashed in anger over this, this is no lie.

Install these:

Java SE Development Kit 6u14 (look here for download: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html look here for tutorial of how to link to env var: http://vietpad.sourceforge.net/javaonwindows.html)

Install Android 3.4 and up with either $400 droid or $1500 droid.

Install Ant: http://ant.apache.org/bindownload.cgi (link Ant to your environment variable http://www.youtube.com/watch?v=XJmndRfb1TU )

Install droid SDK from google: http://developer.android.com/sdk/index.html (I think 2.2 is alright for me for dev as it allows openGL ES 2.0, but you do technically cut out more than 5% of the market due to owners having 2.1 or below, your choice on that)

Open Unity3D in admin mode, create a new project (sometimes I have found that 2.x projects simply will not compile at all after upgrade)

do this: Edit > Preferences In the android SDK location box link to where you installed the sdk, on win 7 x86 should be C:\Program Files (x86)\Android\android-sdk)

do this: Edit > Project > Player In the inspector click Publishing Settings. Create a new keystore by ticking the checkbox Create New Keystore, tap in your passwords twice in the password boxes and then pressing the button that says Browse Keystore. In the dialog box that opens save the keystore with the .keystore ext. Create an alias by clicking the combo box and pressing create new key. Fill in the fields (Google Market MUST have a minimum of 50 years validity for successfull upload, stick 1000 in there you'll be fine ;) If you have an LVL put that in as well, that's in your Google Play user profile settings.

do this: Edit > Project > Player In the inspector click Other Settings. Change the bundle identifier to reflect your project. Put in bundle version. Select Min API Level.

do this: Create a game (lol) File > Build Settings... Click build. Name your .apk in the dialog box.

Wait until compile, then put it on device by webserver, usb, bluetooth etc etc Install on device, provided you have compatible device, should now work.

Please please please if you having problems get back and we'll go deeper in the process.

Peace for now ;)

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
avatar image
0

Answer by bubfowkes · May 03, 2012 at 05:06 PM

Righty! Here is how I figured it out after losing many coffee cups that were smashed in anger over this, this is no lie.

Install these:

Java SE Development Kit 6u14 (look here for download: http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html look here for tutorial of how to link to env var: http://vietpad.sourceforge.net/javaonwindows.html)

Install Android 3.4 and up with either $400 droid or $1500 droid.

Install Ant: http://ant.apache.org/bindownload.cgi (link Ant to your environment variable http://www.youtube.com/watch?v=XJmndRfb1TU )

Install droid SDK from google: http://developer.android.com/sdk/index.html (I think 2.2 is alright for me for dev as it allows openGL ES 2.0, but you do technically cut out more than 5% of the market due to owners having 2.1 or below, your choice on that)

Open Unity3D in admin mode, create a new project (sometimes I have found that 2.x projects simply will not compile at all after upgrade)

do this: Edit > Preferences In the android SDK location box link to where you installed the sdk, on win 7 x86 should be C:\Program Files (x86)\Android\android-sdk)

do this: Edit > Project > Player In the inspector click Publishing Settings. Create a new keystore by ticking the checkbox Create New Keystore, tap in your passwords twice in the password boxes and then pressing the button that says Browse Keystore. In the dialog box that opens save the keystore with the .keystore ext. Create an alias by clicking the combo box and pressing create new key. Fill in the fields (Google Market MUST have a minimum of 50 years validity for successfull upload, stick 1000 in there you'll be fine ;) If you have an LVL put that in as well, that's in your Google Play user profile settings.

do this: Edit > Project > Player In the inspector click Other Settings. Change the bundle identifier to reflect your project. Put in bundle version. Select Min API Level.

do this: Create a game (lol) File > Build Settings... Click build. Name your .apk in the dialog box.

Wait until compile, then put it on device by webserver, usb, bluetooth etc etc Install on device, provided you have compatible device, should now work.

Please please please if you having problems get back and we'll go deeper in the process.

Peace for now ;)

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Android Failled to Install 1 Answer

Create Keystore 5 Answers

is there a way to make a game for 2 players while one being on PC the other one on tablet? 0 Answers

Using a PC Oriented code to make an Android Build. 1 Answer

My phone cant run my game? 0 Answers


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