Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

error: cannot find symbol import com.unity3d.player.IUnityPlayerSupport; #91

Open
zzm88 opened this issue Nov 8, 2023 · 4 comments
Open

Comments

@zzm88
Copy link

zzm88 commented Nov 8, 2023

Task :app:compileDebugJavaWithJavac FAILED
C:\Users\zzm88\Documents\uaal-example\NativeAndroidApp\app\src\main\java\com\unity\mynativeapp\SharedClass.java:10: error: cannot find symbol
import com.unity3d.player.IUnityPlayerSupport;
^
symbol: class IUnityPlayerSupport
location: package com.unity3d.player
C:\Users\zzm88\Documents\uaal-example\NativeAndroidApp\app\src\main\java\com\unity\mynativeapp\SharedClass.java:27: error: cannot find symbol
UnityPlayer unityPlayer = ((IUnityPlayerSupport) UnityPlayer.currentActivity).getUnityPlayerConnection();
^
symbol: class IUnityPlayerSupport
location: class SharedClass
Note: C:\Users\zzm88\Documents\uaal-example\NativeAndroidApp\app\src\main\java\com\unity\mynativeapp\MainActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

@valdezae
Copy link

Did you end up finding a solution?

@TumayVarel
Copy link

Same issue here, I'm trying to find a solution however could not come up with one yet.

@brokenbug
Copy link

I solved it by updating UnityProject to editor verison 2023.2.3f1
(seems to be a bug in 2023.1.6.f1, so IUnityPlayerSupport is not included in the export build.)

@popdika
Copy link

popdika commented Feb 21, 2024

I solved it by updating UnityProject to editor verison 2023.2.3f1 (seems to be a bug in 2023.1.6.f1, so IUnityPlayerSupport is not included in the export build.)

This solved my problem, thanks mate!

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

No branches or pull requests

5 participants