Open ivanmayes opened 6 years ago
You shouldn't add unity-classes.jar to your dependencies. Does uncommenting the implementation fileTree(include: '*.jar', dir: 'libs')
line resolve the issue?
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. I managed to solve my problem by downgrading Gradle to 3.5 (I didn't see the other closed issue with my same error) Now, my ionic app closes by itself without erros or logs, but I think this is due to my javascript implementation in the ionic side (I'm a newbie with ionic and typescript). Do you have some sample project so we can see how exactly do we call unity's funcionalities from typescript? I have read many times the instructions but I don't get how to launch the vuforia view from ionic.
@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!