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
Related
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.
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!
It shows error 'An error occured while applying post-build logic: Object reference not set to an instance of an object' when it builds two-file android build: APK + OBB.
Playscape's ApkCreator try to extract config file 'assets/playscape/PlayscapeConfig.xml' from APK. But config is inside .OBB file.
How to fix it?
We're currently do not support APK expansion files (for applications that are bigger than 50MB). We expect to support this functionality in a future version. Can you contact me directly so can discuss your game specifically. sharonh#playscape.com
Thanks,
Sharon
I had Facebook Unity SDK working in my game prototype until I updated to Unity 4.3. After the update build fails on dSYM generation in xCode. Error message:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil failed with exit code 11
Most notably before the final error message above I get this warning:
ld: warning: instance method 'application:openURL:sourceApplication:annotation:' in category from /Users//Library/Developer/Xcode/DerivedData/Unity-iPhone-duxgtdhujpdgtjbanfxzqinkvybw/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/FbUnityInterface.o overrides method from class in /Users//Library/Developer/Xcode/DerivedData/Unity-iPhone-duxgtdhujpdgtjbanfxzqinkvybw/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/UnityAppController.o
I investigated this a bit and yes, it seems that both UnityAppController.mm and FbUnityInterface.mm define "openURL" method and that's what xCode doesn't like. I also checked the iOS build that I had worked with on earlier (4.2.x) Unity version and in that build Unity did not define openURL-method in any of its .mm files.
Version Info:
Facebook Unity SDK Version 4.3.4
Unity Editor Version 4.3 (Pro)
Xcode 5.0.2
Changes vs Unity xCode project default configuration:
Added the frameworks that AdMob requires
Added linker flag "-ObjC" that AdMob requires (Build Settings -> Other Linker Flags)
I tested linking without the "-ObjC" flag also. Result is the same. Any ideas on how to fix this?
-tomi
I ran into the same problem but only building with debugging enabled in Build Options. Turn off debugging and you get past it. Or, BuildOptions.None in your build pipeline.
Of course, no debugging ...
We just released version 4.3.6 of the sdk that fixes login with unity version 4.3. It's available at https://developers.facebook.com/