Hey guys, I'm trying to get the Wikitude SDK working in Android Studio and I'm having a bit of trouble. I copied the "wikitudesdk.jar" file into the libs folder, right clicked on it and hit "add as library", then went to the build.gradle file and added "compile files('libs/wikitudesdk.jar')" to the dependencies part. If I reference ArchitectView at all then examine the log after the application crashes, it gives me a NoClassDefFoundError. I assume that this is because I didn't load the SDK correctly. If this is the problem, would you please show me how to properly load the SDK, if not, would you please direct me to the problem and how to fix it? Thanks!java.lang.NoClassDefFoundError: com/wikitude/architect/ArchitectViewjjava.lang.NoClassDefFoundError: com/wikitude/architect/ArchitectView""java.lang to the wikitudes"compile filescompile files('libs/android-support-v4.jar') compile files('libs/wikitudesdk.jar')compile files('libs/android-support-v4.jar') compile files('libs/wikitudesdk.jar')
over 6 years ago
I guess this is a set-up issue. Please check the way you imported the library and your build.gradle file.