As it looks the download of the ARToolKit6 SDKs has been taken down. We need to wait for some announcement on what is happening with the project.
I have been asked, how do I add ARToolKit6-Android-SDK into an existing Android Studio project or how do I create a new Android Studio project from scratch and integrate ARToolKit6-Android-SDK. What I would like to show you in this article is how to do exactly that. We are not going to extend the existing ARToolKit6 for Android example (ARTrackingExample) but create a new project with Android Studio and add ARToolKit6 to that Android project. And we are going to do that on Windows.
Requirements for ARToolKit6-Android-SDK and Android Studio
Integrating ARToolKit6 Android SDK
Actually, it is very easy to get ARToolKit6-Android-SDK integrated into an existing Android Studio project.
- Open your project
- Right click your app > Open Module Settings
- In the top left select the +
- Select Import .JAR/.AAR Package > Next
- As File name on the right select … and then navigate to the .aar file in the unzipped ARToolKit6-Android-SDK
- Should be << ARToolKit6-Android-SDK >>/SDK/lib/AR6J/AR6J-release.aar
- Close the Open Module Settings dialogue with OK
- Open it again Right click your app > Open Module Settings
- There seems to be an issue with Android Studio reloading imported modules. That is why you need to close and open it again.
- Select your app on the left and navigate to Dependencies tab
- On the bottom left select the + > Module Dependencies and select AR6J-release
Now you can use ARToolKit6-Android-SDK inside your Android Studio project.
Look at the ARTrackingExample to see how the camera surface rendering is done in principle.
Or check out my Git repository here:
The API documentation for AR6J can be found here: http://artoolkit.github.io/artoolkit6/Documentation/APIReference/AR6J/
The tutorial video
Also, I’ve recorded a step by step video which is available on YouTube:
Let me know if that works for you and post any questions as comments below.