adjust / unity_sdk

This is the Unity SDK of
http://www.adjust.com
MIT License
149 stars 70 forks source link

Assets/Adjust/Unity/AdjustUtils.cs(218,56): error CS0246: The type or namespace name 'JSONClass' could not be found (are you missing a using directive or an assembly reference?) #250

Closed namini40 closed 1 year ago

namini40 commented 1 year ago

Hi there! I added Adjust Unity SDK v4.31.0. after importing the package following error keeps showing.

Assets/Adjust/Unity/AdjustUtils.cs(218,56): error CS0246: The type or namespace name 'JSONClass' could not be found (are you missing a using directive or an assembly reference?)

which is referring to AdjustUtils.cs file and the method input JSONClass:


        public static void WriteJsonResponseDictionary(JSONClass jsonObject, Dictionary<string, object> output)
        {
          ...

also error:

Assets/Adjust/Unity/AdjustUtils.cs(194,44): error CS0246: The type or namespace name 'JSONNode' could not be found (are you missing a using directive or an assembly reference?)

at:

        public static String GetJsonString(JSONNode node, string key)
        {
         ...

I can not build my project.

Xcode v13.3 Macbook air 2020 (macOS Monterey Version 12.5) Unity 2021.3.0f1

Thank you!

uerceg commented 1 year ago

Hey @namini40,

Thank you for reporting this. We'll take a look on our end and keep you posted.

uerceg commented 1 year ago

Not sure why are you facing this. I have just tried to import Adjust v4.31.0 unity package into a Unity app and place where that missing type should be located is also being added as part of the package. Do you have this file added to your app as well? Screenshot 2022-08-22 at 09 22 06

namini40 commented 1 year ago

thanks @uerceg, I'm pretty sure i did it. how ever im going to make sure and get back to you, thanks for quick response

namini40 commented 1 year ago

hi @uerceg . you were right. I accidentally dropped one file from importing and didn't noticed. thanks again 🍻