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
1
Question by JoshOClock · Feb 20, 2011 at 06:24 AM · androidpluginjavaandroidplugin

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.

Comment
Add comment
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

1 Reply

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

Answer by Tseng · Mar 04, 2011 at 09:54 AM

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)

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

No one has followed this question yet.

Related Questions

Now that Unity 4.1.2 broke the Android plugin examples, what do you use to learn them? 1 Answer

How do I override an Android Java class in Unity? 1 Answer

How to write a java lib for unity as a plugin to make run another android app? 1 Answer

Problem reading sensor plugin, event won't trigger 2 Answers

UnityPlayerActivity vs. UnityPlayerNativeActivity 0 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