playMaker

Author Topic: Android SDK  (Read 4197 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Android SDK
« on: October 21, 2014, 02:58:42 PM »
Hi!

I saw in the build option that I can build the game for Android. I thought I need Unity Pro for that.

But I tried. But Unity asked for Android SDK root folder. I found the folder. But nothing happend. I couldn't choose the folder.
I couldn't even change the Android SDK root folder in the Preferences menu.
I checked internet for a solution. I downloaded the Android SDK for Mac. And installed it. And started the Eclipse program. I got this error:

"[2014-10-21 23:29:01 - DeviceMonitor] Sending Tracking request failed!

Can somebody help me with this? I just want to test how it will be on Android.


Thanks
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Android SDK
« Reply #1 on: October 22, 2014, 12:21:13 AM »
Have you taken a look at this:
http://docs.unity3d.com/Manual/android-GettingStarted.html

Getting everything setup the first time can be a bit of a pain! There might also be video tutorials if you search for unity android development...

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Re: Android SDK
« Reply #2 on: October 22, 2014, 07:29:58 AM »
Hi, Alex!

I watched a video. Installed the tools I need. I didn't get all these errors, but I got this error in Unity.

"Error building Player: SystemException: 'System.Net.Sockets' are supported only with Unity Android Pro. Referenced from assembly 'Assembly-CSharp"

Is it not possible to just test the game on Android without paying 1500 dollars for a license?

Another question:
Have you or someone here tried Unity Remote 4 for Android?
I can't get it working. I connect my cell phone to my iMac Pro. Then I start Unity Remote 4. Then I go to "Edit/Project Settings/Editor" and set Unity Remote Device to "Any Android Device" And then I click play. Nothing happend! What do I do wrong? I did everything they explained in the tutorial.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jess84

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: Android SDK
« Reply #3 on: October 22, 2014, 08:41:48 AM »
I have no problem running Unity Free and Android Builds.

After installing the SDK manager, did you install all of the required components?

On your Unity settings, where you specify what oldest firmware version you support, does that match with the API you have installed?

Have you actually set the path for your Android SDK in the settings/preferences of Unity?

Does your project have actions that rely on features not supported by Unity Free? (e.g. some Photon actions or movie play actions)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Re: Android SDK
« Reply #4 on: October 22, 2014, 10:55:29 AM »
Hi!
First I installed Eclipse and then I opened the Android SDK Manager and installed some there. Maybe I need to install more tools there?

Where do I see this firmware in Unity?

And I get these errors everytime I start Eclipse.


[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Raagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:41: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:65: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:69: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:53: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
[2014-10-22 19:31:15 - appcompat_v7]
[2014-10-22 19:31:15 - appcompat_v7] /Users/Rabagast_iMac/Documents/workspace/appcompat_v7/res/values-v21/styles_base.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

jess84

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
Re: Android SDK
« Reply #5 on: October 22, 2014, 11:59:22 AM »
I have eclipse installed (I guess automatically from when I installed the AndroidSDK), but I've never once opened it. You don't need to in order to build Android versions in Unity.

What are you opening Eclipse to do?



Make sure you've installed;

Toos/ AndroidSDKTools, Platform-Tools, and Build-Tools for the APIs you want to install.

And in the section for each API you support, make sure all elements are installed.

And in the Extras section at the bottom, install whatever is relevant for your needs.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Android SDK
« Reply #6 on: October 22, 2014, 03:10:06 PM »
Also delete the Photon Networking folder. That could be source of your System.Net.Sockets error. I believer there is a version of Photon that works without sockets, but Jean will have to weigh in on that...

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • View Profile
    • Homepage
Re: Android SDK
« Reply #7 on: October 22, 2014, 03:51:43 PM »
I deleted Photon Networking Folder, so now everything is working fine. I had some few other problems also, but I got some other help with that.

But sometimes when I build the game for Android, my cell phone restart.
I use Unity Remote 4 instead just to see if everything is working fine.

Thanks for the help. :-)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no