Questions tagged [android-unity-plugin]
65 questions
1
vote
1 answer
Detect screen orientation change on Android without extending Activity
I have this Android plugin for Unity. Currently it's re-calculating a projection matrix for the camera once per frame and, while this works, it is obviously very wasteful. I'd like to be able to recalculate the matrix only when the screen…

DisturbedNeo
- 713
- 2
- 5
- 19
1
vote
1 answer
SmackInitialization: Could not determine Smack version
I am making an android plugin for Unity, I need to integrate XMPP in Unity so first I am trying to create a connection of XMPP and send and receive a message. It's working fine in android, I am able to send and receive message But when I export .jar…

Mahesh Kavathiya
- 573
- 5
- 23
1
vote
1 answer
Why the Unity3D only can load 32-bit native plugin(.so) on android platform?
I built a native plugin (shared library, .so) for ARM64-v8 on android platform.
It works well with the plain android apps.
But, when the Unity3D loads it, I just got an error message with "... .so is 64-bit instead of 32-bit....".
I just tried to…

TwisTeDStRiDeR
- 47
- 1
- 7
1
vote
1 answer
How to fix name conflict in unity engine for android?
How to fix this? Player settings button given there dont take any action. After pressing ok it opens 'This pc' automatically. For android.

Abdullah Al Mubin
- 123
- 1
- 2
- 10
1
vote
2 answers
Unity android plugin for FCM
I'm trying to add Google FCM push notification function to Unity project. I'm surprised that there are no resources about Google FCM for Unity. There are only old Google GCM resources. This is my step-by-step progress below.
Make Android Studio…

USUM
- 63
- 9
1
vote
1 answer
Android Plugin for unity not opening permission dialogue in unity?
I just develop android plugin for unity and i am successfully able to exchange data between unity and android plugin.
in my android plugin my code is
String SCOPE = "https://www.googleapis.com/auth/youtube";
am.getAuthToken(myAccount_[0], "oauth2:"…

umair
- 607
- 4
- 18
0
votes
0 answers
Unity: After the game is reinstalled, the saved data in play game services is gone
I creating a new game for android using unity engin and I face this probelm in Google Play Game Service.
I take all necessary steps to save data in play game services to save player progress in the cloud. After uninstalling the game from the device,…

Fadi Abuzant
- 476
- 8
- 13
0
votes
1 answer
Error When Force Resolving Android Dependencies in Unity
The Error Log was:
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Here's the Player Setting and the error logs

Chris Mikkelsen
- 3,987
- 9
- 29
- 41
0
votes
0 answers
solve an error on build and android apk in unity
I download unity 2022.3.5 because its support jdk 11 and when build my app it show me this error:
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Warning: Failed to download any source lists!
Exception in thread "main"…

mostafa mohamed
- 1
- 1
0
votes
0 answers
How to call android native activity and its methods from Unity
I am creating one plugin for Unity using android Katlin in which I am using an activity and inside the activity calling "Media Projection screen capture intent" but when I am calling this activity and its public and static methods, Unity gives me…

Nitin
- 1
0
votes
0 answers
Problem with compile Unity Build to Android platform
What I can do with this?
I've been getting a lot of compilation errors for a long time, this is just one of them, I hope your answer helps solve this problem
My project has AppLovin and AdJust
That my settings
And I Have this stacktrace:
Building…
0
votes
0 answers
NDK Not found unity 2021.6.f1
I'm trying to build an android apk file from unity. I already installed all android tools as the Unity Hub shows :
https://i.stack.imgur.com/gaO0F.png
but when I try to get a build this happens :
https://i.stack.imgur.com/jnGd8.png
What I have tried…

Erfan_Games
- 3
- 5
0
votes
1 answer
Anadroid gradle plugin 7.0 and java 11 sdk in unity
My SDK is built using Android gradle plugin AGP 7.0 and java 11 when I am trying to import this library project in Unity I am getting following two errors.
java.lang.UnsupportedOperationException: This feature requires ASM7 See the Console for…

amodkanthe
- 4,345
- 6
- 36
- 77
0
votes
1 answer
How to call GL.IssuePlugInEvent in Unity3d and pass parameters to the plugin side in C
I'm trying to write a plugin for Unity that passes information between the native side of android (but same may apply to any other dll or so library) and the unity side. The information I want to share is OpenGL related. On Unity docs it's specified…

AndrewBloom
- 2,171
- 20
- 30
0
votes
0 answers
How to make the Android plugin read a json file from Internal storage from Unity?
Im successful adding a desired json file to the internal storage of my app data//files/ .
What I want to achieve is, to make a function in my android plugin (inside Unity app) which can read the same json from internal storage. Im…

Aditya Patil
- 123
- 1
- 1
- 9