googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.34k stars 1.08k forks source link

error CS0117: `System.Version' does not contain a definition for `Parse' #3197

Closed Prashant1011 closed 3 months ago

Prashant1011 commented 3 months ago

I am getting the issue when import GoogleMobileAds-v8.7.0 Package in Unity.

Assets/GoogleMobileAds/Editor/GoogleMobileAdsSettings.cs(31,39): error CS0117: System.Version' does not contain a definition forParse'.

Step 1: Describe your environment

Unity version: 2018.4.25f1 Google Mobile Ads Unity plugin version: 8.7.0 Platform: Unity Editor Platform OS version: Windows 11 .NET version 8.0.201

Step 2: Describe the problem

I am getting this issue for my old project. If i create new Project it's worked fine. Switch target platform to Android In menu Assets, Google Mobile Ads Not showing In Build Settings disabled Build App Bundle (Google Play) In Player Settings assign a package name Minimum API level 16, target API level Automatic (highest Installed) Import GoogleMobileAds-v8.7.0.unitypackage Getting Issue

image

image

NVentimiglia commented 3 months ago

@Prashant1011 Please use Unity 2019.4 or higher.