New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: Trouble pulling in unity classes #34
Comments
You shouldn't add unity-classes.jar to your dependencies. Does uncommenting the |
Unfortunately not, that had been commented out just because I was trying all combinations of loading in the unity classes. Just building the project clean and following your instructions, I get the first screenshot I sent, which is the same as below when uncommenting the *.jar line. I've gone back and started another ionic boilerplate project, and refollowed the steps with the same result. |
Why do you comment that line? |
I was just trying all the ways possible. |
@juan9506 Assuming that you plan to launch Unity from the homepage, you should insert the openUnity function (that can be found in the documentation) to home.ts and call that function whenever you want to launch Unity. You can e.g. bind it to a button's click event in home.html. |
I keep getting the same error that unityARCaller is undefined. |
Don't forget this line: // Should put declare before any @Component's
declare let unityARCaller: any; |
I just couldn't seem to figure this out. Did everything on the list, but i'm getting this error in my build:
After some searching around, I ended up adding the
unity-classes.jar
to the main android project as a library, but then I receive this error, which seems like its trying to add it in twice. I've tried different combinations of where to implement this, but I keep getting one error or the other:The Unity build works by itself without the plugin, so I'm not sure what is going wrong here.
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: