Coder Social home page Coder Social logo

Comments (17)

nonelse avatar nonelse commented on September 15, 2024

Fixed in new version v3.4.4

from unity_sdk.

wei780901 avatar wei780901 commented on September 15, 2024

I have some issue...
I use sdk version 4.12.1 & unity version 5.6.2
I don't know to fix it.

from unity_sdk.

uerceg avatar uerceg commented on September 15, 2024

@wei780901

Can you explain us a bit more about the issue? Is it the same as the one explained in this issue? If yes, can you send us the stack trace? Can you reproduce the issue and if yes, what are the steps?

from unity_sdk.

acalandriJC avatar acalandriJC commented on September 15, 2024

Guys, we are having the same problem. We updated from 4.11 to 4.12 and now we get the following stack trace. We use unity 5.6.4p2
Here is the stack trace:
Exception: JNI: Init'd AndroidJavaClass with null ptr!
UnityEngine.AndroidJavaClass..ctor (IntPtr jclass) (at /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:562)
UnityEngine.AndroidJavaObject.get_JavaLangClass () (at /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:540)
UnityEngine.AndroidJavaObject.FindClass (System.String name) (at /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:531)
UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) (at /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:551)
UnityEngine.AndroidJavaClass..ctor (System.String className) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/AndroidJavaBindings.gen.cs:92)
com.adjust.sdk.AdjustAndroid..cctor () (at Assets/Adjust/Android/AdjustAndroid.cs:16)
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for com.adjust.sdk.AdjustAndroid
com.adjust.sdk.Adjust.OnApplicationPause (Boolean pauseStatus) (at Assets/Adjust/Adjust.cs:59)

from unity_sdk.

uerceg avatar uerceg commented on September 15, 2024

@acalandriJC

Can you tell us how do you reproduce this issue? Which Unity version are you using, which Adjust SDK version?

from unity_sdk.

acalandriJC avatar acalandriJC commented on September 15, 2024

Sure, we are using unity 5.6.4p2 with adjust sdk 4.12 (we updated from 4.11).
Basically we have the adjust object on scene and when we hit play when tries to initialize it the error occurrs. It does not make the game crash, but its weird since in 4.11 was working just fine and no exceptions were shown.

from unity_sdk.

uerceg avatar uerceg commented on September 15, 2024

Are you running it in Editor maybe?

from unity_sdk.

acalandriJC avatar acalandriJC commented on September 15, 2024

This happens when we click play on the editor, yes, but this wasnt happening in 4.11

from unity_sdk.

uerceg avatar uerceg commented on September 15, 2024

Ah, interesting, okay. I mean, those methods are not even supposed to be executed in Editor environment for our SDK. I will prepare one demo SDK version soon and post it in here so that you give it a try and let us know if you're still facing the same issue and if not, we'll make official SDK update, if you're willing to give it a try?

from unity_sdk.

acalandriJC avatar acalandriJC commented on September 15, 2024

Sure! Thanks!

from unity_sdk.

acalandriJC avatar acalandriJC commented on September 15, 2024

Also, dont know why is this happening, but after upgrading adjust, ios low end devices crash when before they wouldnt. Just tried to revert adjust to 4.11 and the game works fine. As soon as i update to 4.12 the same device with the same build with updated adjust crashes on open. The device we are trying it on is an ipad 3. Don't know if could be the same thing or not. Just know that updating to 4.12 is proving to be harder than it should. Thanks for the help though :)

from unity_sdk.

uerceg avatar uerceg commented on September 15, 2024

@acalandriJC

Hm. Would it be possible for you to give our upcoming release RC version a try (you can find it in here: #119 (comment)) and let us know if it solved your issue you saw with iPad 3?

from unity_sdk.

acalandriJC avatar acalandriJC commented on September 15, 2024

Sure! We will give it a shot and report back with the results, thanks!

from unity_sdk.

acalandriJC avatar acalandriJC commented on September 15, 2024

@uerceg Success!!! Whatever you guys did fixed all the issues, the editor errors and the crashes on ios. When can we hope to see a new official release with this fixes?

from unity_sdk.

uerceg avatar uerceg commented on September 15, 2024

🎉 Official 4.12.2 is being prepared and should be live soon. I hope tomorrow at latest point. Will update in here once live.

from unity_sdk.

wei780901 avatar wei780901 commented on September 15, 2024

Sorry late to reply,I use Unity Editor Mode with Andriod platfrom and Clikc play,
The error is showing,
I think this code have problem
AdjustAndroid.cs line:16
"private static AndroidJavaClass ajcAdjust = new AndroidJavaClass("com.adjust.sdk.Adjust");"

but I correct run in android device.

from unity_sdk.

uerceg avatar uerceg commented on September 15, 2024

@wei780901

Thanks for the report. Unity SDK v4.12.2 should be live today and hopefully solve this issue.

from unity_sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.