#Android studio doesn't recognize the sample apps as modules.

10 messages · Page 1 of 1 (latest)

bitter sedge
#

I cloned the camera-kit-android-sdk github repo(https://github.com/Snapchat/camera-kit-android-sdk/tree/main) and opened it in android studio. I put in my api token and lens ID group. There are no app modules showing in the run configurations dropdown menu. If I try to add one there are simply no modules available to select. It lets me assemble the main module with no errors, but none of the samples can be assembled. I am a newb so there might be an obvious solution. Please help a brother out.

neat void
#

Hey @bitter sedge Did you open the root Samples/build.gradle file? You may also need to File > Sync Project with Gradle files to get the module configs to appear

cedar lion
#

Don't open the main folder directly, instead open the Samples folder via android studio

past ember
#

Following here. I'm struggling as well. What versions of Java and Gradle are compatible with Basic Sample? I was trying with 21 and but getting this issue: Unknown Kotlin JVM target: 21
I tried Java 17 and was somewhat successful getting an app icon that would open to camera, but kept quitting. Also not sure that I've putting the IDs in correctly. it required editing
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
Total noob here... Trying to figure out many moving parts.

past ember
#

Actually, seems there is a bit of a bug on the lenses site. Clicking on one entry took me to different app which is disabled so that's why the app wasn't launching. So I'm able to get a build to run over USB onto a Galaxy tab, but the lens content isn't displaying.

past ember
#

@neat void @cedar lion I'm working in Windows 11 with Android Sudio, what version of Java and what version of Gradle shoul dI have configured? The only thing I've manged to get to build is with changing the code above to .VERSION_17 and it will sort build, but apps are not showing, all i get is an Android app with camera and the Snap Watermark moving around the screen. Thanks for any advice.

past ember
#

Java 11 and AGP 7.3.0 and Gradle 7.5.1 seems to be building with the sample lenses!

cedar lion
#

I'll check what im using when i get to work tomorrow

past ember
#

I did manage to get a build going with the above, but it woudl be great to know if I should use something different. Thank you.

neat void
#

@past ember Windows isn't fully supported at the moment, do you see any errors in your log output?