Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

AR functionality not working #4

Open
santhamethran opened this issue Feb 28, 2024 · 4 comments
Open

AR functionality not working #4

santhamethran opened this issue Feb 28, 2024 · 4 comments

Comments

@santhamethran
Copy link

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

Copy link

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
Copy link

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
Copy link

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
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants