android-unity-plugin

Unity's Google In-App Review plugin error: java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory

China☆狼群 提交于 2020-12-13 04:23:22
问题 I'm trying to integrate Google's In-app Review feature into my Unity application and getting the following runtime error message on logcat console. Anyone knows the solution to this problem? AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory (Filename: currently not available on il2cpp Line: -1) 回答1: It turned out that the problem was introduced by a proguard obfuscation. In order to keep the symbols I had to add the following to

Unity's Google In-App Review plugin error: java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory

僤鯓⒐⒋嵵緔 提交于 2020-12-13 04:23:07
问题 I'm trying to integrate Google's In-app Review feature into my Unity application and getting the following runtime error message on logcat console. Anyone knows the solution to this problem? AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.play.core.review.ReviewManagerFactory (Filename: currently not available on il2cpp Line: -1) 回答1: It turned out that the problem was introduced by a proguard obfuscation. In order to keep the symbols I had to add the following to

Gradle dependencies on Unity

自闭症网瘾萝莉.ら 提交于 2020-01-13 18:17:45
问题 I recently created an Android Studio project using estimote beacons. This requires that the build.gradle be modified so that it can access the estimote sdk. I created the project and it works great. I also created a simple android plugin to show a Toast message from Unity (instructions found here: https://blog.nraboy.com/2014/06/creating-an-android-java-plugin-for-unity3d/). Now, because we use unity at my job to create apps, now I need to create a plugin for the beacons to be used inside

Unable to use a native android plugin for Unity

♀尐吖头ヾ 提交于 2020-01-07 05:22:32
问题 I wish to use this native plugin for Android devices via Unity. For some reason the plugin is just now working. When I run it on a real device the game crashes. I am using Unity 5.5.2f1 personal, my phone is Samsung Edge 6 with Marshmallow api. I have placed the jar file inside Assest/Plugins/Android. I can't figure out what is the cause for this error. Do you know what is wrong here? This is part of my code: private AndroidJavaObject plugin; void Start () { plugin = new AndroidJavaClass("jp

SurfaceTexture in Android plugin doesn't work in Unity

為{幸葍}努か 提交于 2019-12-06 02:46:56
问题 I can't get the texture tied to a SurfaceTexture to display in Unity. Update 4: Based on the pipeline in update 1 (surface->external texture via surface texture -> fbo -> texture 2d) I know the SurfaceTexture isn't properly converting its surface to a texture. I can get correctly drawn pictures from its surface via pixelcopy and I can confirm my FBO drawing to texture2d pipeline works with some test colors. So the question is, why can't the SurfaceTexture convert its surface to a texture? I

SmackInitialization: Could not determine Smack version

心不动则不痛 提交于 2019-12-02 13:20:00
问题 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 file and use in Unity so I got below error while I create connection SmackInitialization: Could not determine Smack version java.lang.NullPointerException: lock == null at java.io.Reader.<init>(Reader.java:64) at java.io.InputStreamReader.<init>

SmackInitialization: Could not determine Smack version

≯℡__Kan透↙ 提交于 2019-12-02 03:24:05
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 file and use in Unity so I got below error while I create connection SmackInitialization: Could not determine Smack version java.lang.NullPointerException: lock == null at java.io.Reader.<init>(Reader.java:64) at java.io.InputStreamReader.<init>(InputStreamReader.java:122) at java.io.InputStreamReader.<init>(InputStreamReader.java:57) at org

Unity Error: Unable to convert classes into dex format

半腔热情 提交于 2019-11-29 08:11:30
I have created an Android Unity plugin (.aar file) which provides some custom positioning data to my Unity game. In my Unity script, I use, var x = customClass.CallStatic<float>("getHeadX"); In order to get some location data. This method is called per frame to get the updated data (polling method) which makes it inefficient. Instead, I decided to call a C# method in my Unity script from my java code (plugin side) when the updated data is ready. To do this, in my java plugin, I wrote, import com.unity3d.player.UnityPlayer; ... UnityPlayer.UnitySendMessage("Manager", // gameObject name

Unity Error: Unable to convert classes into dex format

梦想的初衷 提交于 2019-11-28 01:57:16
问题 I have created an Android Unity plugin (.aar file) which provides some custom positioning data to my Unity game. In my Unity script, I use, var x = customClass.CallStatic<float>("getHeadX"); In order to get some location data. This method is called per frame to get the updated data (polling method) which makes it inefficient. Instead, I decided to call a C# method in my Unity script from my java code (plugin side) when the updated data is ready. To do this, in my java plugin, I wrote, import