Technical difficulty with building an Android game

Hi, I’m using unity 4.1.0f4 and when I select build settings. Then select android,there is always an error(will update later with the actual error message) but what I need is the sdk android version that will work, so far I’ve downloaded 3 different one,and none of them work.

well I’ve downloaded the SDK from http://developer.android.com/sdk/index.htmland i need some instructions on how to

install the SDK for windows XP SP2 32 bit system and when i try to export the game using the android platform this

is the message that i’m getting

Assets/8numbers/Script/DragCube.js(53,17): BCE0005: Unknown identifier: ‘body’.

this is portion of the acctual code

Please help me!

Where did you create the variable body?
Unknown identifier body (i think) means the you never created a variable with that name thus you cannot use it.
E.G:
Where is your

var body = null

One pro tip, if you REALLY want to use UnityScript with mobile platforms, then use types in your variables. e.g.

var go : GameObject = new GameObject("Rigidbody dragger");

@Raigex
Thanks for the help, but when I’ve added your line to my code this is the message that I’m getting. if you can help me with it please.

myJavaFile.js(56,22): BCE0019: ‘isKinematic’ is not a member of ‘Object’

and here is my code
else
{

var hitt : RaycastHit;
if( Physics.Raycast(mainCamera.ScreenPointToRay(Input.mousePosition), hitt, 100 ) ) {
if( hitt.rigidbody !hitt.rigidbody.isKinematic ) {
highlightObject = hitt.rigidbody.gameObject;
}
}
}

how can I make isKinematic a member of Object?
Please help

Are you sure about the error? Since at least in here

#pragma strict

function Start () {

}

function Update () {

	var hitt : RaycastHit;
	if( Physics.Raycast(mainCamera.ScreenPointToRay(Input.mousePosition), hitt, 100) ) {
		if( hitt.rigidbody  !hitt.rigidbody.isKinematic ) {
			highlightObject = hitt.rigidbody.gameObject;
		}
	}
}

compiles without error.

Sorry about that Agent_007 i’ve placed the wrong code in my previous post.

here is the code that has the actual error

	if (!springJoint)
	{
		var go = new GameObject("Rigidbody dragger");
		body = go.AddComponent ("Rigidbody");
		springJoint = go.AddComponent ("SpringJoint");
		body.isKinematic = true;
	}

error
MyjavaScriptFile.js(60,22): BCE0019: ‘isKinematic’ is not a member of ‘Object’.

These are the declarations that i’ve made in the beginning of my code

var spring = 50.0;
var body = null;
var damper = 5.0;
var drag = 10.0;
var angularDrag = 5.0;
var distance = 0.2;
var pushForce = 0.2;
var attachToCenterOfMass = false;

var highlightMaterial : Material;
private var highlightObject : GameObject;

private var springJoint : SpringJoint;

function Start () {

}

thanks a lot guys, now my code has no problem at all,
but i have a next issue that can be viewed in another post here http://forum.unity3d.com/threads/209208-how-to-Set-up-Android-SDK-path-for-Unity-3d-4-1-0f4?p=1409222#post1409222