adjust / unity_sdk

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

AdjustEditorPreprocessor - Path does not contain a definition of 'Combine' #265

Open ariok opened 1 year ago

ariok commented 1 year ago

Assets\Adjust\Editor\AdjustEditorPreprocessor.cs(46,39): error CS0117: 'Path' does not contain a definition for 'Combine'

We are receiving this error after installing this version -> Version 4.33.0

We are currently running Unity 2021.2.18f.

Lines with the issue here: https://github.com/adjust/unity_sdk/blob/fe1de07849649d13fcd53ae0e047fe45ba29f95b/Assets/Adjust/Editor/AdjustEditorPreprocessor.cs#L46 https://github.com/adjust/unity_sdk/blob/fe1de07849649d13fcd53ae0e047fe45ba29f95b/Assets/Adjust/Editor/AdjustEditorPreprocessor.cs#L47 https://github.com/adjust/unity_sdk/blob/fe1de07849649d13fcd53ae0e047fe45ba29f95b/Assets/Adjust/Editor/AdjustEditorPreprocessor.cs#L48

ariok commented 1 year ago

A possible fix would be to directly specify the namespace System.IO before Path

var androidPluginsPath = System.IO.Path.Combine(Application.dataPath, "Plugins/Android");
var adjustManifestPath = System.IO.Path.Combine(Application.dataPath, "Adjust/Android/AdjustAndroidManifest.xml");
var appManifestPath = System.IO.Path.Combine(Application.dataPath, "Plugins/Android/AndroidManifest.xml");