Snapchat / camera-kit-unity-sample

Sample app for Camera Kit in Unity
Other
30 stars 5 forks source link

AR functionality not working #4

Open santhamethran opened 8 months ago

santhamethran commented 8 months ago

After following the instructions provided in the readme file, I built the application for Android. When I ran it on my mobile device, the button functionality worked, but the camera did not open; instead, I could only see my home screen. I checked the camera permission option in the app info, and it's enabled. How can I resolve this issue?

Screenshot_2024-02-28-17-24-55-44_b87267ec644ddf170b0d5169d21e18c3

github-actions[bot] commented 8 months ago

Hello, thank you for your response. We are enthusiastic about receiving contributions from our community. If your issue/comment requires support, please see the Camera Kit Community Forum for support as support requests on this repo will be closed out. Code contributions will be reviewed regularly. Thank you!

ohthreeness commented 6 months ago

I had the same. This error showed every time I tried to open one of the lenses:

2024-05-15 14:47:52.439 19771-19855 Unity com.fictionalcompany.mygame E AndroidJavaException: java.lang.ClassNotFoundException: com.snap.camerakitsamples.unity.android.MainUnityActivity java.lang.ClassNotFoundException: com.snap.camerakitsamples.unity.android.MainUnityActivity at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:536) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(Unknown Source:0) at com.unity3d.player.UnityPlayer$F$a.handleMessage(Unknown Source:122) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loopOnce(Looper.java:232) at android.os.Looper.loop(Looper.java:317) at com.unity3d.player.UnityPlayer$F.run(Unknown Source:24) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.snap.camerakitsamples.unity.android.MainUnityActivity" on path: DexPathList[[zip file "/data/app/-MsCRQm6HvIN3xg3kGaJpQ==/com.fictionalcompany.mygame-g0hQrGoakmSDU7r_6LPyZg==/base.apk"],nativeLibraryDirectories=[/data/app/-MsCRQm6HvI

Alvarden15 commented 2 weeks ago

I had the same. This error showed every time I tried to open one of the lenses:

2024-05-15 14:47:52.439 19771-19855 Unity com.fictionalcompany.mygame E AndroidJavaException: java.lang.ClassNotFoundException: com.snap.camerakitsamples.unity.android.MainUnityActivity java.lang.ClassNotFoundException: com.snap.camerakitsamples.unity.android.MainUnityActivity at java.lang.Class.classForName(Native Method) at java.lang.Class.forName(Class.java:536) at com.unity3d.player.UnityPlayer.nativeRender(Native Method) at com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(Unknown Source:0) at com.unity3d.player.UnityPlayer$F$a.handleMessage(Unknown Source:122) at android.os.Handler.dispatchMessage(Handler.java:103) at android.os.Looper.loopOnce(Looper.java:232) at android.os.Looper.loop(Looper.java:317) at com.unity3d.player.UnityPlayer$F.run(Unknown Source:24) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.snap.camerakitsamples.unity.android.MainUnityActivity" on path: DexPathList[[zip file "/data/app/~-MsCRQm6HvIN3xg3kGaJpQ==/com.fictionalcompany.mygame-g0hQrGoakmSDU7r_6LPyZg==/base.apk"],nativeLibraryDirectories=[/data/app/~-MsCRQm6HvI

Hello there. I'm also having the same issue here.

Alvarden15 commented 2 weeks ago

After following the instructions provided in the readme file, I built the application for Android. When I ran it on my mobile device, the button functionality worked, but the camera did not open; instead, I could only see my home screen. I checked the camera permission option in the app info, and it's enabled. How can I resolve this issue?

Screenshot_2024-02-28-17-24-55-44_b87267ec644ddf170b0d5169d21e18c3

Hey there. I'm trying the same sample too and i'm having the same problem, the logcat shows me this. l597neb51d