Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
4
Question by Telpscorei · Jun 12, 2012 at 02:55 PM · androidbuilddeploymenthang

Android Deployment Hang on "Pushing new content to device"

Hi All, I hope you can help me with this.

Originally I was working on Unity 3.3 on a Windows Vista 32bit machine. I had everything set up and working fine, including the android sdk, jdk, etc. When I hit the build and run command, everything went smoothly and my tablet started playing the game.

However, the laptop died, I bought a new one, and now Unity is seemingly hanging when it's pushing new content to device. My new laptop is a Windows 7 64bit machine, running Unity 3.5. I upgraded the project and built and ran into to the device with no problems. A second build causes Unity to hang on "pushing new content".

It can clearly build the apk file, as the build command works fine. I've got both 32bit and 64bit versions of the jdk installed, and the android sdk has 4.0.3 installed, as well as 3.2 & 2.3.3 for my two android devices. Both suffer from this problem.

I have tried the following to solve this:

  • Reinstalled the android sdk

  • Reinstalled both jdks

  • Reinstalled the device drivers for the android devices

  • Uninstalled the 64 bit verion of the jdk and then reinstalled the android sdk

Of note is that Unity doesn't become entirely unresponsive, it just has the dialog stating that it's pushing new content up. The progress bar doesn't move forward, though it does do that flash across as if it's still working. It stays like this for seemingly ever. Hell, it's running right now and that dialog has been up for at least half an hour at this stage.

I find the only way to break out of this is to either end the Unity process or both of the adb.exe processes running.

If anyone has any idea about what to do, please let me know. I'm literally at my wits end with this.

Comment
Add comment · Show 2
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 Telpscorei · Jun 30, 2012 at 02:00 PM 0
Share

I've updated to the latest version of Unity (3.5.3) & the Android SD$$anonymous$$ (rev. 12 & 20 for the platform tools & sdk tools) with no change.

avatar image Telpscorei · Jul 12, 2012 at 12:20 PM 0
Share

I've spoken with the Unity folk and they have confirmed that this is a problem with adb rather than Unity (as Unity builds the apk file correctly). I will continue investigating and when I've figured out what's wrong, will update this question with an answer.

4 Replies

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

Answer by Telpscorei · Jul 30, 2012 at 02:51 PM

Finally found the answer to this problem; so for anyone developing on Android, please do not plug your device into a USB 3 port. By accident I plugged in my phone to the USB 2 port on the side of my laptop and found everything worked fine, everytime.

So, if you're getting the above problem and have no idea what's causing it; check your USB port. 2.0 is fine, 3.0 not so much.

Comment
Add comment · Show 2 · 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 Jesse_Pixelsmith · Nov 06, 2012 at 06:12 PM 0
Share

Im glad my laptop has all USB 3's then....sigh. Thanks

avatar image sidhi · Aug 10, 2014 at 12:03 AM 0
Share

I have both USB 3 and 2 in my PC. but still having the same problem.... any idea ? (I use nexus 4)

avatar image
2

Answer by ScottYann · Jun 16, 2013 at 01:31 AM

Hi, I had this problem too and it turns out that my nexus 7 was connected as a media device and therefor adb could not see it. Unintuitively, the solution was to select the second option, connect as camera (ptp). To make the switch, swipe your finger from the top of the screen down to reveal the panel and find the option "camera (ptp).

Here is where I got this answer:

http://stackoverflow.com/questions/11974700/nexus-7-not-visible-over-usb-via-adb-devices-from-windows-7-x64/11991653#11991653

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
1

Answer by TheoTowers · Jan 17, 2013 at 02:25 AM

I had the same problem, but the culprit was different - the USB cable I was using was damaged. Actually, I've had two USB cables break on me - the first was packaged with my Samsung Galaxy S, and the second one with the Galaxy S3. Even though the cable recognizes that it is plugged in and is capable of receiving power, data transfer may not be possible. Try seeing if you can use the USB cable to transfer files to your phone. If it hangs up in the middle of that, you might need a new cable.

I don't know what it is about these cables that makes them susceptible to damage; maybe Samsung makes crappy cables, or perhaps it's something about USB in general, but I've never seen this happen with iPod cables.

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 ProbePLayer · Jul 26, 2014 at 12:21 AM

Another workaround to this problem is to not Build & run, but instead build and then sideload the apk using another application. In my case, I have an LG phone, so I use the LG PC Suite to install the apk on my phone, which works just fine. And its fast too.

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

8 People are following this question.

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

Related Questions

Distribute terrain in zones 3 Answers

[Closed]How to Build and Deploy to the Android device from the script 1 Answer

How do you test Android deployment ? 2 Answers

Android build time "Building list of referenced assemblies..." 0 Answers

Android not working 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