Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by Midknight · Aug 18, 2011 at 04:34 AM · androidpluginnativecompile

How to get android sample plugin to compile

I've been searching to no end to figure out how to take the JavaPluginSample in the Unity reference manual and get it to compile.

I'm working on Windows I thought I installed everything I need but I can not get things to compile out of the box.

Would someone be kind enough to write a walkthough? I've searched answers, docs, and message boards and have not found a single guide.

Comment
Add comment · Show 1
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 Midknight · Aug 18, 2011 at 05:01 AM 0
Share

Here is what I'm getting:

$ sh build_plugins.sh

Building JavaClass... Fatal Error: Unable to find package java.lang in classpath or bootclasspath

Signature dump of JavaClass... ERROR:Could not find org.example.ScriptBridge.JavaClass Creating JavaClass.jar... org : no such file or directory java.util.zip.ZipException: ZIP file must have at least one entry at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304) at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:146) at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321) at sun.tools.jar.$$anonymous$$ain.create($$anonymous$$ain.java:468) at sun.tools.jar.$$anonymous$$ain.run($$anonymous$$ain.java:180) at sun.tools.jar.$$anonymous$$ain.main($$anonymous$$ain.java:1149)

Compiling NativeJavaBridge.cpp... cygwin warning: $$anonymous$$S-DOS style path detected: /usr/local/bin/"C:\Program Preferred POSIX equivalent is: /usr/local/bin/"C:/Program CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames build_plugins.sh: line 16: "C:\Program: command not found mv: cannot stat `libs/armeabi/libjavabridge.so': No such file or directory

Cleaning up / removing build folders...

Done!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Meltdown · Jul 30, 2012 at 11:06 AM

Try this

http://www.platoevolved.com/blog/programming/android/creating-an-android-plugin-for-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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How to access an Android native plugin in unity ? 0 Answers

Different approaches to Android plugins 0 Answers

Native c++ plugin on android 0 Answers

Pass camera stream from unity and android plugin 1 Answer

How to use android Renderscript v8 with Unity? 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