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 he110me · Mar 11, 2014 at 08:31 PM · androidtestingpushhang

Hangs on "Pushing new content to device" when using "Build and Run" with android

I'm trying to develop a game for android but can't get my test environment to work consistently. Earlier today I was able to use the "build & run" button to test on my device with no problem, but now it hangs on "Pushing new content to device." I've left it like this for an hour without anything changing. Occasionally, Unity will freeze on "Trying to locate a suitable android device" too, requiring me to close Unity in the task manager.

I literally didn't change a thing between when it was working and when it wasn't. Anyone have any ideas? I'm testing on a Samsung Galaxy S III.

Things I've tried:

  1. Switching USB ports (I have both 2.0 and 3.0 USB, this used to work but now it doesn't at all)

  2. Restarting my computer (again, used to fix things, but not this time).

  3. Restarting my android device

  4. Restarting Unity

  5. Developer Mode is turned on with USB debugging, and Always awake mode is on aswell

  6. "Unknown sources" is also turned on.

  7. My android device is connected as MTP, tried PTP with no difference.

  8. Turned firewalls off

  9. The Android SDK is installed and setup.

  10. Sacrificing a Fly to Satan

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 he110me · Mar 11, 2014 at 11:21 PM 0
Share

So I put it down for about 3 hours and came back and miraculously, it started working again...once. Build & Run worked when I first started up unity, but making changes to the code caused the problem to happen again. I'm wondering if it's something to do with how I ter$$anonymous$$ate the program on my device. I'm using the following code to exit the program:

 if (Input.Get$$anonymous$$eyDown($$anonymous$$eyCode.Escape)) {
     Application.Quit(); 
 }

I was told that the "back" button on android devices can be accessed by using $$anonymous$$eyCode.Escape

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by he110me · Mar 12, 2014 at 12:55 AM

I think I found the Answer. I noticed that when i closed the application on my device, it wouldn't get deleted. I went to the application manager and deleted my game from the phone and tried using "Build and Run" and it worked! (But it still won't work if I use the button under build settings.)

TL,DR: Exit the application on your phone, look for it in your application manager, delete it, use "Build & Run" from the "File" dropdown menu.

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

20 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

Related Questions

Unity 4.3.4 Hangs when building for Android 1 Answer

Finding out if a user entered the game from notification (iOS/Android) 2 Answers

Can I use the Android Virtual Machine/Device to test my game ? 1 Answer

Unity3d game does not receive push notifications 2 Answers

Unity hangs when attempting to build for Android 2 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