Quantcast
Channel: Questions in topic: "external-libraries"
Viewing all 86 articles
Browse latest View live

I can't get an external dll to work when building for webGL

$
0
0
I have developed a game that calls functions from an external dll developed in c#, which also depends on two more dlls. It works fine when built for windows but when I build and test the software in WebGL the software runs but external dll functions seem not to work. An important detail is that the building folder for windows contains all the external dlls in BuildFolder\BuildFolder_Data\Managed, but the folder built for WebGL does not contain any of such libraries. Can anyone help me on this issue? Thank You.

I can't get an external dll to work when building for webGL

$
0
0
I have developed a game that calls functions from an external dll developed in c#, which also depends on two more dlls. It works fine when built for windows but when I build and test the software in WebGL the software runs but external dll functions seem not to work. An important detail is that the building folder for windows contains all the external dlls in BuildFolder\BuildFolder_Data\Managed, but the folder built for WebGL does not contain any of such librarys. Can anyone help me on this issue? Thank You.

Unity "Type or namespace could not be found" with external NuGet package, no error in Visual Studios

$
0
0
I installed a NuGet package through Visual Studio into my project. In Visual studio I can reference the namespace that was part of the package, use it, intellicode works fine, no errors. But in the Unity console I get this error: ---------- > The type or namespace name '' could not be found (are you missing a using directive or an assembly reference?) ---------- I saw some similar issue but the solutions seemed to be to add the dll to the asset folder. But I don't have the dll to put there, it's a NuGet package. Any help or advice is appreciated. I can give more information if necessary I just don't know what is relevant. First time even using NuGet or external references like this.

Unity Error "Missing assembly reference" no error in Visual Studio

$
0
0
I installed a NuGet package through Visual Studio into my project.Visual studio shows no issues, I can reference the namespace that was part of the package, use it, intellicode works fine, no errors, can build successfully. But in the Unity console I get this error: ---------- > The type or namespace name '' could not be found (are you missing a using directive or an assembly reference?) ---------- I saw some similar issue but the solutions seemed to be to add the dll to the asset folder. But I don't have the dll to put there, it's a NuGet package. Any help or advice is appreciated. I can give more information if necessary I just don't know what is relevant. First time even using NuGet or external references like this.

Gradle failed to fetch dependencies for Firebase and Google Play Service

$
0
0
I got an error something like this, tried several methods still it couldn't resolve. LOG Gradle failed to fetch dependencies. Failed to run 'C:\Unity Games\DownHill Republic\Temp\PlayServicesResolverGradle\gradlew.bat --no-daemon -b "C:\Unity Games\DownHill Republic\Temp\PlayServicesResolverGradle\PlayServicesResolver.scripts.download_artifacts.gradle" "-PANDROID_HOME=C:/Program Files/Unity/Hub/Editor/2019.4.13f1/Editor/Data/PlaybackEngines/AndroidPlayer\SDK" "-PTARGET_DIR=C:\Unity Games\DownHill Republic\Assets\Plugins\Android" "-PMAVEN_REPOS=file:///C:/Unity%20Games/DownHill%20Republic/Assets/Firebase/m2repository;file:///C:/Unity%20Games/DownHill%20Republic/Assets/GooglePlayGames/Editor/m2repository" "-PPACKAGES_TO_COPY=com.google.firebase:firebase-common:20.0.0;com.google.firebase:firebase-analytics:19.0.0;com.google.android.gms:play-services-base:17.6.0;com.google.firebase:firebase-app-unity:8.4.0;com.google.firebase:firebase-auth:21.0.1;com.google.firebase:firebase-auth-unity:8.4.0;com.google.firebase:firebase-messaging:22.0.0;com.google.firebase:firebase-iid:21.1.0;com.google.firebase:firebase-messaging-unity:8.4.0;com.google.firebase:firebase-storage:20.0.0;com.google.firebase:firebase-storage-unity:8.4.0;com.google.games:gpgs-plugin-support:0.10.12" "-PUSE_JETIFIER=0" "-PDATA_BINDING_VERSION=3.4.0"' stdout: stderr: FAILURE: Build failed with an exception. * What went wrong: Could not create service of type DefaultModuleRegistry using GlobalScopeServices.createModuleRegistry(). * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org exit code: 1 [Log] DependOn - group: com.google.firebase artifact: firebase-common version: 20.0.0 classifier: null packageIds: repositories: [Log] (4) DependOn - group: com.google.firebase artifact: firebase-analytics version: 19.0.0 classifier: null packageIds: repositories: [Log] DependOn - group: com.google.android.gms artifact: play-services-base version: 17.6.0 classifier: null packageIds: repositories: [Log] DependOn - group: com.google.firebase artifact: firebase-auth version: 21.0.1 classifier: null packageIds: repositories: [Log] DependOn - group: com.google.firebase artifact: firebase-messaging version: 22.0.0 classifier: null packageIds: repositories: [Log] DependOn - group: com.google.firebase artifact: firebase-iid version: 21.1.0 classifier: null packageIds: repositories: [Log] DependOn - group: com.google.firebase artifact: firebase-storage version: 20.0.0 classifier: null packageIds: repositories: [Log] Reading Android dependency XML file Assets/GooglePlayGames/Editor/GooglePlayGamesPluginDependencies.xml [Log] DependOn - group: com.google.games artifact: gpgs-plugin-support version: 0.10.12 classifier: null packageIds: repositories: Assets/GooglePlayGames/Editor/m2repository Resolution failed Failed to fetch the following dependencies: com.google.firebase:firebase-common:20.0.0 com.google.firebase:firebase-analytics:19.0.0 com.google.android.gms:play-services-base:17.6.0 com.google.firebase:firebase-app-unity:8.4.0 com.google.firebase:firebase-auth:21.0.1 com.google.firebase:firebase-auth-unity:8.4.0 com.google.firebase:firebase-messaging:22.0.0 com.google.firebase:firebase-iid:21.1.0 com.google.firebase:firebase-messaging-unity:8.4.0 com.google.firebase:firebase-storage:20.0.0 com.google.firebase:firebase-storage-unity:8.4.0 com.google.games:gpgs-plugin-support:0.10.12 [Log] Missing Android component com.google.firebase:firebase-common:20.0.0 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-analytics:19.0.0 (Android SDK Packages: ) [Log] Missing Android component com.google.android.gms:play-services-base:17.6.0 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-app-unity:8.4.0 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-auth:21.0.1 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-auth-unity:8.4.0 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-messaging:22.0.0 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-iid:21.1.0 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-messaging-unity:8.4.0 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-storage:20.0.0 (Android SDK Packages: ) [Log] Missing Android component com.google.firebase:firebase-storage-unity:8.4.0 (Android SDK Packages: ) [Log] Missing Android component com.google.games:gpgs-plugin-support:0.10.12 (Android SDK Packages: ) Any way to solve this?

Assembly 'Assets/Plugins/dllName.dll' will not be loaded due to errors:

$
0
0
Our project was running on Unity 2019.4.37f1. I'm trying to use an external DLL(.Net Standart 2.0) which has a reference to EntityFramework Core(3.1.25 version) with Unity and I get the following error in Unity Hub(I have tested it in a visual studio project and it works fine): Assembly 'Assets/dllName.dll' will not be loaded due to errors: Unable to resolve reference 'Microsoft.EntityFrameworkCore'. Is the assembly missing or incompatible with the current platform? Reference validation can be disabled in the Plugin Inspector. For more information: https://stackoverflow.com/questions/72320464/assembly-assets-plugins-dllname-dll-will-not-be-loaded-due-to-errors-unity
Viewing all 86 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>