x


Help building changes to .java file included in Unity supplied package.

I just downloaded the Mobclix package that was posted in the Unity Forums. I made a minor change the mobclixtestactivity.java in hopes I could rebuild it.

Downloaded the jdk for the first time and tried 'javac mobclixtestactivity.java' and got a bunch of errors (a small sample):

mobclixtestactivity.java:3: package com.unity3d.player does not exist import com.unity3d.player.; ^ mobclixtestactivity.java:5: package android.os does not exist import android.os.Bundle;*

Clearly I'm missing some set-up here... path info? Maybe I need to build it differently?

Any help is appreciated.

more ▼

asked Feb 20 '11 at 06:24 AM

JoshOClock gravatar image

JoshOClock
227 14 14 23

(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

Well, you can't compile it with only the SDK alone.

First of, yes you need some class paths to both the unity *.jar files (should be somewhere in the unity editors folder) and android *.jar files, which you can get from the Android SDK page.

However, I wouldn't suggest you too do this with command line tools as it could be a pain in the ass. You should rather download Eclipse, ADT Plugin for Eclipse (Android Developer Tool) and the SDK(s) themselves. On the android SDK page you get a Setup Tool which basically can download different versions of the SDKs and Emulator ROMs.

This one will allow you to make android apps. I'm however not sure if unity itself can or can't compile the files or how you make the final *.apk of your game, since I haven't got Android Basic/Pro license yet, I've just did standalone/pure Android Apps before with Eclipse + Android SDK (without unity)

more ▼

answered Mar 04 '11 at 09:54 AM

Tseng gravatar image

Tseng
1.5k 6 8 23

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2454
x392
x294
x22

asked: Feb 20 '11 at 06:24 AM

Seen: 1658 times

Last Updated: Feb 20 '11 at 06:24 AM