Unloading broken assembly: Google API
Hi, I'm working on a project developed in Unity 2018.3.0f2 for mobile.
I'm trying to use Google API in order to Read/Write some data in a Google Sheet.
I've downloaded the nuget packages of the various part composing the API, converted the extension to .zip and extracted the .dll file in lib/neystandard2.0. I moved all the .dll files in a folder I created in Assets named Plugins. The files are:
Google.Apis.Auth.dll
Google.Apis.Core.dll
Google.Apis.dll
Google.Apis.Oauth2.v2.dll
Google.Apis.Sheets.v4.dll
I set the API compatibility level to .NET standard 2.0 in the player prefs.
In visual studio 2017 everything look fine, however in the editor I'm obtaining the messages:
"Unloading broken assembly Assets/Plugins/Google.Apis.Auth.dll, this assembly can cause crashes in the runtime"
"Unloading broken assembly Assets/Plugins/Google.Apis.Core.dll, this assembly can cause crashes in the runtime"
How can I fix it?
Answer by AlexWhittakerBossa · Apr 26, 2019 at 03:51 PM
I'm seeing the same error with the same two dlls. Unity 2018.3.12f1 with project set up to use .NET 4.x Equivalent API compatibility shows errors with standard 2.0 and 4.0.
Answer by senfield · Jan 24, 2020 at 07:58 PM
Doesn't it need Newtonsoft.Json? Or do you have that installed already?
Your answer
![](https://koobas.hobune.stream/wayback/20220612190007im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Has anyone gotten Firebase to work with Unity 5.6.0f3? 1 Answer
How to integrate Google APIs functionality for Sign=in/Login purpose in unity2017? 0 Answers
Get Step Count on Android? 0 Answers
Unity and Google Maps API 1 Answer
Installing a .net Package found two csproj's which one to use ? 0 Answers