Unity showing this error - Assets\Plugins\GitHub\Editor\UnityAPIWrapper.cs: error CS0103: The name 'UnityShim' does not exist in the current context - unity3d

I am using Unity 2019.2.2f1 and my project was built a long time with Unity 2017,2018. Now it is showing this error which is not resolving.

This error is due to ARCore and some basic packages.
Steps to resolve:
Import ARCore SDK again.(Assets >> Import Packages >> Custom Packages)
Use Window > Package Manager to install the "Multiplayer HLAPI" and "XR Legacy Input Helpers" packages. If it was already installed try removing and then reinstalling it again.

Related

Error in resolving package dependency swiftUI project

Dependencies could not be resolved because root depends on 'googleappmeasurement' 9.0.0.
'googleappmeasurement' 9.0.0 cannot be used because 'googleappmeasurement' 9.0.0 depends on 'nanopb' 2.30908.0..<2.30909.0 and root depends on 'nanopb' 2.30909.0..<2.30910.0.
that is my error message, can anyone help?
I am using SDK version 8.9.1 and everything working fine, If you executed the Resolve Package Versions and still not working. you can try the command Reset Package Caches from Project navigator scroll down right click on Package Dependencies then choose the command. that will clear all caches for all installed packages then re-install them again. if that not working i suggest you to use version 8.9.1 till Firebase fix the issue.
I have discovered the problem has been answered here. It occurs when importing Firebase using Swift Package Manager and setting to track "master" instead of a specific release version.
Got same error and solved, check attached image, this most likely packages usage misconfiguration, as follows:
1-perhaps you are working on a branch with different Xcode version than the other developer who installed the package.
2-Perhaps some package is conflicted being used twice, by so some dependencies are duplicated.
Well to solve this you gotta try either to match the Xcode version used while installing the packages, or to remove the package that makes errors(like Firebase here), and try adding that package again your side.

React Native in HMS getting groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array or object

When I am using React Native in HMS getting the following error
Error message: groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array or object
Above error comes every time I try to run and build the React native HMS Location Kit.
Added all the dependencies and Location SDK in the folder and linked it.
How to solve the issue?
Uninstall npm by running
npm uninstall -g
and re-install in the project folder by running
npm-install
and link the project by running
npm link

multiple versions of gradle plugin when building in unity

I am using the skillz sdk to develop a quiz game which requires gradle. My current version of unity is 2019.3.0.a5. When I build the project I get the following errors.
> Failed to apply plugin [id 'com.android.library']
> Using multiple versions of the Android Gradle plugin in the same build is
not allowed.
'C:\Users\Zachary Edgell\cash quiz\Temp\gradleOut\launcher' is using
version 3.2.0
'C:\Users\Zachary Edgell\cash quiz\Temp\gradleOut\unityLibrary' is
using version 3.2.1
I have attempted to down grade to unity 2019.1.8f1when I try to build again I get the error
FileNotFoundException: Temp\gradleOut\build\outputs\apk\release\gradleOut-release.apk does not exist
When I try to do a development build on 2019.1.8f1 I get the following error
FileNotFoundException:Temp\gradleOut\build\outputs\apk\release\gradleOut-debug.apk does not exist
I have also attempted to delete the temp folder and rebuild but I get the same error.
The problem was solved by downgrading to unity 2018.4.3f1 if any one is having this issue just back up your files then try to downgrade to unity 2018.4.3f1

App crashes after import the GooglePlayGamesPlugin and GoogleMobileAds unitypackages

I imported to my unity project the GooglePlayGamesPlugin and GoogleMobileAds unitypackages
After import, the unity console does not show any errors. I built the project and installed it on a smartphone for testing. When I try to launch the app it immediately crashes and show the error "Unfortunately, (app name) has stopped". If I importe separate the GoogleMobileAds or GooglePlayGamesPlugin then the app works. I suspect that errors occurred due to different versions of libraries in the Editor folder.
I use:
Unity - 3.2f1
GooglePlayGamesPlugin - 0.9.58
GoogleMobileAds - 3.15.1
I tried to fix the error as follows:
Created a new empty project and imported the GooglePlayGamesPlugin and GoogleMobileAds unitypackages
I deleted the old version of the file
I clicked Android solver -> solve
The code has no errors, because even in the empty project, this error occurred
How can this be fixed ?
In my project, I want to use both the GooglePlayGamesPlugin and GoogleMobileAds.
I personally don’t use google services in unity but why don’t you try to use UnityAds instead of google mobile ads ?
https://unity.com/solutions/unity-ads

Google VR SDK unity package not working

I am encountering a strange problem and I am clueless about what to do. I start a new Unity (32 bit) project Then I import Google VR SDK and encounter 3 errors.
*Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(66,64): error CS1729: The type System.Diagnostics.ProcessStartInfo' does not contain a constructor that takes2' arguments
Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(70,17): error CS0200: Property or indexer `System.Diagnostics.Process.StartInfo' cannot be assigned to (it is read only)
Assets/GoogleVR/Scripts/Controller/Internal/Emulator/EmulatorClientSocket.cs(79,17): error CS1061: Type System.Diagnostics.Process' does not contain a definition forClose' and no extension method Close' of typeSystem.Diagnostics.Process' could be found (are you missing a using directive or an assembly reference?)*
I dont even touch anything just import unity package coming with Google VR SDK.
Does anyone has any idea about this? Any help is appreciated.
This is due to the fact that in some version of Unity, the default platform is WebGL.
You can solve this by switching to the Android platform in File | Build Settings.
You can switch the platform by File -> Build Setting -> select Android and click Switch Platform