I recently downloaded the latest FB SDK for unity and imported the asset package in my demo game project in unity ver. 4.0(windows)
As soon as i import all the files i face some errors in FB.cs script file .
Kindly let me know how to eradicate these following errors :
-> UnityEngine.Security does not contain a definition for LoadAndVerifyAssembly
in the line
var assembly = Security.LoadAndVerifyAssembly(www.bytes);
Ahh...the problem was unity itself..
I was using unity version 4.0 but the new Facebook SDK for unity has to have unity 4.1 + !!!
Related
I was trying to make some ar and i was watching the videos on youtube how to do that and i followed along.But at last it showed me some errors.
I am putting some screenshot so that you can tell what's wrong i am doing...
Thanks in advance for helping me..
THESE ARE THE PACKAGES THAT I HAVE INSTALLED IN FOR THIS AR
AR FOUNDATION - 2.1.10
2 AR CORE -2.1.12
3 AR KIT - 2.1.10
Having the same problem as well. Android APK compiles fine before adding AR packages. Added AR Foundation 2.1.10, AR Subsystems 2.1.3 and ARCore XR Plugin 2.1.12 (All 2019.4 verified). Android API set to 24, Vulkan removed, but fails at this point.
Build Failure Message
Turns out that it's an issue with Gradle, you need to use Gradle 5.6.4 and follow the instructions here for Unity 2019.4 https://developers.google.com/ar/develop/unity/android-11-build
I ran into problems with this Unity version too. I found no fix for this Unity version, but I tried the 2020.1.10f1 version and there it all worked perfectly fine for me.
I have just started new project that contains Vuforia SDK. After making some changes I decided to install GitHub extension from Asset Store to make some backup. After that my textMeshPro plugin went crazy, throwing an annoying error which I can't deal with. The error says:
Library\PackageCache\com.unity.textmeshpro#2.0.0\Scripts\Editor\TMP_PackageUtilities.cs(310,17): error CS0433: The type 'Task' exists in both 'System.Threading, Version=1.0.3333.0, Culture=neutral, PublicKeyToken=402899b480e6f383' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Does anybody has an idea how to get rid of it?
My Unity version is 2019.1.0f2
SOLUTION:
Thank you for your answers, I have found solution on other forum.
The way to fix the error in unity 2019.1.0f2
Go to Window->Package Manager
TextMesh Pro (Version 2.0.0 will be installed)
Click on the arrow > on the left to see all the available versions.
4 .Update TextMesh Pro to 1.3.0 (same version as in Unity 2018.3.12f1)
Let the compiler finish and you should see the error clearing from the console
Link to original post: Original post
In Unity 2019.1.5 Looks like TextMeshPro needs at least .net ver 4, I changed .net from 3.5 to 4.6 by going: File > Build Settings > Player Settings > Player > Scripting Runtime Version (which also has a warning on 3.5), selecting 4.6, after reload, textMesh error gone ... moving onto all the other errors in my project!
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
I am integrating Playscape 1.11 SDK to my game in unity. I keep getting an error stating: An error occurred while applying post-build logic: failed to apply patch to the .jar file
I have checked to see if Android 19 and google-play-services are downloaded/installed in the SDK.
Looks like some files were missed. Check that you have removed all previous files of Playscape SDK before importing new version into your Unity project:
/Assets/Plugins/Android/PlayscapeManifestFragments
/Assets/Plugins/Android/PlayscapePublishingKit
/Assets/Plugins/Playscape
/Assets/Temp
/Assets/StreamingAssets/fonts
/Assets/StreamingAssets/level_up_icons
/Assets/StreamingAssets/playscape
/Assets/StreamingAssets/playscape_bootstrap
/Assets/StreamingAssets/WelcomeMessage
I am trying to run the Unity example Angry Bots but I am getting the following error:
Assets/Standard assets/Camera Scripts/SmoothFollow.js(32,9): BCE0005: Unknown identifier: 'wantedRotationAngle'.
I am using Unity Version 3.5.0f5
I have tried redownloading/importing the project from the Asset Store but I am still getting the error.
Here is a screen shot:
An upgrade to Unity 4.0.1 fixed this issue.